LaTeX Examples & Wrapup


  1. The critical specifications for page layout can be found in the Page Layout Diagram
  2. Information on setting the headers and footers can be found in fancyheadings.sty (\usepackage{fancyheadings})
  3. Online reference to LaTeX
  4. example1.tex, and resulting output
  5. example2.tex, and resulting output

Recommended Software for TeX/LaTeX

Windows

A free TeX installation, with install on demand capabilities. Provides tex, latex and pdflatex capabilities.

  1. MikTex
  2. Ghostview, ghostscript available from Univ. of Wisconsin This provides postscript viewers, as well as ps2pdf. This allows one to print to PDF from any windows application (simply print to file using a generic postscript printer, such as an Apple laserwriter, then convert using ps2pdf. Detailed instructions are available here)
Unix Unix contains the latest LaTeX software as one of the packages in routinely installs. See TeTeX information form the TeX users group (TUG) site. You can also search for tex, latex or tex on rpmfind.net

Mac OS Check here for more information.


Useful Links
Important things to know how to do in LaTeX
  1. Document Styles
    \documentstyle[options]{style} - style may be one of
    1. article
    2. book
    3. letter
    4. report
    5. slides
    6. etc.
    options may be one of
    1. twocolumn
    2. 11pt
    3. 12pt
    4. etc.

  2. Setting Dimensions:
    \oddsidemargin
    \evensidemargin
    \textwidth
    \textheight
    \topmargin
    \headheight
    \headsep
    \footskip

  3. Table of Contents:
    \tableofcontents

  4. Titles:
    \author{}
    \title{}
    \date{}

  5. Sections Headings:
    \section
    \subsection
    \subsubsection

  6. Including Files
    \include{filename} - includes text from filename at that position
    \input{file} - includes text from file.tex at that position
    \begin{verbatim} ... \end{verbatim}

  7. Including Graphics
    \usepackage{epsfig}
    \epsfig{file=...,width=...,height=..}

  8. Math Mode:
    $ math expression $ or
    \( math expression \) or
    \begin{math} math expression \end{math}

  9. Display Math Mode:
    $$ math expression $$ or
    \[ math expression \[ or
    \begin{displaymath} math expression \end{displaymath}
    \displaymath

  10. Paragraphs:
    \\ terminate a line
    \hfill - fill horizontally
    \vfill - fill vertically
    \newpage
    \newline

  11. Emphasis
    \bf - bold
    \it - italic
    \rm - Roman

  12. Copyright
    \copyright

  13. Ellipsis
    \ldots
    \ddots
    \dotfill

  14. Boxes
    \fbox{text}

  15. Lists
    \begin{itemize} \item \end{itemize}
    \begin{enumerate} \item \end{enumerate}

  16. Macros
    \newcommand{\cmd}[narg]{def}

  17. Appendices:
    \appendix

  18. References
    \ref{text}
    \label{text}
    \cite[subcit]{ref}

  19. Bibliography
    \bibitem{ref} text...


  1. Example of Cyrllic Fonts PDF result
  2. Font Families PDF result

Example of multicolumn tables
Use the package "multicol" to get up to 10 columns of text on a page.
\columnsep gives space between columns
\columnseprule gives width of rule between columns
example, PDF output