Some more example LaTeX documents.
In the following examples,
the dvi files, pdf files and ps files can be viewed and printed out
directly using your dvi viewer/driver (dvi files)
using acrobat (pdf files) or using ghostview/ghostscript or
a postscript printer (ps files). The other files are source
files and/or required packages.
This page is intended for more advanced LaTeX users,
who are happy down loading examining and processing source
files. You can also download the output files
and compare them carefully with the source files (and also
with the output files you generated). When you think you understand
what's going on, try making alterations to the sources
and see what happens.
I have tried to provide some example solutions
to the most common problems that come up in typesetting
mathematics reports, but if you have a question
concerning LaTeX that isn't addressed here, please ask!
- "Essential LaTeX2e"
- An introduction to LaTeX, modified from "Essential LaTeX" by
Jon Warbrick.
el2e.tex
el2e.dvi
el2e.ps
el2e.pdf
- The small2e.tex example document
-
small2e.tex
- "Essential mathematical LaTeX2e"
- An introduction to mathematical typesetting with LaTeX,
modified from "Essential mathematical LaTeX" by D.P.Carlisle.
el2emath.tex
el2emath.dvi
el2emath.ps
el2emath.pdf
Requires mathrsfs.sty and the rsfs fonts. You will need my
rsfs package for this.
- "More essential LaTeX2e"
- Goes in to a bit more detail about how TeX/LaTeX work and what is
new to LaTeX2e as far as the user is concerned. Not essential reading
for many users.
el2emore.tex
el2emore.dvi
el2emore.ps
el2emore.pdf
- Reduced margins in LaTeX
- A simple style file to show you
how to change the margin size in LaTeX:
reducemargins.sty
A test file demonstrating its use:
testmargin.tex
- Cross references in LaTeX
- How to do basic cross-referencing, table of contents etc in LaTeX.
Essential reading for most users.
crossref.tex
crossref.dvi
crossref.ps
crossref.pdf
- Postscript graphics in LaTeX (using the graphics.sty package)
-
graphics.tex
graphics.dvi
graphics.ps
Requires the file ubhamlet.eps.
(This document needs updating, in particular to describe
the graphicx.sty package. I'll get round to this one day.
If you need a more powerful postscript graphics package, look
at grfguide.ps below.)
Other options for including graphics, especially line-drawings:
For maximum portability and high quality output,
the LaTeX picture environment should always be considered. However
the input required for this is difficult to compute and slow
to write. Consider using GeoGebra (http://www.geogebra.at/)
and export as eps (for dvips) or png (for pdflatex) for
importing images later with graphicx.sty. Or else consider
PSTricks
(http://tug.org/PSTricks/main.cgi/
and especially the PSTricks package pst-eucl
http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-eucl/)
- Other cross-referencing tools for LaTeX2e
- Details for using makeindex and bibTeX to produce and use indices
and bibliography databases. Not needed by many (perhaps most) users, but
still essential for books and major projects.
extraref.tex
xampl.bib
extraref.dvi
extraref.ps
extraref.pdf
- Using the AMS LaTeX amsthm.sty package
-
thm.tex
thm.dvi
thm.ps
thm.pdf
- Making an index of notation
- Some suggestions for how to go about this task.
indexntn.tex
indexntn.dvi
indexntn.ps
indexntn.pdf
- Making OHP slides for a presentation
- An example from a small talk of my own
(about LaTeX!) with some
further notes on how to go about this task.
slides.tex
slides.dvi
slides.ps
- Alignment of formulas
- Alignment problems in maths and solutions using AMS LaTeX!
align.tex
align.dvi
align.ps
align.pdf
- AMS LaTeX documentation in dvi and postscript format.
-
amsldoc.dvi
amsldoc.ps
- The documentation for graphics.sty and graphicx.sty
-
grfguide.ps
- Letters and memos in LaTeX
- This is a package for letters and memos with a company logo---in
this case that of the University of Birmingham! Examples are
included.
ubhamlet.zip