Output File PDF
Output File PDF
Output File PDF
Hello World!
Robert Maron
Grzegorz Grudziński
Hello World!
Contents
1 Template 5
1.1 How to compile a .tex file to a .pdf file . . . . . . . . . . . . . 5
1.1.1 Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1.2 How to use the tools . . . . . . . . . . . . . . . . . . . . 5
1.2 How to write a document . . . . . . . . . . . . . . . . . . . . . . 6
Hello World!
1.2.1 The main document . . . . . . . . . . . . . . . . . . . . . 6
1.2.2 Chapters . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2.3 Spell-checking . . . . . . . . . . . . . . . . . . . . . . . 6
1.3 LATEX and pdfLATEX capabilities . . . . . . . . . . . . . . . . . . . 7
1.3.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.3.2 LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.3.3 pdfLATEX . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.3.4 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3
4 CONTENTS
Hello World!
Chapter 1
Template
• pdflatex (for example from tetex package ≥ 0.9-6, which you can
get from Red Hat 5.2);
• ghostscript ≥ 5.10 (for example from Red Hat Contrib) and ghostview
or gv (from RedHat Linux);
1. 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);
2. run “pdflatex file.tex” on the main file of the document three times
(three — to prepare valid table of contents);
5
6 CHAPTER 1. TEMPLATE
\include{document_chapter1}
1.2.3 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
1.3. LATEX AND PDFLATEX CAPABILITIES 7
1.3.3 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.
1.3.4 Examples
References
MIMUW
8 CHAPTER 1. TEMPLATE
Hyperlinks
This is a target.
And this is a link.
Dashes, etc.
There are three kinds of horizontal dash:
National characters
• ó, é, í, . . .
Hello World!
• è, à, ì, . . .
• ô, ê, . . .
• õ, ñ, . . .
• ö, ë, . . .
• ż
• 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.
• $&%#_{}
• \
• ˜ˆ
1.3. LATEX AND PDFLATEX CAPABILITIES 9
Math
• 12 , 12n , . . .
• i1 , i2n , . . .
1 2n
• ,
2 2−3
, ...
• α, β, γ, Ω, . . .
• →, ⇒, ≥, 6=, ∈, ?, . . .
√
• 2, . . .
• 2 + 2, . . .
• Emphasis
• Boldface
• Upright
• Slanted
• Sans serif
• S MALL CAPS
• Typewriter
• and sizes:
– tiny
– scriptsize
– footnotesize
– small
– normalsize
10 CHAPTER 1. TEMPLATE
– large
– Large
– LARGE
– huge
– Huge
Hello World!