18. • LaTeX pronounced as Lah‐tek, or Lay‐tek
• A typesetting program, not a word‐
processor
• Current version : LaTeX2ε
• Designed for producing beautiful books,
theses, papers, articles...
• De facto standard for writing academic
papers
• Based on TeX
22. documentclass{article}
title{A test document to learn LaTeX}
author{V N Krishnachandran}
date{19 February 2010}
begin{document}
maketitle
Hello world!
end{document}
Create a text file like the one above and compile…
24. How To Run LaTeX
• Create a text file with extension .tex, say
myfile.tex
• Compile myfile : latex myfile.tex
This makes a file with extension .dvi
• View the dvi file : xdvi myfile.dvi
: yap myfile
• Dvi ‐‐> PostScript : dvips myfile.dvi
This creates a file with extension .ps
• View PostScript : gv myfile (UNIX)
: Use gsview
30. Sections
section{…} = 1. Latex is Great
subsection{…} = 1.1 Why Great
subsubsection{…} = 1.1.1 Reason One
chapter{…} ‐ To be used with book and report
Titles, authors and footnotes
title{…}
author{…}
footnote{…}
maketitle Display Title and Author
tableofcontents Generates TOC
Sample commands