Sunday, March 21, 2010

A sample LaTeX document

In my last post I made a few remarks about LaTeX and gave several links, some to sites from where the software could be downloaded, and some to LaTeX help sites and tutorials.


Just to show how a typical TeX file looks, and what kind of output it can yield, I am now posting links to some documents which I just uploaded to Google Docs (and therefore residing somewhere in the clouds). The first link leads to the pdf version of an article I recently published in Resonance, the second link leads to the LaTeX file of the article, and the third link leads to the ps (PostScript) version; it can be viewed using GhostView (or Evince, if you have a Linux based system).
Observe that the TeX file is much lighter than the other two files (just 18 K, as compared with 53K and 228K, respectively). Moreover, the TeX file is a text file (ASCII format) which can be opened by any text editor whatever; so it is platform independent.

The figure drawn on page 3 of the article has been done using PSTricks. If you look within the TeX document you will find the code for the figure in lines 89 through 154. All the commands needed to draw the figure are contained in that code. 

No comments:

Post a Comment