SlideShare una empresa de Scribd logo
1 de 36
Introduction to Latex
A very quick look at typesetting documents
Neeraj Baghel
M.Tech CSE II YEAR
1
OUTLINE
• Introduction
• Basics of L AT EX
• Tabular
• Images
• Math
• Tools
• Conclusions
2
Introduction
• Latex is an extension of TeX
• TeX is essentially a Markup Language (like
HTML, XML and RTF)
• Used for publishing reports, books, scientific
documents,etc
• LaTeX was created in 1983 by Leslie Lamport.
Introduction
3
Latex vs. Word Processors
• High typeset quality
• Easy to include math formulas
• Source file format id not bounded to a
particular OS or platform
• Latex implementations exists for all platforms
(DOS, Windows, Unices,..)
• Latex is free
• Good for large documents
• Not very easy to learn
Introduction
4
Creating Latex Files
Your Latex File Your Bibtex File
Latex compile x3
Bibtex compile x2
Latex compile x3
Your Postscript File
Dvips compile x1
Introduction
5
Latex File Structure
• Document Class
Predefined Formats (article, report, book,..).
• Packages used
Added Functionality (graphics, reference style,...).
• Main Body
Text and Bibliography References.
Basics of L AT EX
6
The Basics
• Document Class
documentclass[options]{class}
options = a4paper, 11pt, 12pt, 10pt, twocolumn,
landscape,...
class = article, report, book,...
• Packages
usepackage{package name}
epsfig = insert PS pictures into the
document
fancyhdr = easy definition of footer
and header
Basics of L AT EX
7
Body of Text
• Start with begin{document}
• End with end{document}
• Typesetting Text
•  or newline and newpage
• Quotations
• Bold textbf{……………} or bf
• Italics emph{…………} or textit{………}
or it
• Underline underline{…………} or ul
• Including Multiple Files
• input{filename.tex}
Basics of L AT EX
8
Format
• Sections
• section{…} = 1. Latex is Great
• subsection{…} = 1.1 Why Latex is Great
• subsubsection{…} = 1.1.1 Reason One
• appendix - changes numbering scheme
• chapter{…} - To be used with book and
report document classes
• Titles, Authors and others
• title{…} author{…}
• footnote{…}
Basics of L AT EX
9
SECTIONING COMMANDS
• L AT EX can organize, number and index
chapters and sections of a document. There
are upto 7 levels of depth for defining sections
depending on the document class.
Basics of L AT EX
10
Format Contd.
• maketitle - Display Title and Author
• tableofcontents - generates TOC
• listoftables - generates LOT
• listoffigures - generates LOF
• Labels
• label{marker} - Marker in document.
• pageref{marker} - Displays page no. of marker.
• ref{marker} - Displays section location of marker.
• Itemise
• Use either enumerate, itemize or description.
• see handout for example.
Basics of L AT EX
11
Lists
• Source
begin{itemize}
item Apple
item Orange
end{itemize}
• Result
•Apple
•Orange
Basics of L AT EX
12
Lists
• Enumerate instead of itemize gives a
numbered list
• Lists can be recursive
Basics of L AT EX
13
BULLETS & NUMBERING
Unordered Lists
begin{itemize}
item Item 1
item Item 2
....
end{itemize}
The default labeling scheme:
Level 1 - bullet (•)
Level 2 - (-)
Level 3 - ast (*)
Level 4 - cdot (.)
Ordered Lists
begin{enumerate}
item Item 1
item Item 2
....
end{enumerate}
The default numbering scheme:
Level 1 - 1,2,3...
Level 2 - a,b,c...
Level 3 - i,ii,iii...
Level 4 - A,B,C...
Basics of L AT EX
14
Environment
• Something between
• begin{name}
• end{name}
• Many command, for example bf affect the
text until the end of environment
• Can be recursive
• Examples:
• itemize, center, abstract
Basics of L AT EX
15
Group
• Text between { and }
• Many commands work until the end of the
group
• Code
• put {one word bf in bold} here
• Result
• put one word in bold here
Basics of L AT EX
16
Alignment
• Environments center, flushleft,
flushright
• Example
• begin{flushright}
• Right aligned
• end{flushright}
• Result
Right aligned
Basics of L AT EX
17
Font size
tiny scriptsize footnotesize
small normalsize
large Large
LARGE huge
Huge
Basics of L AT EX
18
Example of Latex document
documentclass{article}
title{Simple Example}
author{Andrei Gurtov}
date{March 2000}
begin{document}
maketitle
Hello world!
end{document}
Basics of L AT EX
19
Tabular
• Columns
• begin{tabular}{|…|…|}
• end{tabular}
• Rows
• & - Split text into columns
•  - End a row
• hline - Draw line under row
• e.g. 123123 & 34.00 hline
Two Columns
l = automatically adjust
size, left justify
r = automatically adjust
size, right justify
p = set size
e.g p{4.7cm}
c = centre text
Tabular
20
Example of table
begin{tabular}{|l|r|c|} hline
Date & Price & Size  hline
Yesterday & 5 & big  hline
Today & 3 & small  hline
end{tabular}
Date Price Size
Yesterday 5 Big
Today 3 Small
Tabular
21
Floating Bodies
• Floating bodies can stop splitting of tables
and images over pages.
begin{figure}[options]
begin{table}[options]
• They will now appear in the LOF and LOT.
Options (recommendations)
h = place table here
t = place at top of page
b = place at bottom of page
Images
22
Example of floating figure
• begin{figure}[ht]
• centeringepsfig{file=uni.ps, width=5cm}
• caption{University of Helsinki}
• label{uni}
• end{figure}
Figure~ref{uni}
shows...
Images
23
Images
• Use epsfig package
• usepackage{epsfig}
• Including images in main body
• epsfig{file=filename.eps,
width=10cm, height=9cm, angle=90}
• Creating EPS - Use xv and/or xfig.
• MS Power Point, save as GIF and convert
to EPS.
Images
24
MATHEMATICAL MODES 25
MATH
MATHEMATICAL COMMANDS 26
MATH
ADDITIONAL OPERATORS 27
MATH
MATH EXERCISE 28
MATH
SOLUTIONS 29
MATH
Some Math
begin{center}
{large
$$ y=frac{a^3+2c_{x}}{1+sqrt{b_{x}}} $$ 
vspace{0.2in}
$$
Q=sum_{i=1}^{j}int_{mu}^{infty}f(x_{j})d
x $$ 
vspace{0.2in}
$$ Psi = oint_{- infty}^{infty}f_{xy}
({frac{partial
Qx}{partial Qy}})^{Im_{pi}^ prime} $$  }
30
MATH
Bibliography by hand
begin{thebibliography}{}
bibitem[Come95]{Come95} Comer,
D. E., {it Internetworking with TCP/IP:
Principles, Protocols and Architecture},
volume 1, 3rd edition. Prentice-Hall,
1995.
end{thebibliography}
BIBLIOGRAPHY
31
Bibliography using Bibtex
• Bibliography information is stored in a *.bib
file, in Bibtex format.
• Include chicago package
• usepackage{chicago}
• Set referencing style
• bibliographystyle{chicago}
• Create reference section by
• bibliography{bibfile with no extension}
BIBLIOGRAPHY
32
Bibliography using Bibtex
@book{Come95,
author=“D. E. Comer”,
title={Internetworking with TCP/IP: Principles,
Protocols and Architecture},
publisher=“Prentice-Hall”,
year=1995,
volume=1,
edition=“Third”}
BIBLIOGRAPHY
33
Bibliography contd.
• Citing references in text
• cite{cuc98} = (Cuce 1998)
• citeN{cru98} = Crud (1998)
• shortcite{tom98} = (Tom, et. al. 1998)
• Creating Bibtex Files
• Use Emacs with extensions.
• or copy Bibtex entries from bibliography database.
BIBLIOGRAPHY
34
Tools
UNIX based systems
• xdvi, ghostview, fixps, emacs with latex/bibtex
support.
Windows 98/NT
• Ghostview, Acrobat Distiller, Acrobat Reader,
Scientific Workplace (not the best), the Bibtex
viewer is good. Paint Shop Pro, Latex and Emacs
Online
• Overleaf, ShareLaTeX, LaTeX Base, Papeeria,
Authorea
35
Conclusions
• Mathematical Formulae are easy.
• Avoid GUI latex creators. (Lyx, Klyx, Scientific
Word).
• Use the bibtex search engine:
• Consider converting Postscript files to PDF to
conserve space.
36

