You are on page 1of 18

LATEX

Dileep Kumar K

College of Applied Science,Puthuppally

December 18, 2019

LATEX Dileep Kumar K


What is Type Setting

LATEX Dileep Kumar K


What is Type Setting

Wikipedia

Typesetting is the composition of text by means of


arranging physical types or the digital equivalents.

Stored letters and other symbols (called sorts in mechan-


ical systems and glyphs in digital systems) are retrieved
and ordered according to a language’s orthography for vi-
sual display.

LATEX Dileep Kumar K


Wikipedia

Donald Ervin Knuth (


born January 10, 1938)
is an American computer
scientist, mathematician,
and professor emeritus
at Stanford University.

He is the author of the


multi-volume work The
Art of Computer Pro-
gramming. Developed
TEX.

LATEX Dileep Kumar K


LATEX

LaTeX, which is pronounced


«Lah-tech» or «Lay-tech»
(to rhyme with «blech» or
«Bertolt Brecht»),
is a document preparation sys-
tem for high-quality typesetting.
It is most often used for
medium-to-large technical
or scientific documents but it
can be used for almost
any form of publishing.

LATEX Dileep Kumar K


Installation

Linux (Debian/Ubuntu)
$ sudo apt install texlive-full

LATEX Dileep Kumar K


Installation
Windows (Miktex)

LATEX Dileep Kumar K


Installation
Windows (Miktex)

LATEX Dileep Kumar K


Installation
Windows (Miktex)

LATEX Dileep Kumar K


Installation
Windows (Miktex)

LATEX Dileep Kumar K


Installation
Windows (Miktex)

LATEX Dileep Kumar K


Structure of a LATEXDocument

\documentclass[options]{class}
% This is comment
% This area is preamble
\begin{document}
...
\end{document}

LATEX Dileep Kumar K


LaTeX Command Structure
LaTeX documents behaviour can be controlled by using specific
command.
Typical command structure is as following:
\commandname[optional argument]{main argument}
Some commands have more than one arguments, for example:
\multicolumn{number of columns joined}{alignment}{content}
Some commands do not need pair to work well, for example:
\item Text being item content
Some commands have option arguments, for example:
\item[--] Text being item content

LATEX Dileep Kumar K


Environments

A special type of command is the environment. Typical


environment structure is as following:
\begin{environmentname}
content
\end{environmentname}
For example:
\begin{center}
Sample text
\end{center}

LATEX Dileep Kumar K


New Commands

LaTeX will not allow you to create a new command that would
overwrite an existing one. But there is a special command in
case you explicitly want this:
\renewcommand
It uses the same syntax as the
\newcommand command
In certain cases you might also want to use the
\providecommand command

LATEX Dileep Kumar K


...

OR

\newcommand{\animal}[2]{\item[\bf #1] {\em #2}}

\begin{description}
\animal{Elephant}{A big grey animal with a trunk}
\animal{Zebra}{A stripey looking horse}
\end{description}

LATEX Dileep Kumar K


Some features

* Anything that follows a % symbol till end of the line


is a comment

* Special characters ( ~ # $ ^ & _ { } ) are escaped by a \

* \ symbol is inserted using \textbackslash command

* \\ inserts a new line in the output


* An empty line marks the beginning of a new paragraph
* Multiple spaces (or empty lines) are equivalent to
a single space (or empty line)

LATEX Dileep Kumar K


Bibliography

LATEX Dileep Kumar K

You might also like