13.07.2015 Views

Writing in LaTeX under Windows or Linux

Writing in LaTeX under Windows or Linux

Writing in LaTeX under Windows or Linux

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 TeX and <strong>LaTeX</strong>. Contents of a modern distribution.TEX is a compiler that reads a pla<strong>in</strong> text <strong>in</strong>put file, f<strong>or</strong> example this-guide.tex,and converts it to a pr<strong>in</strong>table page <strong>or</strong> another standard output such as thisguide.pdf.The auth<strong>or</strong> must write <strong>in</strong>to the <strong>in</strong>put file all of the f<strong>or</strong>matt<strong>in</strong>g thatis <strong>in</strong>tended f<strong>or</strong> the f<strong>in</strong>al page. But there are a vast number of default optionsso that head<strong>in</strong>gs and other environments such as captions will automaticallybe set <strong>in</strong> a fixed style. This saves the auth<strong>or</strong> from manually sett<strong>in</strong>g everyparagraph to have the c<strong>or</strong>rect number of free l<strong>in</strong>es follow<strong>in</strong>g it, etc.TEX is not a WYSIWIG <strong>in</strong>terface - not a w<strong>or</strong>d process<strong>or</strong> that displays thepage <strong>in</strong> real-time as it will be pr<strong>in</strong>ted. TEX produces f<strong>or</strong>matted documentsfrom an <strong>in</strong>put file of pla<strong>in</strong> text - a ‘recipe.’ So the obvious disadvantage isthat you have to compile the document each time you want to see a visualupdate of the pr<strong>in</strong>ted page. The advantage is that the the computer neednot hold the entire document <strong>in</strong> mem<strong>or</strong>y and juggle an arbitrary amountof typesett<strong>in</strong>g after every w<strong>or</strong>d. Hence TeX can be stable when handl<strong>in</strong>glarge documents. S<strong>in</strong>ce TEX handles choices of font size (etc.) it sets outdocuments <strong>in</strong> a very unif<strong>or</strong>m style, which can save a lot of user eff<strong>or</strong>t <strong>in</strong>sett<strong>in</strong>g section spac<strong>in</strong>gs and title styles.TEX is a compiler. It is implemented on many different platf<strong>or</strong>ms: onewould use a tex.exe on a W<strong>in</strong>32 platf<strong>or</strong>m (98–XP), and on L<strong>in</strong>ux the executablewould probably be called just tex (L<strong>in</strong>ux is a Unix system and willhandle files without extensions).2.1 Difference between L A TEX and TEXTEX is an extremely stable compiler f<strong>or</strong> convert<strong>in</strong>g a descriptive <strong>in</strong>put file thatyou have written (eg article.tex) <strong>in</strong>to a neatly f<strong>or</strong>matted document (eg. article.pdf).TeX is essentially a program that <strong>in</strong>terprets text and <strong>in</strong>structions <strong>in</strong>a typographically c<strong>or</strong>rect way, then breaks down the process of typesett<strong>in</strong>g<strong>in</strong>to a task of shuffl<strong>in</strong>g boxes of text around a page.L A TEX is another compiler, which <strong>in</strong>c<strong>or</strong>p<strong>or</strong>ates the c<strong>or</strong>e TeX program butalso allows additional program modules to be called. Technically L A TEX isa Tur<strong>in</strong>g-complete programm<strong>in</strong>g language (can perf<strong>or</strong>m any programm<strong>in</strong>gfunction) although it is f<strong>or</strong> typesett<strong>in</strong>g. Documents can be typeset <strong>in</strong> TEX,but they may as well be typeset <strong>under</strong> L A TEX f<strong>or</strong> extra functionality. F<strong>or</strong>example L A TEX will construct a Table of Contents from your section <strong>or</strong> chapterhead<strong>in</strong>gs (etc.) and then get TEX to typeset that at the beg<strong>in</strong>n<strong>in</strong>g of thedocument (<strong>or</strong> elsewhere).2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!