2. ď‚— A documentation preparation system
ď‚— Document markup language
ď‚— Here, what you see, is what you mean (WYSIWYM) as
compared to what you see is what you get (WYSIWYG)
ď‚— TeX and LaTeX
ď‚— TeX: All about formatting
ď‚— LaTeX: All about content
ď‚— Not a word processor!
2Theory of LaTeX
3. ď‚— Complex for large documents
ď‚— Time consuming
ď‚— Context switch between formatting and content
3Theory of LaTeX
4.  “Separate what changes from what remains the same”
 What remains the same – The formatting information
(Template, as we call it!)
 What changes – The content of the document
 Famous example – HTML – CSS separation
ď‚— Why not apply the same for document preparation?
ď‚— Separate the content of the document from the styling
information
4Theory of LaTeX
5. ď‚— It applies the design principle to solve the document
preparation problem
 What changes – The content; place this is in .tex file
 What is constant – The styling information place this
in .cls file
5Theory of LaTeX
Styling Content Document
Separation of concerns
6.  Predefined environments – avoids rework
ď‚— Programmability
ď‚— Justification and hyphenation
ď‚— Ligatures
ď‚— Kerning
6Theory of LaTeX
8. Word InDesign pdfLaTeX
Number of
hyphenations
9 10 4
SD of IWS (pt) 2.26 1.94 1.42
Maximum IWS
(pt)
14.4 13.2 9.0
Number of lines
with IWS > 9pt
5 2 0
8Theory of LaTeX
10. .tex + libs
• Source code containing the author’s work
.dvi
• Device independent file – too universal
.aux
• By product file, used by the compiler to resolve forward references
.log
• Logs the compilation process - errors
.ps
• A printable PostScript file obtained from dvi file
.pdf
• Something that we have been waiting for – a portable document format
10Theory of LaTeX