SlideShare a Scribd company logo
LaTeX
By
G.PRADEEP REDDY
LECTURER
JNTUACEA
1LATEX by G.PRADEEP REDDY
 LaTeX is a family of programs designed to produce
publication-quality typeset documents. It is particularly
strong when working with mathematical symbols.
 In 1978, a computer scientist by the name of Donald
Knuth grew frustrated with the mistakes that his
publishers made in typesetting his work.
 He decided to create a typesetting program that everyone
could easily use to typeset documents, particularly those
that include formulae, and made it freely available. The
result is TEX.
INTRODUCTION TO LATEX
2LATEX by G.PRADEEP REDDY
Why using LATEX ?
 Page Setting : automatic classes, styles
 It looks Awesome straight away! (Professional, that is)
 Easy to type mathematical equations and other usually tricky
 scientific items such as chemical formula.
 Handles perfectly tables, figures, bibliography, table of
contents, etc. . .
 Adaptable to countless languages and texts (accents,
alphabets).
 Once tamed, a real time saver (macros)
 Customizable
3LATEX by G.PRADEEP REDDY
Installation of Latex
In Windows: You need Compiler and Editor
 Preferred Compiler : Miktex
 Preferred Editor : Texmaker
 Advanced packages: can be installed from the
option menu in MiKTeX
In Linux: You need Compiler and Editor
 Preferred Compiler : TeXLive-bin
 Preferred Editor : Texmaker
 Advanced packages: most of them are
automatically installed with MacTeX
4LATEX by G.PRADEEP REDDY
Mac OS X:
• Preferred compiler : MacTeX
• Preferred LATEX editor : Texmaker
• Advanced packages: most of them are
automatically installed with MacTeX.
Compiled Language:
 source file: .tex
 output file: .pdf (or .dvi and .ps)
