Making pretty diagrams for LaTeX docs

  • Context: LaTeX 
  • Thread starter Thread starter Brom
  • Start date Start date
  • Tags Tags
    Diagrams Latex
Click For Summary

Discussion Overview

The discussion revolves around creating custom diagrams for LaTeX documents, focusing on the tools and programs available for generating high-quality figures. Participants explore various software options and output formats suitable for integration with LaTeX.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Brom expresses a desire to create custom figures for LaTeX documents and seeks recommendations for programs that can produce .eps files.
  • One participant suggests using gnuplot, highlighting its ability to generate high-quality output with specific terminal commands for LaTeX integration.
  • Another participant mentions that various graphics programs, including Photoshop, can save work in .eps format and notes the existence of specialized format conversion tools.
  • A different participant lists several programs, including xfig, jpicedt, asymptote, Maple, and Mathematica, that can output graphics in .eps format and emphasizes the preference for vector graphics over raster graphics.
  • One participant shares their personal preference for using gnuplot with pstricks for generating data plots in LaTeX, describing their workflow for refining plots.
  • Brom expresses gratitude for the suggestions and indicates an intention to experiment with the recommended programs.

Areas of Agreement / Disagreement

Participants present multiple competing views on the best tools and methods for creating diagrams in LaTeX, with no consensus reached on a single preferred approach.

Contextual Notes

Some suggestions depend on familiarity with specific software and may require additional learning to effectively implement. The discussion does not resolve which program is definitively the best for all users.

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.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 9 ·
Replies
9
Views
15K
  • · Replies 3 ·
Replies
3
Views
13K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 19 ·
Replies
19
Views
10K