Intro_LaTeX

63
L A T E X Document Preparing Sytem Jaspreet Kaur [email protected] Dept. of Computer Science August 25, 2012 Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

description

Delivered during LUG ludhiana's seminar

Transcript of Intro_LaTeX

Page 1: Intro_LaTeX

LATEXDocument Preparing Sytem

Jaspreet [email protected]

Dept. of Computer Science

August 25, 2012

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 2: Intro_LaTeX

Report

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 3: Intro_LaTeX

Poster

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 4: Intro_LaTeX

Shaping a text

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 5: Intro_LaTeX

Souvenir

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 6: Intro_LaTeX

Automated diary

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 7: Intro_LaTeX

Automated Certificates

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 8: Intro_LaTeX

Visiting cards

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 9: Intro_LaTeX

Document in html

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 10: Intro_LaTeX

Mathematics Assignment

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 11: Intro_LaTeX

Periodic table

A dynamic periodic table in Portuguese.

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 12: Intro_LaTeX

What is LATEX ?

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 13: Intro_LaTeX

What is LATEX ?

LATEX is a document preparation system

It is used for high-quality typesetting

Just concentrate on text, don’t worry about output.

With it, you can create beautiful, professional lookingdocuments

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 14: Intro_LaTeX

What is LATEX ?

LATEX is a document preparation system

It is used for high-quality typesetting

Just concentrate on text, don’t worry about output.

With it, you can create beautiful, professional lookingdocuments

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 15: Intro_LaTeX

What is LATEX ?

LATEX is a document preparation system

It is used for high-quality typesetting

Just concentrate on text, don’t worry about output.

With it, you can create beautiful, professional lookingdocuments

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 16: Intro_LaTeX

What is LATEX ?

LATEX is a document preparation system

It is used for high-quality typesetting

Just concentrate on text, don’t worry about output.

With it, you can create beautiful, professional lookingdocuments

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 17: Intro_LaTeX

Who developed it ?

It was dicovered by Donald Knuth.

Professor of “The Art of ComputerProgramming” at Stanford University.

He is a father of algorithm analysis.

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 18: Intro_LaTeX

Story behind it ?

When Donald Ervin Knuth was working on his book“The Art of Programming” was not happy with thetype-setting for his book. So he created a type-settingsystem that would let him concentrate on the content ofthe book rather than getting the type-setting softwaredistracting and getting him worried about formattingthe output. Thats why He designed TEX.

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 19: Intro_LaTeX

Why we should use LATEX !!

How is it best?

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 20: Intro_LaTeX

Why we should use LATEX !!

How is it best?

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 21: Intro_LaTeX

Features

Output Quality

It has the best output.

It knows typesetting.

Superior Engineering

It’s fast.

It’s stable.

It’s not rigid(extensible).

Plain text input.

Many output types.

Freedom

It’s free.

It runs anywhere.

Popularity

It’s the standard (inacademia and science).

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 22: Intro_LaTeX

Features

Output Quality

It has the best output.

It knows typesetting.

Superior Engineering

It’s fast.

It’s stable.

It’s not rigid(extensible).

Plain text input.

Many output types.

Freedom

It’s free.

It runs anywhere.

Popularity

It’s the standard (inacademia and science).

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 23: Intro_LaTeX

Features

Output Quality

It has the best output.

It knows typesetting.

Superior Engineering

It’s fast.

It’s stable.

It’s not rigid(extensible).

Plain text input.

Many output types.

Freedom

It’s free.

It runs anywhere.

Popularity

It’s the standard (inacademia and science).

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 24: Intro_LaTeX

Features

Output Quality

It has the best output.

It knows typesetting.

Superior Engineering

It’s fast.

It’s stable.

It’s not rigid(extensible).

Plain text input.

Many output types.

Freedom

It’s free.

It runs anywhere.

Popularity

It’s the standard (inacademia and science).

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 25: Intro_LaTeX

Now Are you interested to learn it ?

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 26: Intro_LaTeX

Installation

Installation of LATEX is quite easy.Go to terminal and type the following commands one by one.

$ sudo apt-get update

$ sudo apt-get install texlive-full

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 27: Intro_LaTeX

Installation

Installation of LATEX is quite easy.Go to terminal and type the following commands one by one.

$ sudo apt-get update

$ sudo apt-get install texlive-full

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 28: Intro_LaTeX

Installation

Installation of LATEX is quite easy.Go to terminal and type the following commands one by one.

$ sudo apt-get update

$ sudo apt-get install texlive-full

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 29: Intro_LaTeX

Simple document

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 30: Intro_LaTeX

Simple document

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 31: Intro_LaTeX

Simple document

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 32: Intro_LaTeX

Example

Source:

\documentclass{article}

\begin{document}

Hello World

\end{document}

Output:Hello World

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 33: Intro_LaTeX

Example

Source:

\documentclass{article}

\begin{document}

Hello World

\end{document}

Output:Hello World

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 34: Intro_LaTeX

Title page

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 35: Intro_LaTeX

Title page

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 36: Intro_LaTeX

Title page

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 37: Intro_LaTeX

Table of contents

Use: \tableofcontents

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 38: Intro_LaTeX

List of figures

Use: \listoffigures

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 39: Intro_LaTeX

Include images

To include image do following steps:

Include

\usepackage{graphicx} in preamble

Include following code in body

\begin{figure}[placement specifier]

\includegraphics[scale=o.1]{figure.png}

\caption{Example}

\end{figure}

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 40: Intro_LaTeX

Include images

To include image do following steps:

Include

\usepackage{graphicx} in preamble

Include following code in body

\begin{figure}[placement specifier]

\includegraphics[scale=o.1]{figure.png}

\caption{Example}

\end{figure}

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 41: Intro_LaTeX