5LATEX by G.PRADEEP REDDY
In Windows
Double Click Miktex Compiler setup and run
6LATEX by G.PRADEEP REDDY
In Windows
Double Click Texmaker Editor setup and run
7LATEX by G.PRADEEP REDDY
In Windows Texmaker View
8LATEX by G.PRADEEP REDDY
Installation in LINUX (Ubuntu)
Type Texmaker, in ubuntu software center it searches for plug-in in web
9LATEX by G.PRADEEP REDDY
Search by category
10LATEX by G.PRADEEP REDDY
Click install to install Texmaker
11LATEX by G.PRADEEP REDDY
Process to Create a Document Using
LaTeX
12LATEX by G.PRADEEP REDDY
Basic Structure of LaTeX Document
Every LaTeX document must contain the
following three components. Everything else is
optional (even text).
• 1. documentclass{article}
• 2. begin{document}
• 3. end{document}
13LATEX by G.PRADEEP REDDY
Classes
Article
Report
Letter
Book
Slide
14LATEX by G.PRADEEP REDDY
Basic Commands
• Line break:
• !  or newline does a carriage return.
• !   leaves a blank line without starting a new paragraph
• ! Leaving a blank line between 2 lines of text begins a new paragraph
(i.e. with indentation)
• Page break : newpage
• Font size: It’s also very easy to change the font size: {tiny some text} or
begin{tiny} some textend{tiny}
• Notice that there is a special menu in Texmaker that helps you find these font
size commands: tiny
• Font Style: textbf{some text}
• There is a special menu in Texmaker that helps you find these font
• style commands: ‘LaTeX ! Font Styles’
15LATEX by G.PRADEEP REDDY
HOW TO WRITE A DOCUMENT
16LATEX by G.PRADEEP REDDY
17LATEX by G.PRADEEP REDDY
Getting Started
• documentclass{article}
• begin{document}
• Hello World!
• end{document}
Let’s try to open it in Texmaker: save file as
example1.tex and to compile it: use the Quick
Build button or the other buttons
18LATEX by G.PRADEEP REDDY
Compiling Document
19LATEX by G.PRADEEP REDDY
20LATEX by G.PRADEEP REDDY
21LATEX by G.PRADEEP REDDY
22LATEX by G.PRADEEP REDDY
23LATEX by G.PRADEEP REDDY
How to compile from command
prompt
Pdflatex example1.tex
24LATEX by G.PRADEEP REDDY
How to open pdf from command
prompt
• Pdfopen --file filename.pdf
25LATEX by G.PRADEEP REDDY
Example of Latex document
documentclass{article}
title{Simple Example}
author{Name of author}
date{March 2012}
begin{document}
maketitle
Hello world!
end{document}
26LATEX by G.PRADEEP REDDY
The Basics
• Document Class
documentclass[options]{class}
options = a4paper, 11pt, 12pt, 10pt, twocolumn,
landscape,...
• Packages
usepackage{package name}
epsfig = insert PS pictures into the document
fancyhdr = easy definition of footer and header
27LATEX by G.PRADEEP REDDY
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}
28LATEX by G.PRADEEP REDDY
Abstracts
• To create an abstract, place your text in an abstract
environment, i.e., between:
• begin{abstract} and end{abstract} commands.
• The abstract should come immediately after your
maketitle command, but before any tableofcontents
command.
29LATEX by G.PRADEEP REDDY
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{…}
30LATEX by G.PRADEEP REDDY
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.
• Itemize
– Use either enumerate, itemize or description.
– see handout for example.
31LATEX by G.PRADEEP REDDY
Lists
• Source
– begin{itemize}
– item Apple
– item Orange
– end{itemize}
• Result
32LATEX by G.PRADEEP REDDY
Lists (Contd..)
• Enumerate instead of itemize gives a numbered list
• Lists can be recursive
• documentclass[10pt]{article}
• begin{document}
• begin{enumerate}
• item nested enumerated item
• item another enumerated item
• begin{enumerate}
• item nested enumerated item
• end{enumerate}
• item first nested item
• end{enumerate}
• end{document}
33LATEX by G.PRADEEP REDDY
Environment
• Something between
– begin{name}
– end{name}
• Many command, for example bf affect the text until the end
of environment
• Environments can be recursive
• Examples:
– itemize, center, abstract
34LATEX by G.PRADEEP REDDY
Group
• Group is some 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
35LATEX by G.PRADEEP REDDY
Alignment
• Environments center, flushleft, flushright
• Example
– begin{flushright }
– Right aligned
– end{flushright }
• Result
Right aligned
36LATEX by G.PRADEEP REDDY
Font size
tiny scriptsize footnotesize
small normalsize
large Large
LARGE huge
Huge
37LATEX by G.PRADEEP REDDY
TABLE OF CONTENTS
• documentclass[10pt]{article}
• begin{document}
• section{A}
• subsection{B}
• subsubsection{C}
• tableofcontents
• end{document}
38LATEX by G.PRADEEP REDDY
BOOK
• documentclass[10pt]{book}
• begin{document}
• chapter{Software Engineering}
• Contents
• section{Testing}
• Functional Testing
• subsection{Regression Testing}
• Powerful Testing
• subsubsection{Advantages and Disadvantages}
• Reduces Bugs but costlier
• end{document}
39LATEX by G.PRADEEP REDDY
Tables
• 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
40LATEX by G.PRADEEP REDDY
Example of Table
• documentclass[10pt]{article}
• begin{document}
• begin{tabular}{|l|r|c|} hline
• Date & Price & Size  hline
• Yesterday & 5 & big  hline
• Today & 3 & small  hline
• end{tabular}
• end{document}
Date Price Size
Yesterday 5 Big
Today 3 Small
41LATEX by G.PRADEEP REDDY
Example of Table (Cont..)
• documentclass[10pt]{article}
• begin{document}
• begin{table}
• begin{tabular}{| l | r | r | l |}
• hline town&temperature&radiometry
• hline York&32&5 cm
• hline York&22&0 mm
• hline London&23&10 cm
• hline Aberdeen&20&5 mm
• hline
• hline
• end{tabular}
• end{table}
• end{document}
42LATEX by G.PRADEEP REDDY
Floating Objects
• Floating objects can stop splitting of tables and
images over pages.
begin{figure}[options]
end{figure}
begin{table}[options]
end{table}
• They will now appear in the
– List of Figures (LOF) and
– List of Tables (LOT).
Options (recommendations)
h = place table here
t = place at top of page
b = place at bottom of page
43LATEX by G.PRADEEP REDDY
Example of floating figure
• documentclass[10pt]{article}
• usepackage{epsfig}
• begin{document}
• begin{figure}[ht]
• centeringepsfig{file = Bluehills.jpg, width=5cm}
• caption{University of Helsinki}
• label{uni}
• end{figure}
• end{document}
44LATEX by G.PRADEEP REDDY
Graphics
• documentclass[10pt]{article}
• usepackage{graphicx}
• begin{document}
• begin{figure}
• begin{center}
• includegraphics[height=2in, width=3in] {nature.jpg}
• caption{THIS IS NATURE}
• end{center}
• end{figure}
• end{document}
45LATEX by G.PRADEEP REDDY
Mathematical Typesetting
 Single line Equations :
