Making pretty diagrams for LaTeX docs

In summary, Bromgnuplot 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
  • #1
Brom
4
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
  • #2
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.
 
  • #3
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.
 
  • #4
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.
 
  • #5
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.
 
  • #6
Thanks for all of the tips! I'm definitely going to spend some time this weekend playing around with some of the programs suggested.
 

FAQ: Making pretty diagrams for LaTeX docs

1. What is the best software for making diagrams for LaTeX documents?

There are several options for creating diagrams for LaTeX documents, but some popular choices include TikZ, PGFPlots, and Inkscape. It ultimately depends on your personal preference and the complexity of your diagrams.

2. Can I import diagrams made in other programs into my LaTeX document?

Yes, you can import diagrams made in other programs such as Microsoft Excel or Adobe Illustrator into your LaTeX document. However, you may need to convert them to a compatible file format, such as PDF or EPS, before importing them.

3. Are there any resources or templates available for creating diagrams in LaTeX?

Yes, there are many resources and templates available online for creating diagrams in LaTeX. Some popular resources include the TikZ and PGFPlots documentation, as well as various online forums and communities dedicated to LaTeX and diagram-making.

4. Can I customize the appearance of my diagrams in LaTeX?

Yes, LaTeX provides a wide range of customization options for diagrams, such as changing the color, style, and size of elements. You can also add labels, annotations, and mathematical equations to your diagrams.

5. How do I include diagrams in my LaTeX document?

To include a diagram in your LaTeX document, you can either use the \includegraphics command or the \input command, depending on the file format and your personal preference. Make sure to also include the necessary packages and settings for your chosen diagram-making software.

Similar threads

Replies
11
Views
2K
Replies
9
Views
15K
Replies
3
Views
12K
Replies
1
Views
1K
Replies
4
Views
3K
Replies
3
Views
2K
Replies
2
Views
2K
Back
Top