Sample
Sample
Contents
3
4 CONTENTS
Chapter 1
Template
• How to compile a .tex file to a .pdf file
• Tools
To process the files you (may) need:
• ≥
pdflatex (for example from tetex package 0.9-6, which you can get
from Red Hat HYPERLINK "ftp://ftp.mimuw.edu.pl/pub/Mirrors/Linux/redhat-
5.2/" HYPERLINK "ftp://ftp.mimuw.edu.pl/pub/Mirrors/Linux/redhat-
5.2/"5.2);
• put all source .tex files in one directory, then chdir to the directory (or put
some of them in the LATEXsearch path — if you know how to do this);
• run “pdflatex file.tex” on the main file of the document three times
(three — to prepare valid table of contents);
• Chapters
Each chapter should be included in the main document as a separate file. You can
choose any name for the file, but we suggest adding a suffix to the name of the main
file. For our example we use the file name document_chapter1.tex.
First, copy template_chapter.tex to document_chapter1.tex
and add the line
\include{document_chapter1}
• Spell-checking
Do use a spell-checker, please!
You may also want to check grammar, style and so on. Actually you should do it
(if you have enough spare time). But you must check spelling!
You can use the ispell package for this, from within emacs, or from the
command line:
ispell -t document_chapter1.tex
• LATEX
A lot of examples can be found very easily in this document.
You should also print
• doc/latex/general/latex2e.dvi and
• doc/latex/general/lshort2e.dvi
from your tetex distribution (usually in
• /usr/share/texmf or
• /usr/lib/texmf/texmf).
• pdfLATEX
Consult doc/pdftex/manual.pdf from your tetex distribution for more
details. Very useful informations can be found in the hyperref and graphics
package manuals:
• doc/latex/hyperref/manual.pdf and
• doc/latex/graphics/grfguide.dvi.
• Examples
References MIMUW
Hyperlinks
This is a target.
And this is a link.
Dashes, etc.
There are three kinds of horizontal dash:
National characters
• ó, é, í, . . .
• è, à, ì, . . .
• ô, ê, . . .
• õ, ñ, . . .
• ö, ë, . . .
• z˙
• a˛, e˛
• ł, ø, ß
There are other ways to do this, see the documentation for inputenc pack- age.
Reserved characters
Some characters have some special meaning, thus cannot be entered in the usual way.
• $&%#_{}
• \
• ˜ˆ
Math
• 12, 12n, . . .
• i1, i2n, . . .
1 2n
• 2 , 2−3 , . . .
• α, β, γ, Ω, . . .
• →, ⇒, ≥, ƒ=, ∈, ×, . . .
√2, . . .
•
• 2 + 2, . . .
Fonts
• Roman
• Emphasis
• Medium weight — the default
• Boldface
• Upright
• Slanted
• Sans serif
• S MALL CAPS
• Typewriter
• and sizes:
• tiny
• scriptsize
• footnotesize
• small
• normalsize
• large
• Large
• LARGE
• huge
• Huge