• $sqrt{frac{a}{b}}$
 Multiple line Equations :
• $$
• frac{x^n-1}{x-1} = sum_{k=0}^{n-1}x^k
• $$
46LATEX by G.PRADEEP REDDY
Mathematical Typesetting (Cont..)
• $$
• lim_{xrightarrow 0} frac{sin x}{x} = 1
• $$
• produces
47LATEX by G.PRADEEP REDDY
Braces Above and Below
• documentclass[10pt]{article}
• begin{document}
• $$
• (frac{a}{b})
• left(frac{a}{b}right)
• $$
• $$
• left(
• begin{array}{c}
• m+nnewline
• m
• end{array}
• right)
• =frac{(m+n)!}{m!n!}
• =frac
• {overbrace{(m+n)(m+n-1)cdots(n+1)}^{mbox{$m$factors}}}
• {underbrace{m(m-1)cdots}_{mbox{$m$factors}}}
• $$
• $overline{x+overline{y}}=overline{x}+y$
• end{document}
48LATEX by G.PRADEEP REDDY
Output
49LATEX by G.PRADEEP REDDY
Dots
• The continuation dots ... are known as an
ellipsis. LaTeX to have four commands to
typeset them with the right spacing. They are:
• 1. cdots for center height dots.
• 2. ddots for diagonal dots, which occur in
matrices.
• 3. ldots for lower height dots.
• 4. vdots for vertical dots.
50LATEX by G.PRADEEP REDDY
• documentclass[10pt]{article}
• begin{document}
• $$
• left(
• begin{array}{ccc}
• a_{11}&cdots&a_{1n}
• vdots&ddots&vdots
• a_{m1}&cdots&a_{mn}
• end{array}
• right)
• $$
• end{document}
51LATEX by G.PRADEEP REDDY
Chemical Equations
• documentclass[10pt]{article}
• begin{document}
• $6 CO _ 2+6 H _ 2 Orightarrow{}C _ 6 H _{12}O _ 6+C
O _ 2~~~delta G^circ=+2870KJ/MOL$
• end{document}
52LATEX by G.PRADEEP REDDY
Slides
• In seminar slides are constructed using
• begin{slide}
• slide contents here
• end{slide}
• Since prosper uses seminar, slides are built the same
way. However, now we include a title.
• begin{slide}{title}
• slide contents here
• end{slide}
• If the title is left out the letter s will become the title.
53LATEX by G.PRADEEP REDDY
Bibliography
• documentclass[10pt]{article}
• begin{document}
• begin{thebibliography}{}
• bibitem[1]{Come95} Prof.A.Ananda Rao,
• D. E., {it Software engineering:
• Principles, Design and Architecture},
• volume 1, 3rd edition. Prentice-Hall,
• 1995.
• end{thebibliography}
• end{document}
54LATEX by G.PRADEEP REDDY
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}
55LATEX by G.PRADEEP REDDY
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”}
56LATEX by G.PRADEEP REDDY
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.
57LATEX by G.PRADEEP REDDY
Conclusions
• Latex is optimal for master and phd thesis?
• Mathematical formulae are easy.
• Use bibtex search engines
• Consider converting Postscript files to PDF
(more widespread in Windows world) and to
conserve space.
58LATEX by G.PRADEEP REDDY

More Related Content

Similar to Latex g.pradeep reddy

Latex Tuitorial
Latex TuitorialLatex Tuitorial
Latex Tuitorial
ankitsinghaniya
 
LaTex tutorial with Texstudio
LaTex tutorial with TexstudioLaTex tutorial with Texstudio
LaTex tutorial with Texstudio
Hossein Babashah
 
