DevEX - reference for building teams, processes, and platforms
Document typesetting using LateX
1. A Comprehensive Document Engineering using TeX2e/LateX
Anjan K and Harish G
Assistant Professor,
Dept. of CSE,
RVCE
{anjank,harishg}@rvce.edu.in
Latex: Document Engineering December 2, 2011 1
2. Need for LateX
LateX Vs. Word Processors
Various TeX Distributions
Installation – TeXlive, TeXMaker, ipe
◦ Installation Hands On.
Layout of TeX Document
◦ Document Class
◦ Packages
◦ Document Body
Latex Document illustrations
◦ Hands on
Report Format for Projects
Overview of ipe
Overview of Beamer for presentations
Summary
Key Web References
Latex: Document Engineering December 2, 2011 2
3. Pronounced as (Lah-tek, or Lay-tek)
TeX is essentially a Markup Language (like HTML,
XML and RTF)
A typesetting program, not a word-processor
TeX written by Donald Knuth in 70´s
◦ A revolution in typesetting
Latex is an extension of TeX
◦ Macro packages to make TeX easier to use
Designed for producing professional books,
thesis's, technical papers ,articles.
De facto standard for writing academic papers
and project reports
Current version LaTeX2
Latex: Document Engineering December 2, 2011 3
4. De facto standard for scientific publishing
Good for large documents- Can compile very big books
(unless your document is more than 70,000 pages!)
Can run even on lower version of computer
configuration.
Platform, version independent (Unix, Windows…)
Pre-set standard formats (for paper, thesis…)
Bibliography management
Fast, professional math equations typesetting
Open source
Never crash, never lose your file
Outcome: Professional documentation.
Latex: Document Engineering December 2, 2011 4
9. Document Class
◦ Predefined Formats (article, report, book,..).
◦ Syntax:
documentclass[options]{class}
Options = a4paper, 11pt, 12pt, 10pt, twocolumn,
landscape,...
class = article, report, book,…
Packages -
◦ Added Functionality (graphics, reference style,...).
◦ Syntax:
usepackage{package name}
◦ Package name examples
epsfig - insert PS pictures into the document
fancyhdr - easy definition of footer and header
Latex: Document Engineering December 2, 2011 9
10. Main Body
◦ Text and Bibliography References.
◦ Body is wrapped with begin and end statements
begin{document}
Body of Text
end{document}
◦ Typesetting the text
Bold - textbf{ text } or {bf text}
Italics - textit{ Text } or {bf text}
Newline -
Underline - ul { text } or underline{ text }
Latex: Document Engineering December 2, 2011 10
11. % my first LaTeX file
documentclass{article}
% preamble
usepackage{graphicx}
begin{document}
section{This is a section}
subsection{This is a subsection}
First paragraph is here.
Second paragraph is here.
end{document}
11
14. • Columns
o begin{tabular}{|…|…|} Columns
Two
o end{tabular}
• Rows l = automatically adjust
size, left justify
o & - Split text into columns r = automatically adjust
size, right justify
o - End a row p = set size
o hline - Draw line under row e.g p{4.7cm}
o e.g. 123123 & 34.00 hline c = centre text
15. begin{tabular}{|l|r|c|} hline
Date & Price & Size hline
Yesterday & 5 & big hline
Today & 3 & small hline
end{tabular}