Uploaded by xamaja9045

uploadstudylib

advertisement
How to use
XHdyGtef562
Robeh4h44h46rt
Maron
rgergGfw5h4hrudzi
́nski
February
20iuiuiu867ftf7,
1999
2oh
uhiu
hui
Contentig
yt75759u0
s
Ygtfrvdewsdefrtgyhuuh80u8
okpjioio1 Template ​5 ​1.1 How to compile a .tex file to a
.8yhubtfrdctfvgbyhnujhygtfrdefrtghyujpdf file​. . . . . . . . . . . . . 5 ​1.1.1 Tools .​ . . . . . .
. . . . . . . . . . . . . . . . . . . . . 5 ​1.1.2 Howtousethetools ​. . . . . . . . . . . . . . . . . . . . 5 ​1.2
Howtowriteadogvuygyubugyrfytftycument ​. . . . . . . . . . . . . . . . . . . . . . 6 ​1.2.1
Themaindocument​. . . . . . . . . . . . . . . . . . . . . 6 ​1.2.2 Chapters ​. . . . . . . . . . . . . . . . . .
. . . . . . . . 6 ​1.2.3 Spell-checking ​. . . iygoyyuyybttbuytiu. . . . . . . . . . . . . . . . . . . . 6
1.3 L​A​T​E​X and pdfL​A​T​E​Xcapabilities ​. . . . . . . . . . . . . . . . . . . 7 ​1.3.1 Overview ​. . .
. . . . . . . . . . . . . . . . . . . . . . . 7 ​1kjihuihiuiuhuihihuihuuhiuiuhiuuiuhuihiuuituifiyt.3.2
L​A​T​E​X ​. . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 ​1.3.3 pdfL​A​T​E​X ​. . . . . . . . . . . . . . . . . .
. . . . . . . . 7 ​1.3.4
Exaiugityrdesdrftgyhujikoijuhgytfrd5erftgyhuji8h9hh89hygtfrderftgyhujiko90k90k9
mples ​. . . . . . . . . . . . . . . . . . . . . . . . . . 7
3
ufds
4wd
5rf6t
gh7
y67
97y
9y5r
6
khuihihuhiihiuhuihuuih74 ​CONTEygyggyuyuggyugtfrdersrwNTS
Chaptejgy
u5sw5ased
rf667rr67t
6t6tr 1
Templygu
g677r5vra
te
1.1 How to
comvtrctexrecrtvbyun97h8b99t96t6776yypile a
.tex file ygiybik68iufbifito a .pdf file
1.1.1
Toygutfxrsdctf
vygbynuu8n9b
6tb t667b7ols
To process the file9yt986gtfr7dterrdrd
you (may) need:
• ​pdflatexroihqrwuqwehfuiwhfu
ewifu ewfui hwfui weufi wuife wuf
weuifouw
ehfoui ewhf ewoigw
rhgrwygoiwiu wehfiuvny
ttv57134y43vn13i4iuhtci143thui4tui4ty34t347t7 (for example from tetex
package ​≥ ​0.9-6, which you can get from ​Red Hat 5.2​); onww
gouugghrgrgohrugrqegqhui
• ​acroread (a PDF viewer, available from ​http://www.adobe.com/​);
• ​ghostscript ​≥​5.10(forjnvfbuf;u iugruiy
nugyqrtouytuyryriqitiuywioyhgeiueuirgurgrui2u8rur3r289983289557523858857385
29375892895758975879387582395892358923859239t2oirogklrgklrgnrwjgnwrkgn
wgnwrlgnrwkgwlrgrwlglgnwngklrwgnklwrng example from ​Red Hat Contrib​) and
ghostview or gv (from RedHat Linux);
• ​efax package could be useful, if you
plafwjrougu9g889rugre89gu8er9g9uwfewtvj9t7tvb9240427jy3879
y9yj34vn to fax documents.
1.1.2 How
443poyi1opvy7yj098314y138
498y4y08v783101340y34uyvu
i3yto use the
t341v434vy1y13i[34vy413ky3
489yj7v89134j0yv7134098y3y
431yools
Follow these steps:
1. put all source .tex
file4tv1803uyj9089y7380489y431yv143v4y134yv43yvy43yv34yv341y you
know how to do this);
2. run “pdflatex file.tex” on the main file of the document three times
(three — to prepare valid
tab3viop341yvj98`473489073471v8j974yv34v
y738141y8v3yv????OPJAIJFIJQWOFWtunate
ly some versions of
acroread may produce
PostScrTGERGEGRGRGRGEGRRGRGERLGKQRPOGOPRK
OGPRGRG8923495U4358184309T4893T1343HUF3UIUIVHR
GIURGUREUGHQURHQIUGROHHQEOIUHWVTIWU43YT1
V8734Y9T8347YTV873417TY481377Tipt which is too
complex), or
5
6 ​CHAPTER 1. TEMPLATE
4. run ghostscript: “gv file.pdf” to display or:
“gs -dNOPAUSE -sDEVEKFEWIJWJWIFWI9FJEFIWIOFJWIOEFIJEWFW
9EYF87WJYC413897TY74TH39IBUHGHICE=pswrite -q -dBATCH
-sOutputFile=file.ps file.pdf” to produce a PostScript file;
5. run “fax send DVIJOJJIFWIOWIIOW
WQPOTVUT3RUTOBUJ43T43T44364NHTHT3YJYTJBYJ4N47UB65YHYfile.ps” as
root to send a fax, or — if you IUHIUHIUHHUHUHUUIIUhow to do this — modify the
fax script to be able to fax .pdf files directly (you have to insert “|%PDF*” somewhere. . .
).
1.2 How to
IBUHIUHPHYGUTFR456780U
9765E987767667write a
document
1.2.1 The main
IHUUHHUHWRdocumeIIH
UUIHUIHUUHInt
Choose
the
name
of
th87876876874YJ13V8947
YT3YN48V9Y34T89134YNTHURJE FINHBORYEBG
RIWHT1IT34IGU3HGe document, say document. Copy template.tex to
document.tex, 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 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}
in the document.tex, then edit document_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 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. L​A​T​E​X AND PDFL​A​T​E​X CAPABILITIES 7​
1.3 L​A​T​E​X and pdfL​A​T​E​X capabilities
1.3.1 Overview
First you edit your source .tex file. In L​A​T​E​X you compile it using the latex
command to a .dvi file (which stands for device-independent). The .dvi file can be
converted to any device-dependent format you like using an appropriate driver, for
example dvips.
When producing .pdf files you should use pdflatex, which produces di- rectly .pdf
files out of .tex sources. Note that in the .tex file you may need to use some PDF
specific packages.
For viewing .tex files use your favourite text editor, for viewing .dvi files under X
Window System use xdvi command, .ps files can be viewed with gv (or ghostview)
and .pdf files with acroread, gv or xpdf.
1.3.2 L​A​T​E​X ​A lot of examples can be found 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).
1.3.3 pdfL​A​T​E​X ​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:
• ​- (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
• ​ó, é, í, . . .
• ​è, à, ì, . . .
• ​ô, ê, . . .
• ​õ, ñ, . . .
• ​ö, ë, . . .
• ​ ̇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.​• ​$&%#_{}
•\
• ​ ̃ˆ
1.3. L​A​T​E​X AND PDFL​A​T​E​X CAPABILITIES 9​
Math​• 1​2​, ​12n​
​ ,...
• i​1​, ​i​2n​,...
, ​2n
• 1​​ 2​
,...
2−3​
• α​, ​β​, ​γ​, ​Ω​,...
• →​, ​⇒​, ​≥​, ​=​, ​∈​, ​⋆​,...
√​
• ​ 2​,...
• 2+2​,...
For more examples and symbols see chapter 3 of lshort2e.dvi.
Fonts​• ​Roman
• ​Emphasis
• ​Medium weight — the default
• ​Boldface
• ​Upright
• ​Slanted
• ​Sans serif
• ​S​MALL CAPS
• ​Typewriter
• ​and sizes:
– ​tiny
– ​scriptsize
– ​footnotesize
– s​ mall ​– ​normalsize
10 ​CHAPTER 1. TEMPLATE
– ​large ​– ​Large
LARGE ​–
–​
huge ​–
Huge
Download