LaTeX Examples & Wrapup
- The critical specifications for page layout can be found in the
Page Layout Diagram
- Information on setting the headers and footers can be found
in fancyheadings.sty (\usepackage{fancyheadings})
- Online reference to LaTeX
- example1.tex,
and resulting output
- 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.
- MikTex
- 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
- Document Styles
\documentstyle[options]{style} -
style may be one of
- article
- book
- letter
- report
- slides
- etc.
options may be one of
- twocolumn
- 11pt
- 12pt
- etc.
- Setting Dimensions:
\oddsidemargin
\evensidemargin
\textwidth
\textheight
\topmargin
\headheight
\headsep
\footskip
- Table of Contents:
\tableofcontents
- Titles:
\author{}
\title{}
\date{}
- Sections Headings:
\section
\subsection
\subsubsection
- 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}
- Including Graphics
\usepackage{epsfig}
\epsfig{file=...,width=...,height=..}
- Math Mode:
$ math expression $ or
\( math expression \) or
\begin{math} math expression \end{math}
- Display Math Mode:
$$ math expression $$ or
\[ math expression \[ or
\begin{displaymath} math expression \end{displaymath}
\displaymath
- Paragraphs:
\\ terminate a line
\hfill - fill horizontally
\vfill - fill vertically
\newpage
\newline
- Emphasis
\bf - bold
\it - italic
\rm - Roman
- Copyright
\copyright
- Ellipsis
\ldots
\ddots
\dotfill
- Boxes
\fbox{text}
- Lists
\begin{itemize} \item \end{itemize}
\begin{enumerate} \item \end{enumerate}
- Macros
\newcommand{\cmd}[narg]{def}
- Appendices:
\appendix
- References
\ref{text}
\label{text}
\cite[subcit]{ref}
- Bibliography
\bibitem{ref} text...
- Example of Cyrllic Fonts
PDF result
- 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