SlideShare a Scribd company logo
1 of 35
Download to read offline
A computer programme
created by 
Donald E Knuth
Donald E Knuth
(born January 10, 1938)
Professor Emeritus of the Art of Computer Programming 
At Stanford University
Volume 1 - Fundamental Algorithms
Chapter 1 - Basic concepts
Chapter 2 - Information structures
Volume 2 - Seminumerical Algorithms
Chapter 3 – Random Numbers
Chapter 4 - Arithmetic
Volume 3 - Sorting and Searching
Chapter 5 – Sorting
Chapter 6 - Searching
TeX is a typesetting system 
intended for the creation of 
beautiful documents. 
Type‐setting : some issues
Follow the conventions of the finest 
printers in the world.
Avoiding orphans and widows
An orphaned line, highlighted in yellow, 
appearing at the bottom of a page.
A widowed line, highlighted in yellow, 
appearing at the top of a page.
Writing guides, such as the Chicago 
Manual of Style, suggest that a 
manuscript should have no widows and 
orphans even when avoiding them 
results in additional space at the bottom 
of a page or column.
Type‐setting : some issues
Inter‐letter spacing
Inter‐word spacing
Inter‐line spacing
Spacing in mathematics
Type‐setting : some issues
Hyphenation : For e.g. , consider the‐
rapist for therapist.
Leslie Lamport, the creator of LaTeX
• LaTeX pronounced as  Lah‐tek, or Lay‐tek
• A typesetting program, not a word‐
processor
• Current version : LaTeX2ε
• Designed for producing beautiful books, 
theses, papers, articles...
• De facto standard for writing academic 
papers
• Based on TeX
LaTeX is a document preparation system 
for high‐quality typesetting. 
It is most often used for medium‐to‐large 
technical or scientific documents.
It can be used for almost any form of 
publishing. 
LaTeX is not a word processor! 
LaTeX encourages authors 
not to worry about the appearance
of their documents 
but to worry about content.
A test document to learn LaTeX
V N Krishnachandran
19 February 2010
Hello world! 
To create a document like the one above …
documentclass{article}
title{A test document to learn LaTeX}
author{V N Krishnachandran}
date{19 February 2010}
begin{document}
maketitle
Hello world!
end{document}
Create a text file like the one above and compile…
This document is an article.
Its title is A test document to learn LaTeX.
Its author is V N Krishnachandran.
It was written in 19 February 2010.
The document consists of a title followed by the 
text Hello world!
What the text file means …
How To Run LaTeX
• Create a text file with extension  .tex, say
myfile.tex
• Compile myfile : latex myfile.tex
This makes a  file with extension .dvi
• View the dvi file :  xdvi myfile.dvi
: yap myfile
• Dvi ‐‐> PostScript : dvips myfile.dvi
This creates a file with extension .ps
• View PostScript : gv myfile (UNIX)
:  Use gsview
pdfLaTeX
An extension of TeX which can be configured 
to directly generate PDF documents instead 
of DVI. All current TeX distributions including 
TeX live, MacTeX and MiKTeX include pdfTeX
(Plain TeX) and pdfLaTeX (LaTeX). 
Features
Typesetting journal articles, technical reports, 
books, and slide presentations.
Control over large documents containing 
sectioning, cross‐references, tables and figures.
Typesetting of complex mathematical formulas.
Features
Automatic generation of bibliographies and 
indexes.
Multi‐lingual typesetting.
Inclusion of artwork, and process or spot 
colour.
Document Class
documentclass[options]{class}
options  =  a4paper, 
11pt, 12pt, 10pt, 
twocolumn, landscape,...
class  =  article, report, book,...
Sample commands
Start with  begin{document}
End with  end{document}
Typesetting Text 
 or    newline and   newpage
Bold   textbf{……………} or bf
Italics  emph{…………} or  textit{………} or it
Underline  underline{…………} or ul
Sample commands
Sections
section{…} = 1.  Latex is Great
subsection{…} = 1.1 Why Great
subsubsection{…} = 1.1.1 Reason One
chapter{…} ‐ To be used with book and report
Titles, authors and footnotes
title{…}
author{…}
footnote{…}
maketitle Display Title and Author
tableofcontents Generates TOC
Sample commands
Numbered listing
begin{enumerate}
item Apple
item Orange
end{enumerate}
Sample commands
Font sizes
tiny scriptsize footnotesize
small normalsize large
Large LARGE huge
Huge
Sample commands
Mathematical expressions ….
Sample commands
begin{center}
$$
y=frac{a^3+2c_{x}}{1+sqrt{b_{x}}}
$$ 
vspace{0.2in}
$$
Q=sum_{i=1}^{j}int_{mu}^{infty}f(x_{j})dx
$$ 
vspace{0.2in}
$$
Psi = oint_{- infty}^ {infty}f_{xy} ({frac{partial
Qx}{partial Qy}})^{Im_{pi}^ prime}
$$ 
end{center}
Text in input file…
Sample commands
Happy TeXing …

