Making pretty diagrams for LaTeX docs

  • Context: LaTeX 
  • Thread starter Thread starter Brom
  • Start date Start date
  • Tags Tags
    Diagrams Latex
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 14K views
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.
 
Thanks for all of the tips! I'm definitely going to spend some time this weekend playing around with some of the programs suggested.