Sample PDF Document
Robert Maron
Grzegorz Grudzn´íski
February 20, 1999
2 gros super cool pplain
de jeu
Contents
1 Template 5
1.1 [Link] fi[Link] file. . . . . . . . . . . . . 5
1.1.1Tools............................ 5
1.1.2 Howtousethetools. . . . . . . . . . . . . . . . . . . . 5
1.2 Howtowriteadocumen.t..................... 6
1.2.1 Themaindocumen.t. . . . . . . . . . . . . . . . . . . . 6
1.2.2Chapters.......................... 6
1.2.3Spell-checking....................... 6
1.3 LATEX and pdfLATEX capabilities. . . . . . . . . . . . . . . . . . . 7
1.3.1Overview.......................... 7
1.3.2LATEX............................ 7
1.3.3pdfALTEX.......................... 7
1.3.4Examples.......................... 7
3
4 CONTENTS
Chapter 1
Template
1.1 Howtocompilea .tex file to a .pdf file
1.1.1 Tools
To process the files you (may) need:
•pdflatex (forexamplefromtetex package≥0.9-6 ,whichyoucan
getfromRedHat5.2);
• acroread (a PDF viewer, available from[Link]
•ghostscript ≥5.10(forexamplefromRedHatContrib)and ghostview
or gv (from RedHat Linux);
• efax package could be useful, if you plan to fax documents.
1.1.2 Howtousethetools
Follow these steps:
1. put all [Link] files in one directory, then chdir to the directory (or put
someofthemintheATLEXsearchpath—ifyouknowhowtodothis);
[Link]“[Link] ”onthemainfileofthedocumentthreetimes
(three — to prepare valid table of contents);
3. to see or print the result usaecroread
(unfortunately some versions of
acroread mayproducePostScriptwhichistoocomplex),or
5
6 CHAPTER 1. TEMPLATE
4. runghostscript: “ gv [Link]” to display or:
“gs -dNOPAUSE -sDEVICE=pswrite -q -dBATCH -sOutputFile=fi[Link] fi[Link]”
to produce a PostScript file;
[Link]“[Link] ”asroottosendafax,or—ifyou
know how to do this — modify thefax script to be able to [Link] files directly
(you have to insert|“%PDF*” somewhere. . . ).
1.2 Howtowriteadocument
1.2.1 The main document
Choose the name of the document, sdaoycument . [Link] to
[Link], then edit it, change the title, the authors and set proper in-
clude(s) for all the chapters.
1.2.2 Chapters
Each chapter should be included in the main document as a separate file. You ca
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 nadmoecument_chapter1.tex
.
First,copytemplate_chapter.tex todocument_chapter1.tex
and add the line
\include{document_chapter1}
[Link] ,theneditdocument_chapter1.tex , change the
chapter title and edit the body of the chapter appropriately.
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 ymouustcheck spelling!
Youcanusetheispell packageforthis,fromwithinemacs,orfromthe
command line:
ispell
-t document_chapter1.tex
1.3. LATEXANDPDFLATEXCAPABILITIES 7
1.3 LATEXandpdfLATEXcapabilities
1.3.1 Overview
First you edit your [Link] file. In LATEX you compile it using thelatex
[Link] file(whichstandsfordevice-independent).[Link] file
can be converted to any device-dependent format you like using an appropriate
driver, for exampledvips .
,whichproducesdi-
[Link] filesyoushouldusepdflatex
[Link] fi[Link] [Link] fileyoumayneed
to use some PDF specific packages.
[Link] filesuseyourfavouritetexteditor,[Link] files
under X Window System usxedvi command,.ps files can be viewed withgv
(orghostview )[Link] fileswithacroread ,gvorxpdf .
1.3.2 LATEX
A lot of examples can be found in this document.
You should also print
doc/latex/general/[Link] and
•
doc/latex/general/[Link]
•
tetex distribution (usually in
from your
/usr/share/texmf or
•
/usr/lib/texmf/texmf).
•
1.3.3 pdfLATEX
Consultdoc/pdftex/[Link] distribution for more
details. Very useful informations can be found in the andgraphics
hyperref
package manuals:
doc/latex/hyperref/[Link] and
•
doc/latex/graphics/[Link].
•
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:
- (use inside words; for example “home-page”, “X-rated”)
•
– (use this one between numbers; for example “pages 2–22”)
•
— (use this one as a sentence separator — like here)
•
National characters
• ó,é,í,... • è,à,ì,... • ô,ê,... • õ,ñ,... • ö,ë,... •ż˙ • ą˛, ę˛ •ł,ø,ß
There are other ways to do this, see the
documentatio
for
inputenc pack-
age.
Reserved characters
Some characters have some special meaning, thus cannot be entered in the usua
way.
$&%#_{}
•
•\
˜ˆ
•
1.3. LATEXANDPDFLATEXCAPABILITIES 9
Math
• 12,12n, ...
• i1,i2n, ...
1, 2−,...
2n
• 3
• α,β,γ,Ω,...
⇒
•→, ,≥,=6, ,?,... ∈
√ 2,...
•
• 2+2,...
For more examples and symbols see chapter 3 .
[Link]
Fonts
Roman
•
Emphasis
• Medium weight — the default
Boldface
•
• Upright
• Slanted
Sans serif
• SMALLCAPS
• Typewriter
and sizes:
•
•
– tiny
– scriptsize
– footnotesize
small
–
– normalsize
10 CHAPTER 1. TEMPLATE
– large
–
Large
–
LARGE
–
–
huge
Huge