Presented by :
Rajesh Kumar Sahureg no. 0911017031
What is LaTex
• LaTeX pronounced as “tech”• not like latex gloves!
• LaTeX is a document preparation system for producingprofessional-looking documents, it is not a word processor.
Introduction
• TeX is essentially a Markup Language (like HTML, XML and RTF)
• 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
Latex vs. Word Processors
• High typeset quality• Easy to include math formulas• Source file format is not bounded to a particular
OS or platform• Latex implementations exists for all platforms
(DOS, Windows, Unices,..)• Latex is free
Latex vs. Word Processors
• De facto standard for scientific publishing• Very few bugs• Good for large documents• Can run even on 386 PC• Not very easy to learn
Getting Started
– Windows• TeXnicCenter• proTeXt
– Linux• TeXLive
– Mac• LyX & MacTeX
Macro package
How LaTeX works?
• TeX is a typesetter– You write and TeX will place it on the page
Input file Tex Output driver Output
file
LaTex
Output Formats
• .dvi Device Independent• .ps Post Script• .pdf PDF• .rtf Rich Text Format• .htmlHTML• .xml XML
How to Install ProText on Windows
A Simple LaTeX Document \documentclassarticle \begindocument This is some sample text. \enddocument
Output
A Simple LaTeX Document \documentclassarticle \begindocument This is some sample text. \enddocument
This is some sample text.
Parts of a LaTeX Document
• First line of all LaTeX documents• Specifies the type of the document
\documentclass articlereportbookletter
Basic Classes
Parts of a LaTeX Document
Start with \begin. . .End with \end. . .
\begindocument \beginequation
… \endequation\enddocument
Parts of a LaTeX Document
• Everything between \documentclass and \begindocument
• Use for customizing the formatting
Body of Text
• Start with \begindocument• End with \enddocument• Typesetting Text– \\ or \newline and \newpage– Bold \textbfITER or \bf – Italics \emph………… or \textit……… or \it– Underline \underline…………
Various Commands in LaTex
\date\today\date27 feb 2013\titleSOA University\maketitle\usepackagecolor \textcolorcolor_nametext\tiny text\small text\large text\huge text
Various Commands in LaTex Contd…
%\tableofcontents\pagenumberingroman\pagenumberingarabic
Lists
• Example \documentclassarticle
\beginitemize\item Apple\item Orange\enditemize
Lists
• Example \documentclassarticle
\beginitemize\item Apple\item Orange\enditemize
• Apple• Orange
Output
Sections
\sectionS’O’A University
\subsectionITER
\subsubsectionCS&IT Department
Reserved character in LaTexFollowing are Reserved character :-
# $ % ^ & * ~ \
Reserved character in LaTexFollowing are Resrved character :-
# $ % ^ & * ~ \
\textbackslash
Alignment
• Environments center, flushleft, flushright• Example
\beginflushrightRight aligned\endflushright
Alignment
• Environments center, flushleft, flushright• Example
\beginflushrightRight aligned\endflushright
Right alignedOutput
Example of table
\documentclassarticle\begintabular | l | r | c | \hlineDate & Price & Size \\ \hlineYesterday & 5 & big \\ \hlineToday & 3 & small \\ \hline\endtabular
Example of table
\documentclassarticle\begintabular| l | r | c | \hlineDate & Price & Size \\ \hlineYesterday & 5 & big \\ \hlineToday & 3 & small \\ \hline\endtabular
Date Price Size Yesterday 5 Big Today 3 Small
Output
Figures in LaTex
•Image should be in these files:-
PNG JPEGGIFPDF
Figure format
\documentclassarticle\usepackagegraphicx \beginfigure[h]\centering\includegraphics[width=1\textwidth]image name\captionHere is my image\labelimage-myimage\endfigure
Mathematics command
$$ for Mathematics Symbols^ used for Power_ used for Indices\fracnmueratordenomenator used for Fraction\sqrt--- for Square root\sum for Summation\int for integration$\Delta$ =∆ $\Pi$ = ∏$\Sigma$ = ∑$\Omega$ = Ω
Mathematics in LaTex\documentclassarticle\begindocument$$\sqrty^2$$\begineqnarray23a & = & b + c \\& = & y - z\endeqnarray$$\sum_x=1^5 y^z$$\enddocument
Mathematics in LaTex\documentclassarticle\begindocument$$\sqrty^2$$\begineqnarray23a & = & b + c \\& = & y - z\endeqnarray$$\sum_x=1^5 y^z$$\enddocument
Mathematics in LaTex\documentclassarticle\begindocument$$\sqrty^2$$\begineqnarray23a & = & b + c \\& = & y - z\endeqnarray$$\sum_x=1^5 y^z$$\enddocument
Mathematics in LaTex\documentclassarticle\begindocument$$\sqrty^2$$\begineqnarray23a & = & b + c \\& = & y - z\endeqnarray$$\sum_x=1^5 y^z$$\enddocument
Advantages of LaTeX
• Professional typesetting– Best output
• It is the standard for scientific documents• Processing Mathematical (& other) symbols• Meaning based structuring (rather than appearance)• Knowledgeable and helpful user group• Its FREE!• Platform independent
Disadvantages of using LaTeX
• “Hard to write disorganized documents”• Learning Curve• Customizing is tedious.
Conclusions
• Latex is optimal for master and phd thesis• Mathematical formulae are easy. • Consider converting Postscript files to PDF (more
widespread in Windows world) and to conserve space.
Bibliography
[1] http://www.wag.caltech.edu/home/rpm/presentations/2002-02-Latex-Slides/latex_talk.pdf
[2] Introduction to Latex www.iu.hio.no/~frodes/rm/ppt/latex.ppt
[3] LaTeX -Wikipedia, the free encyclopedia en.wikipedia.org/wiki/LaTeX
[4] LaTeX – A document preparation system www.latex-project.org/