Más contenido relacionado

La actualidad más candente

Academic writing in LaTeX
Academic writing in LaTeX Academic writing in LaTeX
Academic writing in LaTeX Daniele Di Mitri
 
12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMSkoolkampus
 
Aaa ped-6-Data manipulation: Data Files, and Data Cleaning & Preparation
Aaa ped-6-Data manipulation:  Data Files, and Data Cleaning & PreparationAaa ped-6-Data manipulation:  Data Files, and Data Cleaning & Preparation
Aaa ped-6-Data manipulation: Data Files, and Data Cleaning & PreparationAminaRepo
 
File Structures(Part 2)
File Structures(Part 2)File Structures(Part 2)
File Structures(Part 2)SURBHI SAROHA
 
How to use LaTeX and Beamer to prepare presentation for Slideshare
How to use LaTeX and Beamer to prepare presentation for SlideshareHow to use LaTeX and Beamer to prepare presentation for Slideshare
How to use LaTeX and Beamer to prepare presentation for SlideshareVesa Linja-aho
 
Indexing and-hashing
Indexing and-hashingIndexing and-hashing
Indexing and-hashingAmi Ranjit
 
Indexing and hashing
Indexing and hashingIndexing and hashing
Indexing and hashingJeet Poria
 
Dynamic multi level indexing Using B-Trees And B+ Trees
Dynamic multi level indexing Using B-Trees And B+ TreesDynamic multi level indexing Using B-Trees And B+ Trees
Dynamic multi level indexing Using B-Trees And B+ TreesPooja Dixit
 
