Some simple examples of generating files with LaTeX.
Create PDF files, gif images, and png images with LaTeX.
Date Created:Saturday November 01st, 2008 04:14 PM
Date Modified:Friday November 07th, 2008 04:17 PM
This is one of the simplest documents you can make:
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
\int e^x dx = e^x
\end{displaymath}
\end{document}
Then you can invoke this like so:
(first download textogif and have latex installed)
textogif filename.tex
Now you should have this image:

To make more complicated files, you can do something like this:
\documentclass[12pt]{article}
\title{Divisibility Rules}
\date{}
\begin{document}
\maketitle % this puts the title in the document
This is where the body text can go
\begin{eqnarray}
e^x &=& \int_{a}^{b} \\
e^x &=& \int_{a}^{b} \\
m &=& \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}
\end{eqnarray}
\end{document}
Then you can generate a pdf:
latex filename.tex dvipdfm filename.dvi
Now you should have a pdf!
Downloads:
Download: basic.tex 143 B
Download: example-book.tex 2 KB
Download: example-book.pdf 63 KB
Download: loremipsum.tex 12 KB
Download: example.tex 1 KB
Download: example.pdf 44 KB
Please login or Click Here to register for downloads
Simple LaTeX by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at www.3daet.com
Permissions beyond the scope of this license may be available at http://www.3daet.com