LaTeX Survival Guide
LaTeX Survival Guide LaTeX Survival Guide
LaTeX Survival Guide
Dylan Seychell
 
Write effectlively in late x
Write effectlively in late xWrite effectlively in late x
Write effectlively in late x
C-CORE
 
Latex for beginners
Latex for beginnersLatex for beginners
Latex for beginners
Kaushik Naik
 
La tex basics
La tex basicsLa tex basics
La tex basics
awverret
 
latex-workshop Dr: Mohamed A. Alrshah
latex-workshop Dr: Mohamed A. Alrshahlatex-workshop Dr: Mohamed A. Alrshah
latex-workshop Dr: Mohamed A. Alrshah
Abdulazim N.Elaati
 
Latex_Tutorial.pdf
Latex_Tutorial.pdfLatex_Tutorial.pdf
Latex_Tutorial.pdf
ContactAt1
 
Keeping Up! with LaTeX
Keeping Up! with LaTeXKeeping Up! with LaTeX
Keeping Up! with LaTeX
Universidad de los Andes
 
LATEX.ppt
LATEX.pptLATEX.ppt
LATEX.ppt
Rajesh Patel
 
Latex workshop: Essentials and Practices
Latex workshop: Essentials and PracticesLatex workshop: Essentials and Practices
Latex workshop: Essentials and Practices
Mohamed Alrshah
 
Latex workshop
Latex workshopLatex workshop
Latex workshop
Aisha Abdullahi
 
Latex Introduction for Beginners
Latex Introduction for BeginnersLatex Introduction for Beginners
Latex Introduction for Beginners
ssuser9e8fa4
 
Head first latex
Head first latexHead first latex
Head first latex
Chung-Hsiang Ofa Hsueh
 
Introduction to LaTeX
Introduction to LaTeXIntroduction to LaTeX
Introduction to LaTeX
Ashesh Timilsina
 
Latex workshop installing Latex editor in windows
Latex workshop installing Latex editor in windowsLatex workshop installing Latex editor in windows
Latex workshop installing Latex editor in windowsZahra Marzook
 
Latex intro
Latex introLatex intro
Latex intro
NEERAJ BAGHEL
 
Electronic Grading of Paper Assessments
Electronic Grading of Paper AssessmentsElectronic Grading of Paper Assessments
Electronic Grading of Paper Assessments
Matthew Leingang
 
Latex intro s_dutta_v2
Latex intro s_dutta_v2Latex intro s_dutta_v2
Latex intro s_dutta_v2SoumyoDutta
 

Similar to Latex g.pradeep reddy (20)

Latex Tuitorial
Latex TuitorialLatex Tuitorial
Latex Tuitorial
 
LaTex tutorial with Texstudio
LaTex tutorial with TexstudioLaTex tutorial with Texstudio
LaTex tutorial with Texstudio
 
LaTeX Survival Guide
LaTeX Survival Guide LaTeX Survival Guide
LaTeX Survival Guide
 
Write effectlively in late x
Write effectlively in late xWrite effectlively in late x
Write effectlively in late x
 
Latex for beginners
Latex for beginnersLatex for beginners
Latex for beginners
 
La tex basics
La tex basicsLa tex basics
La tex basics
 
latex-workshop Dr: Mohamed A. Alrshah
latex-workshop Dr: Mohamed A. Alrshahlatex-workshop Dr: Mohamed A. Alrshah
latex-workshop Dr: Mohamed A. Alrshah
 
Latex_Tutorial.pdf
Latex_Tutorial.pdfLatex_Tutorial.pdf
Latex_Tutorial.pdf
 
Keeping Up! with LaTeX
Keeping Up! with LaTeXKeeping Up! with LaTeX
Keeping Up! with LaTeX
 
LATEX.ppt
LATEX.pptLATEX.ppt
LATEX.ppt
 
Latex workshop: Essentials and Practices
Latex workshop: Essentials and PracticesLatex workshop: Essentials and Practices
Latex workshop: Essentials and Practices
 
Latex workshop
Latex workshopLatex workshop
Latex workshop
 
Latex Introduction for Beginners
Latex Introduction for BeginnersLatex Introduction for Beginners
Latex Introduction for Beginners
 
Head first latex
Head first latexHead first latex
Head first latex
 
