LaTeX Making pretty diagrams for LaTeX docs

  • Thread starter Thread starter Brom
  • Start date Start date
  • Tags Tags
    Diagrams Latex
AI Thread Summary
Creating custom diagrams for LaTeX documents can be achieved using several programs. Gnuplot is recommended for generating high-quality output, with options like the latex and pstricks terminals for different graph complexities. Other tools mentioned include xfig, jpicedt, and software like Maple and Mathematica, all capable of producing .eps files. Vector graphics are preferred over raster formats for better quality in LaTeX. Exploring the picture environment in LaTeX can also yield effective results for pure LaTeX graphics.
Brom
Messages
4
Reaction score
0
Hey guys,

So I've Latex'd some papers and assignments in the past, but something that's always daunted me is how to make those snazzy custom figures that the TAs always make in their homework solution writeups. Is there some program that most people use to make their diagrams that they then convert into .eps format then stick it into their Latex docs?

Confused,
Brom
 
Physics news on Phys.org
gnuplot makes some very nice output you can include in your .tex files. You use the gnuplot set terminal command to make gnuplot send the output to a file rather than the screen. Some options:

set terminal latex - good for fairly simple graphs
set terminal pstricks - beautiful graphs, but a bit challenging to use in conjunction with pdflatex as opposed to vanilla latex/dvips.

there are many other output "devices". Use help set term in gnuplot to see them all.
 
Many graphics programs (Photoshop, etc.) allow you to save your work in an .eps file. There are also specialized programs that convert between different graphics formats.

Eugene.
 
xfig is a drawing program that can output in LaTeX-graphics and .eps
another is jpicedt

gnuplot, asymptote, Maple, and Mathematica can output graphics in .eps

generally, one should use vector graphics (rather than raster graphics like "jpg", "gif", "png")
but use can import graphics of many types using includegraphics

if you want pure-LaTeX, learn how to use the picture environment,
possibly supplemented with eepic or pstricks.
 
The latex and pstricks output from gnuplot are "pure LaTeX". This is my preferred route for generating data plots in LaTeX. I play with the plots in gnuplot until they look nice on the screen, then set the terminal to pstricks.
 
Thanks for all of the tips! I'm definitely going to spend some time this weekend playing around with some of the programs suggested.
 
Back
Top