Indexing structure for files
Indexing structure for filesIndexing structure for files
Indexing structure for filesZainab Almugbel
 
Sas short course_presentation_11-4-09
Sas short course_presentation_11-4-09Sas short course_presentation_11-4-09
Sas short course_presentation_11-4-09Prashant Ph
 
Advance Hive, NoSQL Database (HBase) - Module 7
Advance Hive, NoSQL Database (HBase) - Module 7Advance Hive, NoSQL Database (HBase) - Module 7
Advance Hive, NoSQL Database (HBase) - Module 7Rohit Agrawal
 
Algorithmic techniques-for-big-data-analysis
Algorithmic techniques-for-big-data-analysisAlgorithmic techniques-for-big-data-analysis
Algorithmic techniques-for-big-data-analysisAtner Yegorov
 
Introduction to sas
Introduction to sasIntroduction to sas
Introduction to sasAjay Ohri
 
0104 abap dictionary
0104 abap dictionary0104 abap dictionary
0104 abap dictionaryvkyecc1
 

La actualidad más candente (19)

Academic writing in LaTeX
Academic writing in LaTeX Academic writing in LaTeX
Academic writing in LaTeX
 
12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS
 
Isam
IsamIsam
Isam
 
Indexing
IndexingIndexing
Indexing
 
Latex slides
Latex slidesLatex slides
Latex slides
 
Aaa ped-6-Data manipulation: Data Files, and Data Cleaning & Preparation
Aaa ped-6-Data manipulation:  Data Files, and Data Cleaning & PreparationAaa ped-6-Data manipulation:  Data Files, and Data Cleaning & Preparation
Aaa ped-6-Data manipulation: Data Files, and Data Cleaning & Preparation
 
File Structures(Part 2)
File Structures(Part 2)File Structures(Part 2)
File Structures(Part 2)
 
