The document is a tutorial on LaTeX that discusses what LaTeX is, how to install it, and how to create basic LaTeX documents and elements such as title pages, figures, lists, and code snippets. It provides code examples for simple documents and for inserting various elements like images, tables of contents, verbatim code, and ordered and unordered lists. It also discusses LaTeX installation on Linux systems.
1 of 63
Downloaded 19 times
More Related Content
Intro_LaTeX
1. A
LTEX
Document Preparing Sytem
Jaspreet Kaur
jaspritsarao@gmail.com
Dept. of Computer Science
August 25, 2012
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
2. Report
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
3. Poster
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
4. Shaping a text
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
5. Souvenir
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
11. Periodic table
A dynamic periodic table in Portuguese.
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
12. A
What is LTEX ?
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
13. A
What is LTEX ?
A
LTEX is a document preparation system
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
14. A
What is LTEX ?
A
LTEX is a document preparation system
It is used for high-quality typesetting
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
15. A
What is LTEX ?
A
LTEX is a document preparation system
It is used for high-quality typesetting
Just concentrate on text, don’t worry about output.
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
16. A
What is LTEX ?
A
LTEX 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 looking
documents
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
17. Who developed it ?
It was dicovered by Donald Knuth.
Professor of “The Art of Computer
Programming” at Stanford University.
He is a father of algorithm analysis.
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
18. Story behind it ?
When Donald Ervin Knuth was working on his book
“The Art of Programming” was not happy with the
type-setting for his book. So he created a type-setting
system that would let him concentrate on the content of
the book rather than getting the type-setting software
distracting and getting him worried about formatting
the output. Thats why He designed TEX.
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
19. A
Why we should use LTEX !!
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
20. A
Why we should use LTEX !!
How is it best?
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
21. Features
Output Quality
It has the best output.
It knows typesetting.
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
22. 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.
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
23. Features
Output Quality Freedom
It has the best output. It’s free.
It knows typesetting. It runs anywhere.
Superior Engineering
It’s fast.
It’s stable.
It’s not rigid
(extensible).
Plain text input.
Many output types.
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
24. Features
Output Quality Freedom
It has the best output. It’s free.
It knows typesetting. It runs anywhere.
Superior Engineering Popularity
It’s fast. It’s the standard (in
It’s stable. academia and science).
It’s not rigid
(extensible).
Plain text input.
Many output types.
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
25. Now Are you interested to learn it ?
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
26. Installation
A
Installation of LTEX is quite easy.
Go to terminal and type the following commands one by one.
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
27. Installation
A
Installation of LTEX is quite easy.
Go to terminal and type the following commands one by one.
$ sudo apt-get update
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
28. Installation
A
Installation of LTEX 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
29. Simple document
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
30. Simple document
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
31. Simple document
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
33. Example
Source:
documentclass{article} Output:
begin{document} Hello World
Hello World
end{document}
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
34. Title page
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
35. Title page
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
36. Title page
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
37. Table of contents
Use: tableofcontents
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
38. List of ?gures
Use: listoffigures
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
39. Include images
To include image do following steps:
Include
usepackage{graphicx} in preamble
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
40. 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
41. Speci?er
Speci?er Description
h Place the ?oat here
t At top of the page
b At the bottom of the page
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
42. Insert code
usepackage{verbatim} in preamble
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
43. 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
44. 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}
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
45. 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 the
enumerate environment.
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
46. 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}
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
47. 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, a
so-called bullet.
The text in the entries may be of any length.
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
48. Ordered lists
Nested list:
begin{itemize}
item First level item
begin{enumerate}
item Second level item
item Third level item
end{enumerate}
end{itemize}
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
49. 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 item
1 Second level item
2 Third level item
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
50. 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}
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
51. 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}
Sample Tabular
Output: Left centered right
Left items centered right aligned
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
52. Table
If you want table with caption and label and specify the
placing 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}
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
53. Table
If you want table with caption and label and specify the
placing 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 Tabular
Left items centered right aligned
Table: example
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
54. Speci?er
Speci?er Description
l left justi?ed columne
c centered column
| vertical line
|| double vertical line
& column seperator
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
55. 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
56. Headings:Output
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
57. A
How LTEX Works ?
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
58. A
Editors of LTEX
A
Editors of LTEX
Texmaker
texworks
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
59. A
Printing industry of LTEX
Shiping industry named ‘River Valley’ in kerala.
Founded by CV Radhakrishnan.
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
60. A
Printing industry of LTEX
Shiping industry named ‘River Valley’ in kerala.
Founded by CV Radhakrishnan.
Aim of industry
For over twenty years they have
worked to perfect our text processing
system
They get the dirty documents(made
in Ms o?ce or in any other
processors) and convert into
beautiful documents.
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
61. 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
62. Get in touch
Any question ?
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com
63. Get in touch
Thank you
Jaspreet Kaur
GNDEC, Ludhiana
Blog: jaspreetsarao.wordpress.com
email: jaspritsarao@gmail.com
Guru Nanak Dev Engineering College jaspreetsarao.wordpress.com