More Related Content

More from PlusOrMinusZero

Mobile Communications Sajay K R
Mobile Communications Sajay K RMobile Communications Sajay K R
Mobile Communications Sajay K R
PlusOrMinusZero
 
Performance Tuning by Dijesh P
Performance Tuning by Dijesh PPerformance Tuning by Dijesh P
Performance Tuning by Dijesh P
PlusOrMinusZero
 
On finite differences, interpolation methods and power series expansions in i...
On finite differences, interpolation methods and power series expansions in i...On finite differences, interpolation methods and power series expansions in i...
On finite differences, interpolation methods and power series expansions in i...
PlusOrMinusZero
 

More from PlusOrMinusZero (20)

Deep into to Deep Learning Starting from Basics
Deep into to Deep Learning Starting from BasicsDeep into to Deep Learning Starting from Basics
Deep into to Deep Learning Starting from Basics
 
The Untold Story of Indian Origins of Claculus
The Untold Story of Indian Origins of ClaculusThe Untold Story of Indian Origins of Claculus
The Untold Story of Indian Origins of Claculus
 
World environment day 2019 celebration
World environment day 2019 celebrationWorld environment day 2019 celebration
World environment day 2019 celebration
 
Preseenting Vidya Mobile (An Android app for VAST)
Preseenting Vidya Mobile (An Android app for VAST)Preseenting Vidya Mobile (An Android app for VAST)
Preseenting Vidya Mobile (An Android app for VAST)
 
Fractional calculus and applications
Fractional calculus and applicationsFractional calculus and applications
Fractional calculus and applications
 
On Sangamagrama Madhava's (c.1350 - c.1425) Algorithms for the Computation of...
On Sangamagrama Madhava's (c.1350 - c.1425) Algorithms for the Computation of...On Sangamagrama Madhava's (c.1350 - c.1425) Algorithms for the Computation of...
On Sangamagrama Madhava's (c.1350 - c.1425) Algorithms for the Computation of...
 
Linear algebra behind Google search
Linear algebra behind Google searchLinear algebra behind Google search
Linear algebra behind Google search
 
Technical writing: Some guidelines
Technical writing: Some guidelinesTechnical writing: Some guidelines
Technical writing: Some guidelines
 
Almost all about Google Drive
Almost all about Google DriveAlmost all about Google Drive
Almost all about Google Drive
 
First Introduction to Fractals
First Introduction to FractalsFirst Introduction to Fractals
First Introduction to Fractals
 
Mobile Communications Sajay K R
Mobile Communications Sajay K RMobile Communications Sajay K R
Mobile Communications Sajay K R
 
Performance Tuning by Dijesh P
Performance Tuning by Dijesh PPerformance Tuning by Dijesh P
Performance Tuning by Dijesh P
 
On finite differences, interpolation methods and power series expansions in i...
On finite differences, interpolation methods and power series expansions in i...On finite differences, interpolation methods and power series expansions in i...
On finite differences, interpolation methods and power series expansions in i...
 
First introduction to wireless sensor networks
First introduction to wireless sensor networksFirst introduction to wireless sensor networks
First introduction to wireless sensor networks
 
World environment day 2010 vidya academy mca renjith sankar
World environment day 2010 vidya academy mca renjith sankarWorld environment day 2010 vidya academy mca renjith sankar
World environment day 2010 vidya academy mca renjith sankar
 
World environment day 2010 vidya academy mca steffi lazar
World environment day 2010 vidya academy mca steffi lazarWorld environment day 2010 vidya academy mca steffi lazar
World environment day 2010 vidya academy mca steffi lazar
 
An introduction to free software
An introduction to free softwareAn introduction to free software
An introduction to free software
 
Introduction to Computer Algebra Systems
Introduction to Computer Algebra SystemsIntroduction to Computer Algebra Systems
Introduction to Computer Algebra Systems
 
pi to a trillion digits : How and Why?
pi to a trillion digits : How and Why?pi to a trillion digits : How and Why?
pi to a trillion digits : How and Why?
 
A prize winning entry in a two-hour slide-show presentation contest on World ...
A prize winning entry in a two-hour slide-show presentation contest on World ...A prize winning entry in a two-hour slide-show presentation contest on World ...
A prize winning entry in a two-hour slide-show presentation contest on World ...
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 

An introduction to TeX and LaTeX