How to use LaTeX and Beamer to prepare presentation for Slideshare
How to use LaTeX and Beamer to prepare presentation for SlideshareHow to use LaTeX and Beamer to prepare presentation for Slideshare
How to use LaTeX and Beamer to prepare presentation for Slideshare
 
Indexing and-hashing
Indexing and-hashingIndexing and-hashing
Indexing and-hashing
 
Indexing and hashing
Indexing and hashingIndexing and hashing
Indexing and hashing
 
Dynamic multi level indexing Using B-Trees And B+ Trees
Dynamic multi level indexing Using B-Trees And B+ TreesDynamic multi level indexing Using B-Trees And B+ Trees
Dynamic multi level indexing Using B-Trees And B+ Trees
 
Indexing structure for files
Indexing structure for filesIndexing structure for files
Indexing structure for files
 
Sas short course_presentation_11-4-09
Sas short course_presentation_11-4-09Sas short course_presentation_11-4-09
Sas short course_presentation_11-4-09
 
Advance Hive, NoSQL Database (HBase) - Module 7
Advance Hive, NoSQL Database (HBase) - Module 7Advance Hive, NoSQL Database (HBase) - Module 7
Advance Hive, NoSQL Database (HBase) - Module 7
 
Algorithmic techniques-for-big-data-analysis
Algorithmic techniques-for-big-data-analysisAlgorithmic techniques-for-big-data-analysis
Algorithmic techniques-for-big-data-analysis
 
Introduction to sas
Introduction to sasIntroduction to sas
Introduction to sas
 
Databases
DatabasesDatabases
Databases
 
Presentation 1st
Presentation 1stPresentation 1st
Presentation 1st
 
0104 abap dictionary
0104 abap dictionary0104 abap dictionary
0104 abap dictionary
 

Similar a Latex intro

Latex Introduction for Beginners
Latex Introduction for BeginnersLatex Introduction for Beginners
Latex Introduction for Beginnersssuser9e8fa4
 
LaTeX로 문서 작성하자
LaTeX로 문서 작성하자LaTeX로 문서 작성하자
LaTeX로 문서 작성하자Kangjun Heo
 
Latex - Companion for a Researcher - A Review.ppt
Latex - Companion for a Researcher - A Review.pptLatex - Companion for a Researcher - A Review.ppt
Latex - Companion for a Researcher - A Review.pptLadallaRajKumar
 
LaTex tutorial with Texstudio
LaTex tutorial with TexstudioLaTex tutorial with Texstudio
LaTex tutorial with TexstudioHossein Babashah
 
Introduction to latex by Rouhollah Nabati
Introduction to latex by Rouhollah NabatiIntroduction to latex by Rouhollah Nabati
Introduction to latex by Rouhollah Nabatinabati
 
Latex for beginners
Latex for beginnersLatex for beginners
Latex for beginnersKaushik Naik
 
latex_intro.ppt
latex_intro.pptlatex_intro.ppt
latex_intro.pptTapasPal34
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptrajinooka
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptanandmaheshwari15
 
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...akuysal1
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptTaraLeander
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptGhufranKhan42
 
Introduction to LaTeX - Dumitrescu (1).ppt
Introduction to LaTeX - Dumitrescu (1).pptIntroduction to LaTeX - Dumitrescu (1).ppt
Introduction to LaTeX - Dumitrescu (1).pptAmit Bairwa
 
Latex intro s_dutta_v2
Latex intro s_dutta_v2Latex intro s_dutta_v2
Latex intro s_dutta_v2SoumyoDutta
 

Similar a Latex intro (20)

Latex
LatexLatex
Latex
 
Latex Introduction for Beginners
Latex Introduction for BeginnersLatex Introduction for Beginners
Latex Introduction for Beginners
 
LaTeX로 문서 작성하자
LaTeX로 문서 작성하자LaTeX로 문서 작성하자
LaTeX로 문서 작성하자
 
Latex - Companion for a Researcher - A Review.ppt
Latex - Companion for a Researcher - A Review.pptLatex - Companion for a Researcher - A Review.ppt
Latex - Companion for a Researcher - A Review.ppt
 
