Академический Документы
Профессиональный Документы
Культура Документы
Using LaTeX If you care about creating polished and stylish documents, and if you have a
sense of aesthetics and like some finesse, try LaTeX!
Believe us, you’ll most likely fall in love with it and use it for the rest of your life!
L
aTeX is a document preparation There are major differences between the
system. It is used for high-quality word processing we are used to and what’s
typesetting and with it, you can available in LaTeX. Unlike the formatting
create beautiful, professional- we do with the content of the document in
looking documents. LaTeX is free WYSIWYG (what you see is what you get) word
and is distributed under the LPPL (Latex processors, creating documents in LaTeX is
Project Public License), which is slightly more like writing computer programs—we
different from the GPL. write LaTeX code and ‘compile’ it (yes, we
Who uses LaTeX? Well, LaTeX is used by compile the code!) and generate the document
small publishing companies and large software in the desired format. More technically, LaTeX
organisations; students and Nobel prize- is more like a ‘mark-up language’, just like XML
winning researchers; designers creating artistic or HTML. Unlike WYSIWYG word processors
posters, as well as authors writing journal where content is mixed with formatting, in
papers. In other words, it is used worldwide LaTeX, content of the document is separated
by people who care about writing ‘quality’ from formatting or the display mechanism (a
documents. rough analogy is using .css files for .html);
Why LaTeX?
The answer is simple: if you want to write documents Short History of LATEX
that just look great then the best option is to use LaTeX.
Sometime, you’ll be forced to learn LaTeX. If, for instance,
you’re doing your M. Tech or PhD and you want to write September 8, 2008
a paper or thesis, more likely than not, you’ll be forced to
create your document in LaTeX. For some niche domains like For those who keep wondering what TEX or LATEX is and why it was
mathematics, physics or chemistry where lots of symbols, developed, here is a short history.
Donald E Knuth, when he was working on his monumental book The Art
complex equations, tables and cross-references are involved, of Programming was not happy with the type-setting for his book. So he
created a type-setting system that would let him concentrate on the content
there is rarely any choice but to use LaTeX. Although mostly of the book rather than getting the type-setting software distracting and
used in academic circles and in commercial publishing, don’t getting him worried about formatting the output. For example, instead of
doing formatting for a quotation every time with center aligned and extra
underestimate the popularity and wide use of LaTeX—even border from the page, with different font, italicized, surrounded with double
novels and short stories are occasionally written using LaTeX! quote etc., he wanted just to say - this is a quote - and wanted the typesetting
system to take care of formatting it accordingly. He designed TEX to do that.
Those who don’t care much about writing good-looking However, TEX was still low level and difficult for beginners to use. So, Leslie
documents—I call them ‘impatient’ writers—and those not Lamport created a set of high level TEXmacros and made the common tasks
- such as creating table of contents - easier. Now-a-days, most of the people
from computer science or academic background, prefer using use LATEX instead TEX.
interactive word processors. Novices/beginners who don’t
want to write LaTeX code can use interactive document Figure 2: Default text rendering in document generated using LaTeX
processors that create LaTeX output such as LyX. But
remember: if you want to make the best out of LaTeX, writing with experience in using software like MS Word for large
code is the best way to go. documents such as a book will understand how frustrating
It’s best to show the difference visually. Just check out it is to work with a word-processor for a long time to get
Figures 1 and 2: the document is written in MS Word in the formatting, indexing, cross-referencing, etc, correct and
former, while the other is generated with LaTeX. Those consistent. LaTeX is very convenient to use in medium- to
who don’t know anything about typesetting can also find large-size documents that are complex. In my experience, for
minute differences between two documents: the spacing short documents such as memos or letters that we want to
between the words, how italics look, how the superscript and get done with quickly, it is not much use.
1
subscript symbols look, how the default settings look (these The next point is availability. LaTeX code is portable:
two documents were written with default settings on—and you can create a LaTeX document and use in any platform.
no, in MS Word, the bold face was not enabled for the text, It is available from AmigaOS, Mac OSX, Linux and Windows.
but it looks dark; so to differentiate the title, I’ve used bold This advantage is not available in many proprietary formats
there). To avoid bias, I’ve used the same fonts—for MS Word, such as the .doc format. Lots of free and open source
I used the default Times New Roman font; for LaTeX I’ve software is available. Since it is used widely, supporting tools,
used the pslatex package that replaces the default computer documentation and help is available.
modern fonts with PostScript fonts. Next in line is the choice of output formats. LaTeX is
also useful for creating a wide range of document output
LaTeX advantages formats. It is enough to write a LaTeX document (a text
The first and foremost is the quality of output. In my file) and, with that, we can create the document in almost
experience, LaTeX produces the best quality output and I any format that we usually use, including .ps, .doc, .html
would recommend you experience it yourself. and .pdf formats. So we can just keep the text file and
Avoid frustrations in creating large documents. Anyone generate the desired output format in the given platform,
$ dvips hello
$ gv hello.ps
Hello world!
$ ps2pdf hello.ps