You are on page 1of 23

Government Engineering College

Dept of Computer Science and Engineering

PRESENTATION ON

LaTeX

1. What is LaTeX?
is a computer program for typesetting documents.

2. What is Tex?

X is the typesetting language upon which

LaTeX i

Uses of LaTeX

used for typesetting professional research papers.

ides very high quality and is extremely customizable.

Open Source.

ent is safe because the file format is open and theres no

Simple Documents

uments using LaTeX.


an extension of .tex

mand must begin with a backslash(\).

re used for newline and Percentage(%) symbol indicate

Structure of a LaTeX file

\documentclass[options]{article}
Preamble (for LaTeX commands only)
\begin{document}
Document (text with embedded LaTeX commands
\end{document}

Document Classes

document can be determined using this document class functio

ort documents, including journal articles, and short reports.


and longer reports
containing chapters.

business or personal.
arencies for projection on a screen.

Class options

modified by options by placing in square bracket after


ptions,options]{class}

s are,

d, by default 10pt is assumed.

Making a Title Page

and is used to add a title for the document.

and is used to print the title page muse follow the \begin{docu
as follows

Title} provide title information


e} provide author information
ovide date
and print title page

Making Table of Contents

ketitle command, it will generate the table of content using the informat

cument.LaTex is a document preparation system for the Tex typ

on}
structure of LaTex}
sic structure of LaTex document}
mation}
matting}
ze}
xt Justification}

troduction to LaTex

Dr. ABC
February 19, 2014
Abstract
cument.LaTex is a document preparation system for the Tex typ

of LaTex
re of LaTex document

ion

Document Layout
Line Spacing and Paragraphs

the space between the lines in a paragraph. \linespread{1}will

tation.
tion.

Text Justification and


Text Formating
Text justification can be done using the following command
\begin{center}
This is for centered.
\end{center}
\begin{flushleft}
This is left-justified.
\end{flushleft}
\begin{flushright}
This is right-justified.
\end{flushright}

formating can be done with the help of following comma

tit{text} and \emph{text} for italic text.

tbf{text} for bold text.

derline{text} for underline text.

Font Size

aTeX supports for font size with the help of following comman

begin{large}text\end{large}
begin{Large}text\end{Large}
begin{huge}text\end{huge}
begin{Huge}text\end{Huge}
begin{small}text\end{small}
begin{tiny}text\end{tiny}

GECH

GECH

GECH

GECH
GECH
GECH

Lists

ee LaTeX list environments all will use \item as command to st

ate environment (also Known as an ordered list)numbers items

erate}
. Sugar
2. Cream
ate 3. Chocolate
ate}

vironment (also known as an unordered list)puts a bullet in fro

gredients together.<==>. Mix all ingredients together.


ool. <==>. Stir and cool.

n environment puts a boldface word or phrase in front of each

on}
ving animal that likes to sleep on the furniture.
n}

Tabular Representation

an additional argument that specifies the alignment of each c


\begin{tabular}{align}

Tabular Representation

center}
tabular}{ | m{5em} | m{1cm}| m{1cm} | m{1cm}| m{1
cell2 & cell3 & cell2 & cell3\\
cell5 & cell6 & cell2 & cell3\\
cell8 & cell9 & cell2 & cell3\\

bular}

Mathematics

lace mathematical formulas in the midst of ordinary text. This

Complex Equations
Superscripts:
$$2x^3$$
$$2x^{34}$$
Subscripts:
$$x_1$$
$$x_{12}$$
Greek letters:
$$\pi$$
$$\alpha$$
$$A=\pi r^2$$

metric functions:
n{x}$$
s{x}$$

ctions:
5{x}$$
}$$

roots:
2}$$
3]{2}$$

y=
y = cos x
log5 x
ln x
2

s:
\displaystyle{\frac{2}{3}}$ of the glass is full.

ARRAY ENVIRONMENT
t itself a math environment; it must be enclosed within a math
ray environment used to build a 5*5 magic square:

You might also like