PlanetMath (more info)
 Math for the people, by the people. Sponsor PlanetMath
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
[parent] Viewing Message
``Re: geometric diagrams'' by Dr_Absentius on 2003-03-13 02:11:07
There are basically two approaches for graphics in TeX.
1) you draw them with some external utility (for example xfig) and then you include them in the TeX file as encapsulated postscipt (eps) using
the command \includegraphics
2) you can draw them within TeX possibly by using additioal packages like pstricks or xypic.
[Actually there is also
1.5) use some external utility (like dia, xeukleides, DrGenius,...) to draw the pictures and then have that utility output some LaTeX code (usually using pstricks) which you then insert in to your document.]

 I personally favor option 2 (or when I feel lazy 1.5) but that is largely a matter of personal taste. Actually pstricks is very powerful
you can almost do whatever postscript can do. You can check documentation and a lot of examples at
 http://www.tug.org/applications/PSTricks/

By the way you can always check the LaTeX source of any of the entries to see how the author did a particular thing that you want to imitate.
When you chose display method one of the options is "TeX" source. If you try something and it doesn't work then check the preamble of the document, it may have some user defined commands or some nonstandard package. IMHO that is the best way to learn LaTeX.
[ reply | up | top ]
Interact
reply