LaTex tutorial with Texstudio
LaTex tutorial with TexstudioLaTex tutorial with Texstudio
LaTex tutorial with Texstudio
 
Introduction to latex by Rouhollah Nabati
Introduction to latex by Rouhollah NabatiIntroduction to latex by Rouhollah Nabati
Introduction to latex by Rouhollah Nabati
 
Latex for beginners
Latex for beginnersLatex for beginners
Latex for beginners
 
latex_intro.ppt
latex_intro.pptlatex_intro.ppt
latex_intro.ppt
 
latex_intro.ppt
latex_intro.pptlatex_intro.ppt
latex_intro.ppt
 
latex_intro.ppt
latex_intro.pptlatex_intro.ppt
latex_intro.ppt
 
latex_intro.ppt
latex_intro.pptlatex_intro.ppt
latex_intro.ppt
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
 
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
 
Introduction to LaTeX - Dumitrescu (1).ppt
Introduction to LaTeX - Dumitrescu (1).pptIntroduction to LaTeX - Dumitrescu (1).ppt
Introduction to LaTeX - Dumitrescu (1).ppt
 
LaTeX for Engineer.ppt
LaTeX for Engineer.pptLaTeX for Engineer.ppt
LaTeX for Engineer.ppt
 
Latex intro s_dutta_v2
Latex intro s_dutta_v2Latex intro s_dutta_v2
Latex intro s_dutta_v2
 
Head first latex
Head first latexHead first latex
Head first latex
 

Más de NEERAJ BAGHEL

Generating super resolution images using transformers
Generating super resolution images using transformersGenerating super resolution images using transformers
Generating super resolution images using transformersNEERAJ BAGHEL
 
Mtech Fourth progress presentation
Mtech Fourth progress presentationMtech Fourth progress presentation
Mtech Fourth progress presentationNEERAJ BAGHEL
 
M.tech Third progress Presentation
M.tech Third progress PresentationM.tech Third progress Presentation
M.tech Third progress PresentationNEERAJ BAGHEL
 
Hierarchical structure adaptive
Hierarchical structure adaptiveHierarchical structure adaptive
Hierarchical structure adaptiveNEERAJ BAGHEL
 
Mtech Second progresspresentation ON VIDEO SUMMARIZATION
Mtech Second progresspresentation ON VIDEO SUMMARIZATIONMtech Second progresspresentation ON VIDEO SUMMARIZATION
Mtech Second progresspresentation ON VIDEO SUMMARIZATIONNEERAJ BAGHEL
 
Unsupervised object-level video summarization with online motion auto-encoder
Unsupervised object-level video summarization with online motion auto-encoderUnsupervised object-level video summarization with online motion auto-encoder
Unsupervised object-level video summarization with online motion auto-encoderNEERAJ BAGHEL
 
Mtech First progress PRESENTATION ON VIDEO SUMMARIZATION
Mtech First progress PRESENTATION ON VIDEO SUMMARIZATIONMtech First progress PRESENTATION ON VIDEO SUMMARIZATION
Mtech First progress PRESENTATION ON VIDEO SUMMARIZATIONNEERAJ BAGHEL
 
Host rank:Exploiting the Hierarchical Structure for Link Analysis
Host rank:Exploiting the Hierarchical Structure for Link AnalysisHost rank:Exploiting the Hierarchical Structure for Link Analysis
Host rank:Exploiting the Hierarchical Structure for Link AnalysisNEERAJ BAGHEL
 
TVSum: Summarizing Web Videos Using Titles
TVSum: Summarizing Web Videos Using TitlesTVSum: Summarizing Web Videos Using Titles
TVSum: Summarizing Web Videos Using TitlesNEERAJ BAGHEL
 
Query focused video summarization
Query focused video summarizationQuery focused video summarization
Query focused video summarizationNEERAJ BAGHEL
 
Traffic behavior of local area network based on
Traffic behavior of local area network based onTraffic behavior of local area network based on
Traffic behavior of local area network based onNEERAJ BAGHEL
 