Introduction to LaTeX
Introduction to LaTeXIntroduction to LaTeX
Introduction to LaTeX
 
Learn Latex
Learn LatexLearn Latex
Learn Latex
 
Latex workshop installing Latex editor in windows
Latex workshop installing Latex editor in windowsLatex workshop installing Latex editor in windows
Latex workshop installing Latex editor in windows
 
Latex intro
Latex introLatex intro
Latex intro
 
Electronic Grading of Paper Assessments
Electronic Grading of Paper AssessmentsElectronic Grading of Paper Assessments
Electronic Grading of Paper Assessments
 
Latex intro s_dutta_v2
Latex intro s_dutta_v2Latex intro s_dutta_v2
Latex intro s_dutta_v2
 

Recently uploaded

S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
AG2 Design
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Ashish Kohli
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
NelTorrente
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 

Recently uploaded (20)

S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 

Latex g.pradeep reddy

  • 2.  LaTeX is a family of programs designed to produce publication-quality typeset documents. It is particularly strong when working with mathematical symbols.  In 1978, a computer scientist by the name of Donald Knuth grew frustrated with the mistakes that his publishers made in typesetting his work.  He decided to create a typesetting program that everyone could easily use to typeset documents, particularly those that include formulae, and made it freely available. The result is TEX. INTRODUCTION TO LATEX 2LATEX by G.PRADEEP REDDY
  • 3. Why using LATEX ?  Page Setting : automatic classes, styles  It looks Awesome straight away! (Professional, that is)  Easy to type mathematical equations and other usually tricky  scientific items such as chemical formula.  Handles perfectly tables, figures, bibliography, table of contents, etc. . .  Adaptable to countless languages and texts (accents, alphabets).  Once tamed, a real time saver (macros)  Customizable 3LATEX by G.PRADEEP REDDY
  • 4. Installation of Latex In Windows: You need Compiler and Editor  Preferred Compiler : Miktex  Preferred Editor : Texmaker  Advanced packages: can be installed from the option menu in MiKTeX In Linux: You need Compiler and Editor  Preferred Compiler : TeXLive-bin  Preferred Editor : Texmaker  Advanced packages: most of them are automatically installed with MacTeX 4LATEX by G.PRADEEP REDDY
  • 5. Mac OS X: • Preferred compiler : MacTeX • Preferred LATEX editor : Texmaker • Advanced packages: most of them are automatically installed with MacTeX. Compiled Language:  source file: .tex  output file: .pdf (or .dvi and .ps) 5LATEX by G.PRADEEP REDDY
  • 6. In Windows Double Click Miktex Compiler setup and run 6LATEX by G.PRADEEP REDDY
  • 7. In Windows Double Click Texmaker Editor setup and run 7LATEX by G.PRADEEP REDDY
  • 8. In Windows Texmaker View 8LATEX by G.PRADEEP REDDY
  • 9. Installation in LINUX (Ubuntu) Type Texmaker, in ubuntu software center it searches for plug-in in web 9LATEX by G.PRADEEP REDDY
  • 10. Search by category 10LATEX by G.PRADEEP REDDY
  • 11. Click install to install Texmaker 11LATEX by G.PRADEEP REDDY
  • 12. Process to Create a Document Using LaTeX 12LATEX by G.PRADEEP REDDY
  • 13. Basic Structure of LaTeX Document Every LaTeX document must contain the following three components. Everything else is optional (even text). • 1. documentclass{article} • 2. begin{document} • 3. end{document} 13LATEX by G.PRADEEP REDDY
  • 15. Basic Commands • Line break: • ! or newline does a carriage return. • ! leaves a blank line without starting a new paragraph • ! Leaving a blank line between 2 lines of text begins a new paragraph (i.e. with indentation) • Page break : newpage • Font size: It’s also very easy to change the font size: {tiny some text} or begin{tiny} some textend{tiny} • Notice that there is a special menu in Texmaker that helps you find these font size commands: tiny • Font Style: textbf{some text} • There is a special menu in Texmaker that helps you find these font • style commands: ‘LaTeX ! Font Styles’ 15LATEX by G.PRADEEP REDDY
  • 16. HOW TO WRITE A DOCUMENT 16LATEX by G.PRADEEP REDDY
  • 18. Getting Started • documentclass{article} • begin{document} • Hello World! • end{document} Let’s try to open it in Texmaker: save file as example1.tex and to compile it: use the Quick Build button or the other buttons 18LATEX by G.PRADEEP REDDY
  • 19. Compiling Document 19LATEX by G.PRADEEP REDDY
  • 24. How to compile from command prompt Pdflatex example1.tex 24LATEX by G.PRADEEP REDDY
  • 25. How to open pdf from command prompt • Pdfopen --file filename.pdf 25LATEX by G.PRADEEP REDDY
  • 26. Example of Latex document documentclass{article} title{Simple Example} author{Name of author} date{March 2012} begin{document} maketitle Hello world! end{document} 26LATEX by G.PRADEEP REDDY
  • 27. The Basics • Document Class documentclass[options]{class} options = a4paper, 11pt, 12pt, 10pt, twocolumn, landscape,... • Packages usepackage{package name} epsfig = insert PS pictures into the document fancyhdr = easy definition of footer and header 27LATEX by G.PRADEEP REDDY
  • 28. 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} 28LATEX by G.PRADEEP REDDY
  • 29. Abstracts • To create an abstract, place your text in an abstract environment, i.e., between: • begin{abstract} and end{abstract} commands. • The abstract should come immediately after your maketitle command, but before any tableofcontents command. 29LATEX by G.PRADEEP REDDY
  • 30. 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{…} 30LATEX by G.PRADEEP REDDY
  • 31. 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. • Itemize – Use either enumerate, itemize or description. – see handout for example. 31LATEX by G.PRADEEP REDDY
  • 32. Lists • Source – begin{itemize} – item Apple – item Orange – end{itemize} • Result 32LATEX by G.PRADEEP REDDY
  • 33. Lists (Contd..) • Enumerate instead of itemize gives a numbered list • Lists can be recursive • documentclass[10pt]{article} • begin{document} • begin{enumerate} • item nested enumerated item • item another enumerated item • begin{enumerate} • item nested enumerated item • end{enumerate} • item first nested item • end{enumerate} • end{document} 33LATEX by G.PRADEEP REDDY
  • 34. Environment • Something between – begin{name} – end{name} • Many command, for example bf affect the text until the end of environment • Environments can be recursive • Examples: – itemize, center, abstract 34LATEX by G.PRADEEP REDDY
  • 35. Group • Group is some 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 35LATEX by G.PRADEEP REDDY
  • 36. Alignment • Environments center, flushleft, flushright • Example – begin{flushright } – Right aligned – end{flushright } • Result Right aligned 36LATEX by G.PRADEEP REDDY
  • 37. Font size tiny scriptsize footnotesize small normalsize large Large LARGE huge Huge 37LATEX by G.PRADEEP REDDY
  • 38. TABLE OF CONTENTS • documentclass[10pt]{article} • begin{document} • section{A} • subsection{B} • subsubsection{C} • tableofcontents • end{document} 38LATEX by G.PRADEEP REDDY
  • 39. BOOK • documentclass[10pt]{book} • begin{document} • chapter{Software Engineering} • Contents • section{Testing} • Functional Testing • subsection{Regression Testing} • Powerful Testing • subsubsection{Advantages and Disadvantages} • Reduces Bugs but costlier • end{document} 39LATEX by G.PRADEEP REDDY
  • 40. Tables • 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 40LATEX by G.PRADEEP REDDY
  • 41. Example of Table • documentclass[10pt]{article} • begin{document} • begin{tabular}{|l|r|c|} hline • Date & Price & Size hline • Yesterday & 5 & big hline • Today & 3 & small hline • end{tabular} • end{document} Date Price Size Yesterday 5 Big Today 3 Small 41LATEX by G.PRADEEP REDDY
  • 42. Example of Table (Cont..) • documentclass[10pt]{article} • begin{document} • begin{table} • begin{tabular}{| l | r | r | l |} • hline town&temperature&radiometry • hline York&32&5 cm • hline York&22&0 mm • hline London&23&10 cm • hline Aberdeen&20&5 mm • hline • hline • end{tabular} • end{table} • end{document} 42LATEX by G.PRADEEP REDDY
  • 43. Floating Objects • Floating objects can stop splitting of tables and images over pages. begin{figure}[options] end{figure} begin{table}[options] end{table} • They will now appear in the – List of Figures (LOF) and – List of Tables (LOT). Options (recommendations) h = place table here t = place at top of page b = place at bottom of page 43LATEX by G.PRADEEP REDDY
  • 44. Example of floating figure • documentclass[10pt]{article} • usepackage{epsfig} • begin{document} • begin{figure}[ht] • centeringepsfig{file = Bluehills.jpg, width=5cm} • caption{University of Helsinki} • label{uni} • end{figure} • end{document} 44LATEX by G.PRADEEP REDDY
  • 45. Graphics • documentclass[10pt]{article} • usepackage{graphicx} • begin{document} • begin{figure} • begin{center} • includegraphics[height=2in, width=3in] {nature.jpg} • caption{THIS IS NATURE} • end{center} • end{figure} • end{document} 45LATEX by G.PRADEEP REDDY
  • 46. Mathematical Typesetting  Single line Equations : • $sqrt{frac{a}{b}}$  Multiple line Equations : • $$ • frac{x^n-1}{x-1} = sum_{k=0}^{n-1}x^k • $$ 46LATEX by G.PRADEEP REDDY
  • 47. Mathematical Typesetting (Cont..) • $$ • lim_{xrightarrow 0} frac{sin x}{x} = 1 • $$ • produces 47LATEX by G.PRADEEP REDDY
  • 48. Braces Above and Below • documentclass[10pt]{article} • begin{document} • $$ • (frac{a}{b}) • left(frac{a}{b}right) • $$ • $$ • left( • begin{array}{c} • m+nnewline • m • end{array} • right) • =frac{(m+n)!}{m!n!} • =frac • {overbrace{(m+n)(m+n-1)cdots(n+1)}^{mbox{$m$factors}}} • {underbrace{m(m-1)cdots}_{mbox{$m$factors}}} • $$ • $overline{x+overline{y}}=overline{x}+y$ • end{document} 48LATEX by G.PRADEEP REDDY
  • 50. Dots • The continuation dots ... are known as an ellipsis. LaTeX to have four commands to typeset them with the right spacing. They are: • 1. cdots for center height dots. • 2. ddots for diagonal dots, which occur in matrices. • 3. ldots for lower height dots. • 4. vdots for vertical dots. 50LATEX by G.PRADEEP REDDY
  • 51. • documentclass[10pt]{article} • begin{document} • $$ • left( • begin{array}{ccc} • a_{11}&cdots&a_{1n} • vdots&ddots&vdots • a_{m1}&cdots&a_{mn} • end{array} • right) • $$ • end{document} 51LATEX by G.PRADEEP REDDY
  • 52. Chemical Equations • documentclass[10pt]{article} • begin{document} • $6 CO _ 2+6 H _ 2 Orightarrow{}C _ 6 H _{12}O _ 6+C O _ 2~~~delta G^circ=+2870KJ/MOL$ • end{document} 52LATEX by G.PRADEEP REDDY
  • 53. Slides • In seminar slides are constructed using • begin{slide} • slide contents here • end{slide} • Since prosper uses seminar, slides are built the same way. However, now we include a title. • begin{slide}{title} • slide contents here • end{slide} • If the title is left out the letter s will become the title. 53LATEX by G.PRADEEP REDDY
  • 54. Bibliography • documentclass[10pt]{article} • begin{document} • begin{thebibliography}{} • bibitem[1]{Come95} Prof.A.Ananda Rao, • D. E., {it Software engineering: • Principles, Design and Architecture}, • volume 1, 3rd edition. Prentice-Hall, • 1995. • end{thebibliography} • end{document} 54LATEX by G.PRADEEP REDDY
  • 55. 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} 55LATEX by G.PRADEEP REDDY
  • 56. 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”} 56LATEX by G.PRADEEP REDDY
  • 57. 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. 57LATEX by G.PRADEEP REDDY
  • 58. Conclusions • Latex is optimal for master and phd thesis? • Mathematical formulae are easy. • Use bibtex search engines • Consider converting Postscript files to PDF (more widespread in Windows world) and to conserve space. 58LATEX by G.PRADEEP REDDY

Editor's Notes

  1. 43
  2. 55
  3. 57
  4. 58