Specifier

Specifier Descriptionh Place the float heret At top of the pageb At the bottom of the page

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 42: Intro_LaTeX

Insert code

\usepackage{verbatim} in preamble

Following code in body:

\begin{verbatim}

write code here ...

\end{verbatim

}

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 43: Intro_LaTeX

Insert code

\usepackage{verbatim} in preamble

Following code in body:

\begin{verbatim}

write code here ...

\end{verbatim

}

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 44: Intro_LaTeX

Ordered lists

Numbered list:

\begin{enumerate}

\item The labels consists of sequential numbers.

\item The numbers starts at 1 with every call to the

enumerate environment.

\end{enumerate}

Output:

1 The labels consists of sequential numbers.

2 The numbers starts at 1 with every call to theenumerate environment.

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 45: Intro_LaTeX

Ordered lists

Numbered list:

\begin{enumerate}

\item The labels consists of sequential numbers.

\item The numbers starts at 1 with every call to the

enumerate environment.

\end{enumerate}

Output:

1 The labels consists of sequential numbers.

2 The numbers starts at 1 with every call to theenumerate environment.

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 46: Intro_LaTeX

Ordered lists

Bulleted list:

\begin{itemize}

\item The individual entries are indicated with a

black dot, a so-called bullet.

\item The text in the entries may be of any length.

\end{itemize}

Output:

The individual entries are indicated with a black dot, aso-called bullet.

The text in the entries may be of any length.

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 47: Intro_LaTeX

Ordered lists

Bulleted list:

\begin{itemize}

\item The individual entries are indicated with a

black dot, a so-called bullet.

\item The text in the entries may be of any length.

\end{itemize}

Output:

The individual entries are indicated with a black dot, aso-called bullet.

The text in the entries may be of any length.

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 48: Intro_LaTeX

Ordered lists

Nested list:

\begin{itemize}

\item First level item

\begin{enumerate}

\item Second level item

\item Third level item

\end{enumerate}

\end{itemize}

Output:

First level item1 Second level item2 Third level item

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 49: Intro_LaTeX

Ordered lists

Nested list:

\begin{itemize}

\item First level item

\begin{enumerate}

\item Second level item

\item Third level item

\end{enumerate}

\end{itemize}

Output:

First level item1 Second level item2 Third level item

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 50: Intro_LaTeX

Table

\begin{tabular}{|l|c|r|}

\hline \multicolumn{3}{|c|}{Sample Tabular} \\

\hline Left & centered & right \\

\hline Left items & centered & right aligned \\

\hline

\end{tabular}

Output:Sample Tabular

Left centered rightLeft items centered right aligned

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 51: Intro_LaTeX

Table

\begin{tabular}{|l|c|r|}

\hline \multicolumn{3}{|c|}{Sample Tabular} \\

\hline Left & centered & right \\

\hline Left items & centered & right aligned \\

\hline

\end{tabular}

Output:Sample Tabular

Left centered rightLeft items centered right aligned

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 52: Intro_LaTeX

Table

If you want table with caption and label and specify theplacing of table then use:

\begin{table}[h]

\begin{tabular}{|l|c|r|}

\hline \multicolumn{3}{|c|}{Sample Tabular} \\

\hline Left items & centered & right aligned \\

\hline

\end{tabular}

\caption{example}

\end{table}

Output:

Sample TabularLeft items centered right aligned

Table: example

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 53: Intro_LaTeX

Table

If you want table with caption and label and specify theplacing of table then use:

\begin{table}[h]

\begin{tabular}{|l|c|r|}

\hline \multicolumn{3}{|c|}{Sample Tabular} \\

\hline Left items & centered & right aligned \\

\hline

\end{tabular}

\caption{example}

\end{table}

Output:

Sample TabularLeft items centered right aligned

Table: example

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 54: Intro_LaTeX

Specifier

Specifier Descriptionl left justified columnec centered column| vertical line|| double vertical line& column seperator

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 55: Intro_LaTeX

Headings

\section*{\LaTeX{}}

\section{\LaTeX{}}

\subsection{Features}

\subsubsection{Report}

\subsubsection{Presentation}

\subsection{Advantages}

\paragraph{My name is jaspreet kaur doing B-tech in

computer science and engineering from GNDEC ludhiana.}

\subparagraph{My name is jaspreet kaur doing B-tech in

computer science and engineering from GNDEC ludhiana.}

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 56: Intro_LaTeX

Headings:Output

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 57: Intro_LaTeX

How LATEX Works ?

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 58: Intro_LaTeX

Editors of LATEX

Editors of LATEX

Texmaker

texworks

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 59: Intro_LaTeX

Printing industry of LATEX

Shiping industry named ‘River Valley’ in kerala.

Founded by CV Radhakrishnan.

Aim of industry

For over twenty years they haveworked to perfect our text processingsystemThey get the dirty documents(madein Ms office or in any otherprocessors) and convert intobeautiful documents.

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 60: Intro_LaTeX

Printing industry of LATEX

Shiping industry named ‘River Valley’ in kerala.

Founded by CV Radhakrishnan.

Aim of industry

For over twenty years they haveworked to perfect our text processingsystemThey get the dirty documents(madein Ms office or in any otherprocessors) and convert intobeautiful documents.

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 61: Intro_LaTeX

In the end I would like to say:

“If you care about creating polished and stylish documents,and if you have a sense of aesthetics, try LaTeX! Believe me,you’ll fall in love with it and use it for the rest of your life!”

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 62: Intro_LaTeX

Get in touch

Any question ?

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com

Page 63: Intro_LaTeX

Get in touch

Thank you

Jaspreet KaurGNDEC, Ludhiana

Blog: jaspreetsarao.wordpress.comemail: [email protected]

Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com