A Framework For Dynamic Hand Gesture Recognition Using Key Frames Extraction
A Framework For Dynamic Hand Gesture Recognition Using Key Frames ExtractionA Framework For Dynamic Hand Gesture Recognition Using Key Frames Extraction
A Framework For Dynamic Hand Gesture Recognition Using Key Frames ExtractionNEERAJ BAGHEL
 
Fingerprint recognition
Fingerprint recognitionFingerprint recognition
Fingerprint recognitionNEERAJ BAGHEL
 
SMOWSER (A VOICE BASED BROWSER)
SMOWSER (A VOICE BASED BROWSER)SMOWSER (A VOICE BASED BROWSER)
SMOWSER (A VOICE BASED BROWSER)NEERAJ BAGHEL
 

Más de NEERAJ BAGHEL (16)

Generating super resolution images using transformers
Generating super resolution images using transformersGenerating super resolution images using transformers
Generating super resolution images using transformers
 
Mtech Fourth progress presentation
Mtech Fourth progress presentationMtech Fourth progress presentation
Mtech Fourth progress presentation
 
M.tech Third progress Presentation
M.tech Third progress PresentationM.tech Third progress Presentation
M.tech Third progress Presentation
 
Hierarchical structure adaptive
Hierarchical structure adaptiveHierarchical structure adaptive
Hierarchical structure adaptive
 
Mtech Second progresspresentation ON VIDEO SUMMARIZATION
Mtech Second progresspresentation ON VIDEO SUMMARIZATIONMtech Second progresspresentation ON VIDEO SUMMARIZATION
Mtech Second progresspresentation ON VIDEO SUMMARIZATION
 
Unsupervised object-level video summarization with online motion auto-encoder
Unsupervised object-level video summarization with online motion auto-encoderUnsupervised object-level video summarization with online motion auto-encoder
Unsupervised object-level video summarization with online motion auto-encoder
 
Mtech First progress PRESENTATION ON VIDEO SUMMARIZATION
Mtech First progress PRESENTATION ON VIDEO SUMMARIZATIONMtech First progress PRESENTATION ON VIDEO SUMMARIZATION
Mtech First progress PRESENTATION ON VIDEO SUMMARIZATION
 
Host rank:Exploiting the Hierarchical Structure for Link Analysis
Host rank:Exploiting the Hierarchical Structure for Link AnalysisHost rank:Exploiting the Hierarchical Structure for Link Analysis
Host rank:Exploiting the Hierarchical Structure for Link Analysis
 
TVSum: Summarizing Web Videos Using Titles
TVSum: Summarizing Web Videos Using TitlesTVSum: Summarizing Web Videos Using Titles
TVSum: Summarizing Web Videos Using Titles
 
Query focused video summarization
Query focused video summarizationQuery focused video summarization
Query focused video summarization
 
Traffic behavior of local area network based on
Traffic behavior of local area network based onTraffic behavior of local area network based on
Traffic behavior of local area network based on
 
A Framework For Dynamic Hand Gesture Recognition Using Key Frames Extraction
A Framework For Dynamic Hand Gesture Recognition Using Key Frames ExtractionA Framework For Dynamic Hand Gesture Recognition Using Key Frames Extraction
A Framework For Dynamic Hand Gesture Recognition Using Key Frames Extraction
 
Fingerprint recognition
Fingerprint recognitionFingerprint recognition
Fingerprint recognition
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
SMOWSER (A VOICE BASED BROWSER)
SMOWSER (A VOICE BASED BROWSER)SMOWSER (A VOICE BASED BROWSER)
SMOWSER (A VOICE BASED BROWSER)
 
Itvv project ppt
Itvv project pptItvv project ppt
Itvv project ppt
 

Último

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
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 Delhikauryashika82
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 

Último (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
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
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

Latex intro

  • 1. Introduction to Latex A very quick look at typesetting documents Neeraj Baghel M.Tech CSE II YEAR 1
  • 2. OUTLINE • Introduction • Basics of L AT EX • Tabular • Images • Math • Tools • Conclusions 2
  • 3. Introduction • Latex is an extension of TeX • TeX is essentially a Markup Language (like HTML, XML and RTF) • Used for publishing reports, books, scientific documents,etc • LaTeX was created in 1983 by Leslie Lamport. Introduction 3
  • 4. Latex vs. Word Processors • High typeset quality • Easy to include math formulas • Source file format id not bounded to a particular OS or platform • Latex implementations exists for all platforms (DOS, Windows, Unices,..) • Latex is free • Good for large documents • Not very easy to learn Introduction 4
  • 5. Creating Latex Files Your Latex File Your Bibtex File Latex compile x3 Bibtex compile x2 Latex compile x3 Your Postscript File Dvips compile x1 Introduction 5
  • 6. Latex File Structure • Document Class Predefined Formats (article, report, book,..). • Packages used Added Functionality (graphics, reference style,...). • Main Body Text and Bibliography References. Basics of L AT EX 6
  • 7. The Basics • Document Class documentclass[options]{class} options = a4paper, 11pt, 12pt, 10pt, twocolumn, landscape,... class = article, report, book,... • Packages usepackage{package name} epsfig = insert PS pictures into the document fancyhdr = easy definition of footer and header Basics of L AT EX 7
  • 8. Body of Text • Start with begin{document} • End with end{document} • Typesetting Text • or newline and newpage • Quotations • Bold textbf{……………} or bf • Italics emph{…………} or textit{………} or it • Underline underline{…………} or ul • Including Multiple Files • input{filename.tex} Basics of L AT EX 8
  • 9. Format • Sections • section{…} = 1. Latex is Great • subsection{…} = 1.1 Why Latex is Great • subsubsection{…} = 1.1.1 Reason One • appendix - changes numbering scheme • chapter{…} - To be used with book and report document classes • Titles, Authors and others • title{…} author{…} • footnote{…} Basics of L AT EX 9
  • 10. SECTIONING COMMANDS • L AT EX can organize, number and index chapters and sections of a document. There are upto 7 levels of depth for defining sections depending on the document class. Basics of L AT EX 10
  • 11. Format Contd. • maketitle - Display Title and Author • tableofcontents - generates TOC • listoftables - generates LOT • listoffigures - generates LOF • Labels • label{marker} - Marker in document. • pageref{marker} - Displays page no. of marker. • ref{marker} - Displays section location of marker. • Itemise • Use either enumerate, itemize or description. • see handout for example. Basics of L AT EX 11
  • 12. Lists • Source begin{itemize} item Apple item Orange end{itemize} • Result •Apple •Orange Basics of L AT EX 12
  • 13. Lists • Enumerate instead of itemize gives a numbered list • Lists can be recursive Basics of L AT EX 13
  • 14. BULLETS & NUMBERING Unordered Lists begin{itemize} item Item 1 item Item 2 .... end{itemize} The default labeling scheme: Level 1 - bullet (•) Level 2 - (-) Level 3 - ast (*) Level 4 - cdot (.) Ordered Lists begin{enumerate} item Item 1 item Item 2 .... end{enumerate} The default numbering scheme: Level 1 - 1,2,3... Level 2 - a,b,c... Level 3 - i,ii,iii... Level 4 - A,B,C... Basics of L AT EX 14
  • 15. Environment • Something between • begin{name} • end{name} • Many command, for example bf affect the text until the end of environment • Can be recursive • Examples: • itemize, center, abstract Basics of L AT EX 15
  • 16. Group • Text between { and } • Many commands work until the end of the group • Code • put {one word bf in bold} here • Result • put one word in bold here Basics of L AT EX 16
  • 17. Alignment • Environments center, flushleft, flushright • Example • begin{flushright} • Right aligned • end{flushright} • Result Right aligned Basics of L AT EX 17
  • 18. Font size tiny scriptsize footnotesize small normalsize large Large LARGE huge Huge Basics of L AT EX 18
  • 19. Example of Latex document documentclass{article} title{Simple Example} author{Andrei Gurtov} date{March 2000} begin{document} maketitle Hello world! end{document} Basics of L AT EX 19
  • 20. Tabular • Columns • begin{tabular}{|…|…|} • end{tabular} • Rows • & - Split text into columns • - End a row • hline - Draw line under row • e.g. 123123 & 34.00 hline Two Columns l = automatically adjust size, left justify r = automatically adjust size, right justify p = set size e.g p{4.7cm} c = centre text Tabular 20
  • 21. Example of table begin{tabular}{|l|r|c|} hline Date & Price & Size hline Yesterday & 5 & big hline Today & 3 & small hline end{tabular} Date Price Size Yesterday 5 Big Today 3 Small Tabular 21
  • 22. Floating Bodies • Floating bodies can stop splitting of tables and images over pages. begin{figure}[options] begin{table}[options] • They will now appear in the LOF and LOT. Options (recommendations) h = place table here t = place at top of page b = place at bottom of page Images 22
  • 23. Example of floating figure • begin{figure}[ht] • centeringepsfig{file=uni.ps, width=5cm} • caption{University of Helsinki} • label{uni} • end{figure} Figure~ref{uni} shows... Images 23
  • 24. Images • Use epsfig package • usepackage{epsfig} • Including images in main body • epsfig{file=filename.eps, width=10cm, height=9cm, angle=90} • Creating EPS - Use xv and/or xfig. • MS Power Point, save as GIF and convert to EPS. Images 24
  • 30. Some Math begin{center} {large $$ y=frac{a^3+2c_{x}}{1+sqrt{b_{x}}} $$ vspace{0.2in} $$ Q=sum_{i=1}^{j}int_{mu}^{infty}f(x_{j})d x $$ vspace{0.2in} $$ Psi = oint_{- infty}^{infty}f_{xy} ({frac{partial Qx}{partial Qy}})^{Im_{pi}^ prime} $$ } 30 MATH
  • 31. Bibliography by hand begin{thebibliography}{} bibitem[Come95]{Come95} Comer, D. E., {it Internetworking with TCP/IP: Principles, Protocols and Architecture}, volume 1, 3rd edition. Prentice-Hall, 1995. end{thebibliography} BIBLIOGRAPHY 31
  • 32. Bibliography using Bibtex • Bibliography information is stored in a *.bib file, in Bibtex format. • Include chicago package • usepackage{chicago} • Set referencing style • bibliographystyle{chicago} • Create reference section by • bibliography{bibfile with no extension} BIBLIOGRAPHY 32
  • 33. Bibliography using Bibtex @book{Come95, author=“D. E. Comer”, title={Internetworking with TCP/IP: Principles, Protocols and Architecture}, publisher=“Prentice-Hall”, year=1995, volume=1, edition=“Third”} BIBLIOGRAPHY 33
  • 34. Bibliography contd. • Citing references in text • cite{cuc98} = (Cuce 1998) • citeN{cru98} = Crud (1998) • shortcite{tom98} = (Tom, et. al. 1998) • Creating Bibtex Files • Use Emacs with extensions. • or copy Bibtex entries from bibliography database. BIBLIOGRAPHY 34
  • 35. Tools UNIX based systems • xdvi, ghostview, fixps, emacs with latex/bibtex support. Windows 98/NT • Ghostview, Acrobat Distiller, Acrobat Reader, Scientific Workplace (not the best), the Bibtex viewer is good. Paint Shop Pro, Latex and Emacs Online • Overleaf, ShareLaTeX, LaTeX Base, Papeeria, Authorea 35
  • 36. Conclusions • Mathematical Formulae are easy. • Avoid GUI latex creators. (Lyx, Klyx, Scientific Word). • Use the bibtex search engine: • Consider converting Postscript files to PDF to conserve space. 36

Notas del editor

  1.  is a document preparation system.[2] When writing, the writer uses plain text as opposed to the formatted text found 
  2. The writer uses markup tagging conventions to define the general structure of a document  to stylise text throughout a document to add citations and cross-references