SlideShare una empresa de Scribd logo
1 de 43
Descargar para leer sin conexión
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Writing scientific reports / theses
Suddhasheel Ghosh
Department of Civil Engineering,
Jawaharlal Nehru Engineering College
Aurangabad, Maharashtra
431003
LATEX for Technical and Scientific Documents
January 12 - 16, 2015
Day III
shudh@JNEC LATEX@ JNEC 1 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Outline
1 What did we learn earlier?
2 Thesis fundamentals
3 Page Layout
4 References to objects
shudh@JNEC LATEX@ JNEC 2 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
In this workshop:
Day 1: Introduction to LATEX
Day 2: Typesetting Mathematics
Day 3: Writing your thesis / technical report
Day 4: Make your presentations
Day 5: Basics of science communication
shudh@JNEC LATEX@ JNEC 3 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Outline
1 What did we learn earlier?
2 Thesis fundamentals
3 Page Layout
4 References to objects
shudh@JNEC LATEX@ JNEC 4 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Typesetting numbered figures
Figure 1: The plastic duck found in muggle houses
begin{figure}
centering
includegraphics[scale=0.3]{duck.jpg}
caption{The plastic duck found in muggle houses}
end{figure}
shudh@JNEC LATEX@ JNEC 5 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Typesetting numbered tables
Judge 1 Judge 2 Judge 3
Karishma 8 9 10
Kareena 9 10 8
Katrina 10 8 9
Table 1: Score of participants
begin{table}
centering
begin{tabular}{lccc}
hline
{} &Judge 1 &Judge 2
&Judge 3 
hline
Karishma &8 &9 &10 
Kareena &9 &10 &8 
Katrina &10 &8 &9 
hline
end{tabular}
caption{Score of
participants}
end{table}
shudh@JNEC LATEX@ JNEC 6 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Typesetting numbered equations
Mathematically, the integral form of the continuity equation is:
dq
dt
+
S
j·dS = Σ (1)
which in vector notation can also be written as
dq
dt
+
S
j ·dS = Σ (2)
Mathematically, the integral form of the continuity
equation is:
begin{equation}
frac{d q}{d t} + oiint_Smathbf{j} cdot
dmathbf{S} = Sigma
end{equation}
which in vector notation can also be written as
begin{equation}
frac{d q}{d t} + oiint_Svec{j} cdot dvec{S} = Sigma
end{equation}
shudh@JNEC LATEX@ JNEC 7 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Outline
1 What did we learn earlier?
2 Thesis fundamentals
3 Page Layout
4 References to objects
shudh@JNEC LATEX@ JNEC 8 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Start working on the report
Preamble settings
For a thesis or a technical report, one can use the basic report
class. The basic options for the report class are a4paper, and 12pt
documentclass[a4paper,12pt]{report}
usepackage{amsmath,amssymb}
title{My first thesis report}
author{Suddhasheel Ghosh}
date{Thesis report}
begin{document}
maketitle
end{document}
shudh@JNEC LATEX@ JNEC 9 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Tables of contents
... and figures and tables
The table of contents, figures and tables are generated by the
following commands, automatically with the page numbers!
%for giving the table of contents
tableofcontents
%for giving the table of figures
listoffigures
%for giving the table of tables
listoftables
shudh@JNEC LATEX@ JNEC 10 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
The fonts in the report
Fonts by default
The default set is a serif font
The sans serif set is also available
Along with the true-type variant
begin{itemize}
item The default set is a serif font
item {sf The sans serif set is also available}
item {tt Along with the true-type variant}
end{itemize}
shudh@JNEC LATEX@ JNEC 11 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
The fonts in the report
What if I don’t wish to use the default font?
Many font sets available
Recommended fonts for thesis / reports
Times fonts. Setting commands in the preamble:
usepackage{txfonts}
usepackage[T1]{fontenc}
Palatino fonts. Setting commands in the preamble:
usepackage{pxfonts}
usepackage[T1]{fontenc}
Fourier version of the fonts. Setting commands in the
preamble:
usepackage{fourier}
usepackage[T1]{fontenc}
This presentation is using the Fourier font set.
shudh@JNEC LATEX@ JNEC 12 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Outline
1 What did we learn earlier?
2 Thesis fundamentals
3 Page Layout
4 References to objects
shudh@JNEC LATEX@ JNEC 13 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Page sizes and Margin control
Most thesis and reports have recommendations on the margin
requirements and paper size.
For A4 paper-size and margins with the following specifications:
Left Margin: 2 inches
Right Margin: 1 inch
Top Margin: 1.5 inch
Bottom Margin: 1.5inch
Type in the preamble:
usepackage[a4paper,left=2in,right=1in,top=1.5in,
bottom=1.5in]{geometry}
shudh@JNEC LATEX@ JNEC 14 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Line spacing
Depending on the requirement of the report seeking agency, e.g.
university, college, the line spacing can be set by using any one of
the following commands, in the preamble
%in the preamble for single spacing
usepackage[singlespacing]{setspace}
%in the preamble for double spacing
usepackage[doublespacing]{setspace}
%in the preamble for 1.5 line spacing
usepackage[onehalfspacing]{setspace}
In case, variable line space is desired, one can use linespread
command instead of the setspace package.
linespread{1.5}
shudh@JNEC LATEX@ JNEC 15 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Headers and footers
In the preamble, announce the use of the package:
usepackage{fancyhdr}
The settings of the package, fancyhdr is given as follows:
%on the header there are three parts, left side,
%center and right
%left side
lhead[<even output>]{<odd output>}
%center
chead[<even output>]{<odd output>}
%right side
rhead[<even output>]{<odd output>}
%on the footer there are three parts, left side,
%center and right
%left side
lfoot[<even output>]{<odd output>}
%center
cfoot[<even output>]{<odd output>}
%right side
rfoot[<even output>]{<odd output>}
In the body, whenever one wishes to include the "fancy" page style use
pagestyle{fancy}
shudh@JNEC LATEX@ JNEC 16 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Page numbering blues
From the table of contents to the abstract, "YOUR PAGE
NUMBERING HAS TO BE ROMAN"
pagenumbering{roman}
From Chapter 1, "YOUR PAGE NUMBERING HAS TO BE
INDO-ARABIC"
pagenumbering{arabic}
If the articleclass is book
Before contents requiring ROMAN style type
frontmatter
Before contents requiring INDO-ARABIC numbering style type
mainmatter
Do not want any page number?
pagenumbering{gobble}
shudh@JNEC LATEX@ JNEC 17 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Page numbering blues
From the table of contents to the abstract, "YOUR PAGE
NUMBERING HAS TO BE ROMAN"
pagenumbering{roman}
From Chapter 1, "YOUR PAGE NUMBERING HAS TO BE
INDO-ARABIC"
pagenumbering{arabic}
If the articleclass is book
Before contents requiring ROMAN style type
frontmatter
Before contents requiring INDO-ARABIC numbering style type
mainmatter
Do not want any page number?
pagenumbering{gobble}
shudh@JNEC LATEX@ JNEC 17 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Page numbering blues
From the table of contents to the abstract, "YOUR PAGE
NUMBERING HAS TO BE ROMAN"
pagenumbering{roman}
From Chapter 1, "YOUR PAGE NUMBERING HAS TO BE
INDO-ARABIC"
pagenumbering{arabic}
If the articleclass is book
Before contents requiring ROMAN style type
frontmatter
Before contents requiring INDO-ARABIC numbering style type
mainmatter
Do not want any page number?
pagenumbering{gobble}
shudh@JNEC LATEX@ JNEC 17 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Page numbering blues
From the table of contents to the abstract, "YOUR PAGE
NUMBERING HAS TO BE ROMAN"
pagenumbering{roman}
From Chapter 1, "YOUR PAGE NUMBERING HAS TO BE
INDO-ARABIC"
pagenumbering{arabic}
If the articleclass is book
Before contents requiring ROMAN style type
frontmatter
Before contents requiring INDO-ARABIC numbering style type
mainmatter
Do not want any page number?
pagenumbering{gobble}
shudh@JNEC LATEX@ JNEC 17 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
The title page I
A thesis from JNEC
Sample code for designing a thesis / report for the JNEC
%this is the title page
pagenumbering{gobble}
begin{center}
textbf{DR. BABASAHEB AMBEDKAR MARATHWADA UNIVERSITY
AURANGABAD}
vfill
A REPORT  ON
vfill
{Large textbf{The Thesis Title}}
vfill
SUBMITTED BY 
A Student 
Roll Number XYZ 
shudh@JNEC LATEX@ JNEC 18 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
The title page II
A thesis from JNEC
M. E. (Discipline)
vfill
Under the guidance of 
Dr. Kantaprasad Kantilal 
Super Professor 
vfill
includegraphics{logo.png} %MGM logo
vfill
JAWAHARLAL NEHRU ENGINEERING COLLEGE
AURANGABAD
2014 - 15
end{center}
cleardoublepage
shudh@JNEC LATEX@ JNEC 19 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
The title page III
A thesis from JNEC
One should save the title page in a file called titlepage.tex and
use it in the body of the document as
include{titlepage}
shudh@JNEC LATEX@ JNEC 20 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
The chapters in the report
The macro for starting a chapter is chapter. For example
chapter{Introduction}
Suggestion!
It is suggested that each chapter be stored in a separate file, and in
the same directory, where the thesis file is. The chapter can be
included for compilation using the include command. Therefore
include{chapter1}
will look for chapter1.tex in the same directory, where the thesis /
report file is.
shudh@JNEC LATEX@ JNEC 21 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Chapter
Sections and subsections ... and subsubsections
For sections to be numbered and included in the table of contents,
we have the following commands
%set section title
section{This is a new section}
%set subsection title
subsection{This is a new subsection}
%set sub-sub-section title
subsubsection{This is a new sub-sub-section}
Also, in the preamble use the following command
setcounter{secnumdepth}{4}
shudh@JNEC LATEX@ JNEC 22 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Multicolumn
Multiple columns can be set by using the multicol package. In the
preamble:
usepackage{multicol}
and in the body
begin{multicols}{2}
lots of text
end{multicols}
shudh@JNEC LATEX@ JNEC 23 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Page breaks
In a thesis / dissertation, page breaks are of two types:
Single page break clearpage. Goes to the next page.
Double page break cleardoublepage. This is typically used
for two-sided documents. Forces the compiler to direct output
to the next odd-numbered page.
shudh@JNEC LATEX@ JNEC 24 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Quotes from a document I
If a certain quote has to be given from literature, it can be done as
follows:
begin{guote}
``Voil'{a}! In view, a humble vaudevillian veteran cast
vicariously as both victim and villain by the vicissitudes
of Fate. This visage, no mere veneer of vanity,
is a vestige of the vox populi, now vacant, vanished.
However, this valourous visitation of a bygone
vexation stands vivified and has vowed to vanquish
these venal and virulent vermin vanguarding vice
and vouchsafing the violently vicious and voracious
violation of volition!''
hfill -- V for Vendetta (2006)
end{quote}
shudh@JNEC LATEX@ JNEC 25 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Quotes from a document II
“Voilá! In view, a humble vaudevillian veteran cast
vicariously as both victim and villain by the vicissitudes of
Fate. This visage, no mere veneer of vanity, is a vestige of
the vox populi, now vacant, vanished. However, this
valourous visitation of a bygone vexation stands vivified
and has vowed to vanquish these venal and virulent
vermin vanguarding vice and vouchsafing the violently
vicious and voracious violation of volition!”
– V for Vendetta (2006)
shudh@JNEC LATEX@ JNEC 26 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Outline
1 What did we learn earlier?
2 Thesis fundamentals
3 Page Layout
4 References to objects
shudh@JNEC LATEX@ JNEC 27 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
The art of cross referencing
Setting the label for reference
Use the label command for setting up legends.
Use the ref command for referring to a legend.
For example
For a figure, set the label after the caption by referring to it as
label{fig:myfig}.
Refer to the legend by using ref{fig:myfig}
Suggestion!
For figures use label{fig:myfig}, for tables use
label{tbl:mytable}, for equations use label{eqn:myeqn}, for
chapters use label{chp:chapterN} and for sections use
label{sec:section_reference_name}.
shudh@JNEC LATEX@ JNEC 28 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Example of cross referencing
Referring to a figure in a document
Figure 2: A muggle artefact found in the Dark
Lord’s bathroom
The investigator looked puzzled when he
visited the house of the Dark Lord. He
found a rubber duck (Figure [2]) in the
bathroom, along with other suspicious
objects.
begin{figure}
centering
includegraphics[scale=0.2]{duck.jpg}
caption{A muggle artefact found in
the Dark Lord's bathroom}
label{fig:muggleduck}
end{figure}
The investigator looked puzzled
when he visited the house of the
Dark Lord. He found a rubber duck
(Figure [ref{fig:muggleduck}]) in
the bathroom, along with other
suspicious objects.
shudh@JNEC LATEX@ JNEC 29 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Example of cross referencing
Referring to a table
Judge 1 Judge 2
Karishma 8 9
Kareena 9 10
Katrina 10 8
Table 2: Score of participants
During the contest, the judges took the
time to evaluate the contestants on many
factors. Finally, they tabulated the scores
as in Table [2]
begin{table}
centering
begin{tabular}{lcc}
hline
{} &Judge 1 &Judge 2 
hline
Karishma &8 &9 
Kareena &9 &10 
Katrina &10 &8 
hline
end{tabular}
caption{Score of participants}
label{tab:Scores}
end{table}
During the contest, the judges took
the time to evaluate the contestants
on many factors. Finally, they
tabulated the scores as in Table
[ref{tab:Scores}]
shudh@JNEC LATEX@ JNEC 30 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Example of cross referencing
Referring to mathematical equations
Mathematically, the integral form of the continuity equation is:
dq
dt
+
S
j·dS = Σ (3)
which in vector notation can also be written as
dq
dt
+
S
j ·dS = Σ (4)
The integral form of the continuity equation is given in equation (3)
and the vector notation form is given in equation (4)
Mathematically, the integral form of the continuity
equation is:
begin{equation}
frac{d q}{d t} + oiint_Smathbf{j} cdot
dmathbf{S} = Sigmalabel{eqn:integral_form}
end{equation}
which in vector notation can also be written as
begin{equation}
frac{d q}{d t} + oiint_Svec{j} cdot dvec{S} = Sigma
end{equation}
The integral form of the continuity equation is given
in equation (ref{eqn:integral_form}) and the vector
notation form is given in equation
(ref{eqn:vector_form})
shudh@JNEC LATEX@ JNEC 31 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Bibliographic referencing
Parts
Requirement of a file containing the names and id’s of all the
referencing (a .bib file) – to be created by the LATEX user
A bibliographic style file (a .bst file) - usually provided by the
journal, or can also be created
A bibliographic reference manager (if required) -
Recommended software JabRef
shudh@JNEC LATEX@ JNEC 32 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Bibliographic referencing
A bibliographic entry
JabRef will create bibliographic entries for different types of
references: articles, books, theses, reports, conference proceedings
etc. An example:
@Article{FullerThompson1907,
Title= {The Laws of Proportioning Concrete},
Author= {Fuller, W. B. and Thompson, S. E.},
Journal= {American Society of Civil Engineers},
Year= {1907},
Pages= {223--298},
Volume= {33},
}
shudh@JNEC LATEX@ JNEC 33 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Bibliographic referencing
Enabling the citations
In the preamble:
usepackage{natbib}
For author-year citations, surrounded by parenthesis e.g.
(Fuller and Thompson, 1907) or Fuller and Thompson (1907)
usepackage[round,authoryear,sort]{natbib}
For numbered citations, as they appear, e.g. [3] we should have
usepackage[square]{natbib}
%near the end of file before end{document}
bibliographystyle{asce}
%mybstfile.bib must exist in the same directory
bibliography{mybstfile}
http://en.wikibooks.org/wiki/LaTeX/Bibliography_Management
shudh@JNEC LATEX@ JNEC 34 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Bibliographic referencing
Enabling the citations
In the preamble:
usepackage{natbib}
For author-year citations, surrounded by parenthesis e.g.
(Fuller and Thompson, 1907) or Fuller and Thompson (1907)
usepackage[round,authoryear,sort]{natbib}
For numbered citations, as they appear, e.g. [3] we should have
usepackage[square]{natbib}
%near the end of file before end{document}
bibliographystyle{asce}
%mybstfile.bib must exist in the same directory
bibliography{mybstfile}
http://en.wikibooks.org/wiki/LaTeX/Bibliography_Management
shudh@JNEC LATEX@ JNEC 34 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Bibliographic referencing
Citing a document or a list of documents
The following commands are used to cite a document or a list of
documents
Citing it in running text e.g. Fuller and Thomson (1907)
mentioned that ...
cite{FullerThompson1907}
Citing it off text e.g. Concrete is said to be a mixture of sand
and cement with many other particles (Fuller and Thompson,
1907).
citep{FullerThompson1907}
Citing multiple documents
citep{FullerThompson1907,Hiffler2002,deLarrard1988}
shudh@JNEC LATEX@ JNEC 35 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Bibliographic referencing
Citing a document or a list of documents
The following commands are used to cite a document or a list of
documents
Citing it in running text e.g. Fuller and Thomson (1907)
mentioned that ...
cite{FullerThompson1907}
Citing it off text e.g. Concrete is said to be a mixture of sand
and cement with many other particles (Fuller and Thompson,
1907).
citep{FullerThompson1907}
Citing multiple documents
citep{FullerThompson1907,Hiffler2002,deLarrard1988}
shudh@JNEC LATEX@ JNEC 35 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Bibliographic referencing
Citing a document or a list of documents
The following commands are used to cite a document or a list of
documents
Citing it in running text e.g. Fuller and Thomson (1907)
mentioned that ...
cite{FullerThompson1907}
Citing it off text e.g. Concrete is said to be a mixture of sand
and cement with many other particles (Fuller and Thompson,
1907).
citep{FullerThompson1907}
Citing multiple documents
citep{FullerThompson1907,Hiffler2002,deLarrard1988}
shudh@JNEC LATEX@ JNEC 35 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
Bibliographic referencing
Citing a document or a list of documents
The following commands are used to cite a document or a list of
documents
Citing it in running text e.g. Fuller and Thomson (1907)
mentioned that ...
cite{FullerThompson1907}
Citing it off text e.g. Concrete is said to be a mixture of sand
and cement with many other particles (Fuller and Thompson,
1907).
citep{FullerThompson1907}
Citing multiple documents
citep{FullerThompson1907,Hiffler2002,deLarrard1988}
shudh@JNEC LATEX@ JNEC 35 / 36
SU
D
D
H
ASH
EEL.CO
M
Recall Fundas Layout Referencing
In the upcoming sessions
Typesetting a presentation
Alerts and colour themes
Table of contents
Sections
Subfigures and subtables
Pseudo animation
shudh@JNEC LATEX@ JNEC 36 / 36

Más contenido relacionado

La actualidad más candente

Ch 1 intriductions
Ch 1 intriductionsCh 1 intriductions
Ch 1 intriductions
irshad17
 

La actualidad más candente (20)

Latex for beginners
Latex for beginnersLatex for beginners
Latex for beginners
 
Technical writing using LaTeX
Technical writing using LaTeXTechnical writing using LaTeX
Technical writing using LaTeX
 
Introduction to Latex
Introduction to Latex Introduction to Latex
Introduction to Latex
 
Latex cheat sheet
Latex cheat sheetLatex cheat sheet
Latex cheat sheet
 
R Programming Tutorial for Beginners - -TIB Academy
R Programming Tutorial for Beginners - -TIB AcademyR Programming Tutorial for Beginners - -TIB Academy
R Programming Tutorial for Beginners - -TIB Academy
 
5 top-down-parsers
5  top-down-parsers 5  top-down-parsers
5 top-down-parsers
 
LaTeX Cheat Sheet
LaTeX Cheat Sheet LaTeX Cheat Sheet
LaTeX Cheat Sheet
 
Join operation
Join operationJoin operation
Join operation
 
15 wordprocessing ml subject - fields and hyperlinks
15   wordprocessing ml subject - fields and hyperlinks15   wordprocessing ml subject - fields and hyperlinks
15 wordprocessing ml subject - fields and hyperlinks
 
Excel spreadsheet
Excel spreadsheetExcel spreadsheet
Excel spreadsheet
 
Unit 5 composite datatypes
Unit 5  composite datatypesUnit 5  composite datatypes
Unit 5 composite datatypes
 
Relational algebra.pptx
Relational algebra.pptxRelational algebra.pptx
Relational algebra.pptx
 
Data Structure In C#
Data Structure In C#Data Structure In C#
Data Structure In C#
 
Ch 1 intriductions
Ch 1 intriductionsCh 1 intriductions
Ch 1 intriductions
 
SQL Joins and Query Optimization
SQL Joins and Query OptimizationSQL Joins and Query Optimization
SQL Joins and Query Optimization
 
Query Optimization - Brandon Latronica
Query Optimization - Brandon LatronicaQuery Optimization - Brandon Latronica
Query Optimization - Brandon Latronica
 
Manuscript Preparation using Latex: A Cloud Based Approach(Overleaf)
Manuscript Preparation using Latex: A Cloud Based Approach(Overleaf)Manuscript Preparation using Latex: A Cloud Based Approach(Overleaf)
Manuscript Preparation using Latex: A Cloud Based Approach(Overleaf)
 
Data structures using C
Data structures using CData structures using C
Data structures using C
 
Data structures using c
Data structures using cData structures using c
Data structures using c
 
Chap10 scr
Chap10 scrChap10 scr
Chap10 scr
 

Destacado (7)

45324291 a-good-ph d-student
45324291 a-good-ph d-student45324291 a-good-ph d-student
45324291 a-good-ph d-student
 
Making presentations with LaTeX: Workshop Day 4
Making presentations with LaTeX: Workshop Day 4Making presentations with LaTeX: Workshop Day 4
Making presentations with LaTeX: Workshop Day 4
 
Typesetting Mathematics with LaTeX - Day 2
Typesetting Mathematics with LaTeX - Day 2Typesetting Mathematics with LaTeX - Day 2
Typesetting Mathematics with LaTeX - Day 2
 
The LaTeX Workshop: Typesetting Mathematics with LaTeX
The LaTeX Workshop: Typesetting Mathematics with LaTeXThe LaTeX Workshop: Typesetting Mathematics with LaTeX
The LaTeX Workshop: Typesetting Mathematics with LaTeX
 
Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...
 
How to Create a Slideshare Account
How to Create a Slideshare AccountHow to Create a Slideshare Account
How to Create a Slideshare Account
 
Design of FIR filters
Design of FIR filtersDesign of FIR filters
Design of FIR filters
 

Similar a Typesetting Theses / Reports with LaTeX : Workshop Day 3

The format for_the_project__training_report
The format for_the_project__training_reportThe format for_the_project__training_report
The format for_the_project__training_report
mohandeepain
 
Running head Project Type Unit 5 Individual Project3Ty.docx
Running head  Project Type Unit 5 Individual Project3Ty.docxRunning head  Project Type Unit 5 Individual Project3Ty.docx
Running head Project Type Unit 5 Individual Project3Ty.docx
healdkathaleen
 

Similar a Typesetting Theses / Reports with LaTeX : Workshop Day 3 (20)

Chap13 scr
Chap13 scrChap13 scr
Chap13 scr
 
Latex workshop
Latex workshopLatex workshop
Latex workshop
 
La tex basics
La tex basicsLa tex basics
La tex basics
 
29
2929
29
 
LaTeX Survival Guide
LaTeX Survival Guide LaTeX Survival Guide
LaTeX Survival Guide
 
The format for_the_project__training_report
The format for_the_project__training_reportThe format for_the_project__training_report
The format for_the_project__training_report
 
latex.pptx
latex.pptxlatex.pptx
latex.pptx
 
Latex hafida-benhidour-19-12-2016
Latex hafida-benhidour-19-12-2016Latex hafida-benhidour-19-12-2016
Latex hafida-benhidour-19-12-2016
 
Basics of LaTeX
Basics of LaTeXBasics of LaTeX
Basics of LaTeX
 
LaTeX Cheat Sheet
LaTeX Cheat SheetLaTeX Cheat Sheet
LaTeX Cheat Sheet
 
Lecture-report writingLecture-report writing.pdf
Lecture-report writingLecture-report writing.pdfLecture-report writingLecture-report writing.pdf
Lecture-report writingLecture-report writing.pdf
 
محاضرة 7
محاضرة 7محاضرة 7
محاضرة 7
 
ورشة العمل 7
ورشة العمل 7ورشة العمل 7
ورشة العمل 7
 
Guidelines for making project...........
Guidelines for making project...........Guidelines for making project...........
Guidelines for making project...........
 
Project report format.docx
Project report format.docxProject report format.docx
Project report format.docx
 
Report Writing.ppt
Report Writing.pptReport Writing.ppt
Report Writing.ppt
 
Latex Tuitorial
Latex TuitorialLatex Tuitorial
Latex Tuitorial
 
Latex_Tutorial.pdf
Latex_Tutorial.pdfLatex_Tutorial.pdf
Latex_Tutorial.pdf
 
Running head Project Type Unit 5 Individual Project3Ty.docx
Running head  Project Type Unit 5 Individual Project3Ty.docxRunning head  Project Type Unit 5 Individual Project3Ty.docx
Running head Project Type Unit 5 Individual Project3Ty.docx
 
A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...
A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...
A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...
 

Más de Suddhasheel GHOSH, PhD

Expert Lecture on GPS at UIET, CSJM, Kanpur
Expert Lecture on GPS at UIET, CSJM, KanpurExpert Lecture on GPS at UIET, CSJM, Kanpur
Expert Lecture on GPS at UIET, CSJM, Kanpur
Suddhasheel GHOSH, PhD
 

Más de Suddhasheel GHOSH, PhD (7)

FEM Introduction: Solving ODE-BVP using the Galerkin's Method
FEM Introduction: Solving ODE-BVP using the Galerkin's MethodFEM Introduction: Solving ODE-BVP using the Galerkin's Method
FEM Introduction: Solving ODE-BVP using the Galerkin's Method
 
Solve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares MethodSolve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares Method
 
Map Calculaton using GRASS
Map Calculaton using GRASSMap Calculaton using GRASS
Map Calculaton using GRASS
 
Watershed Analysis with GRASS
Watershed Analysis with GRASSWatershed Analysis with GRASS
Watershed Analysis with GRASS
 
Research Prospects with Geoinformatics
Research Prospects with GeoinformaticsResearch Prospects with Geoinformatics
Research Prospects with Geoinformatics
 
Prepare your literature review
Prepare your literature reviewPrepare your literature review
Prepare your literature review
 
Expert Lecture on GPS at UIET, CSJM, Kanpur
Expert Lecture on GPS at UIET, CSJM, KanpurExpert Lecture on GPS at UIET, CSJM, Kanpur
Expert Lecture on GPS at UIET, CSJM, Kanpur
 

Último

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Último (20)

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
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)
 
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
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
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...
 
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
 
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
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
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
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 

Typesetting Theses / Reports with LaTeX : Workshop Day 3

  • 1. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Writing scientific reports / theses Suddhasheel Ghosh Department of Civil Engineering, Jawaharlal Nehru Engineering College Aurangabad, Maharashtra 431003 LATEX for Technical and Scientific Documents January 12 - 16, 2015 Day III shudh@JNEC LATEX@ JNEC 1 / 36
  • 2. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Outline 1 What did we learn earlier? 2 Thesis fundamentals 3 Page Layout 4 References to objects shudh@JNEC LATEX@ JNEC 2 / 36
  • 3. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing In this workshop: Day 1: Introduction to LATEX Day 2: Typesetting Mathematics Day 3: Writing your thesis / technical report Day 4: Make your presentations Day 5: Basics of science communication shudh@JNEC LATEX@ JNEC 3 / 36
  • 4. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Outline 1 What did we learn earlier? 2 Thesis fundamentals 3 Page Layout 4 References to objects shudh@JNEC LATEX@ JNEC 4 / 36
  • 5. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Typesetting numbered figures Figure 1: The plastic duck found in muggle houses begin{figure} centering includegraphics[scale=0.3]{duck.jpg} caption{The plastic duck found in muggle houses} end{figure} shudh@JNEC LATEX@ JNEC 5 / 36
  • 6. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Typesetting numbered tables Judge 1 Judge 2 Judge 3 Karishma 8 9 10 Kareena 9 10 8 Katrina 10 8 9 Table 1: Score of participants begin{table} centering begin{tabular}{lccc} hline {} &Judge 1 &Judge 2 &Judge 3 hline Karishma &8 &9 &10 Kareena &9 &10 &8 Katrina &10 &8 &9 hline end{tabular} caption{Score of participants} end{table} shudh@JNEC LATEX@ JNEC 6 / 36
  • 7. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Typesetting numbered equations Mathematically, the integral form of the continuity equation is: dq dt + S j·dS = Σ (1) which in vector notation can also be written as dq dt + S j ·dS = Σ (2) Mathematically, the integral form of the continuity equation is: begin{equation} frac{d q}{d t} + oiint_Smathbf{j} cdot dmathbf{S} = Sigma end{equation} which in vector notation can also be written as begin{equation} frac{d q}{d t} + oiint_Svec{j} cdot dvec{S} = Sigma end{equation} shudh@JNEC LATEX@ JNEC 7 / 36
  • 8. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Outline 1 What did we learn earlier? 2 Thesis fundamentals 3 Page Layout 4 References to objects shudh@JNEC LATEX@ JNEC 8 / 36
  • 9. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Start working on the report Preamble settings For a thesis or a technical report, one can use the basic report class. The basic options for the report class are a4paper, and 12pt documentclass[a4paper,12pt]{report} usepackage{amsmath,amssymb} title{My first thesis report} author{Suddhasheel Ghosh} date{Thesis report} begin{document} maketitle end{document} shudh@JNEC LATEX@ JNEC 9 / 36
  • 10. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Tables of contents ... and figures and tables The table of contents, figures and tables are generated by the following commands, automatically with the page numbers! %for giving the table of contents tableofcontents %for giving the table of figures listoffigures %for giving the table of tables listoftables shudh@JNEC LATEX@ JNEC 10 / 36
  • 11. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing The fonts in the report Fonts by default The default set is a serif font The sans serif set is also available Along with the true-type variant begin{itemize} item The default set is a serif font item {sf The sans serif set is also available} item {tt Along with the true-type variant} end{itemize} shudh@JNEC LATEX@ JNEC 11 / 36
  • 12. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing The fonts in the report What if I don’t wish to use the default font? Many font sets available Recommended fonts for thesis / reports Times fonts. Setting commands in the preamble: usepackage{txfonts} usepackage[T1]{fontenc} Palatino fonts. Setting commands in the preamble: usepackage{pxfonts} usepackage[T1]{fontenc} Fourier version of the fonts. Setting commands in the preamble: usepackage{fourier} usepackage[T1]{fontenc} This presentation is using the Fourier font set. shudh@JNEC LATEX@ JNEC 12 / 36
  • 13. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Outline 1 What did we learn earlier? 2 Thesis fundamentals 3 Page Layout 4 References to objects shudh@JNEC LATEX@ JNEC 13 / 36
  • 14. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Page sizes and Margin control Most thesis and reports have recommendations on the margin requirements and paper size. For A4 paper-size and margins with the following specifications: Left Margin: 2 inches Right Margin: 1 inch Top Margin: 1.5 inch Bottom Margin: 1.5inch Type in the preamble: usepackage[a4paper,left=2in,right=1in,top=1.5in, bottom=1.5in]{geometry} shudh@JNEC LATEX@ JNEC 14 / 36
  • 15. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Line spacing Depending on the requirement of the report seeking agency, e.g. university, college, the line spacing can be set by using any one of the following commands, in the preamble %in the preamble for single spacing usepackage[singlespacing]{setspace} %in the preamble for double spacing usepackage[doublespacing]{setspace} %in the preamble for 1.5 line spacing usepackage[onehalfspacing]{setspace} In case, variable line space is desired, one can use linespread command instead of the setspace package. linespread{1.5} shudh@JNEC LATEX@ JNEC 15 / 36
  • 16. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Headers and footers In the preamble, announce the use of the package: usepackage{fancyhdr} The settings of the package, fancyhdr is given as follows: %on the header there are three parts, left side, %center and right %left side lhead[<even output>]{<odd output>} %center chead[<even output>]{<odd output>} %right side rhead[<even output>]{<odd output>} %on the footer there are three parts, left side, %center and right %left side lfoot[<even output>]{<odd output>} %center cfoot[<even output>]{<odd output>} %right side rfoot[<even output>]{<odd output>} In the body, whenever one wishes to include the "fancy" page style use pagestyle{fancy} shudh@JNEC LATEX@ JNEC 16 / 36
  • 17. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Page numbering blues From the table of contents to the abstract, "YOUR PAGE NUMBERING HAS TO BE ROMAN" pagenumbering{roman} From Chapter 1, "YOUR PAGE NUMBERING HAS TO BE INDO-ARABIC" pagenumbering{arabic} If the articleclass is book Before contents requiring ROMAN style type frontmatter Before contents requiring INDO-ARABIC numbering style type mainmatter Do not want any page number? pagenumbering{gobble} shudh@JNEC LATEX@ JNEC 17 / 36
  • 18. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Page numbering blues From the table of contents to the abstract, "YOUR PAGE NUMBERING HAS TO BE ROMAN" pagenumbering{roman} From Chapter 1, "YOUR PAGE NUMBERING HAS TO BE INDO-ARABIC" pagenumbering{arabic} If the articleclass is book Before contents requiring ROMAN style type frontmatter Before contents requiring INDO-ARABIC numbering style type mainmatter Do not want any page number? pagenumbering{gobble} shudh@JNEC LATEX@ JNEC 17 / 36
  • 19. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Page numbering blues From the table of contents to the abstract, "YOUR PAGE NUMBERING HAS TO BE ROMAN" pagenumbering{roman} From Chapter 1, "YOUR PAGE NUMBERING HAS TO BE INDO-ARABIC" pagenumbering{arabic} If the articleclass is book Before contents requiring ROMAN style type frontmatter Before contents requiring INDO-ARABIC numbering style type mainmatter Do not want any page number? pagenumbering{gobble} shudh@JNEC LATEX@ JNEC 17 / 36
  • 20. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Page numbering blues From the table of contents to the abstract, "YOUR PAGE NUMBERING HAS TO BE ROMAN" pagenumbering{roman} From Chapter 1, "YOUR PAGE NUMBERING HAS TO BE INDO-ARABIC" pagenumbering{arabic} If the articleclass is book Before contents requiring ROMAN style type frontmatter Before contents requiring INDO-ARABIC numbering style type mainmatter Do not want any page number? pagenumbering{gobble} shudh@JNEC LATEX@ JNEC 17 / 36
  • 21. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing The title page I A thesis from JNEC Sample code for designing a thesis / report for the JNEC %this is the title page pagenumbering{gobble} begin{center} textbf{DR. BABASAHEB AMBEDKAR MARATHWADA UNIVERSITY AURANGABAD} vfill A REPORT ON vfill {Large textbf{The Thesis Title}} vfill SUBMITTED BY A Student Roll Number XYZ shudh@JNEC LATEX@ JNEC 18 / 36
  • 22. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing The title page II A thesis from JNEC M. E. (Discipline) vfill Under the guidance of Dr. Kantaprasad Kantilal Super Professor vfill includegraphics{logo.png} %MGM logo vfill JAWAHARLAL NEHRU ENGINEERING COLLEGE AURANGABAD 2014 - 15 end{center} cleardoublepage shudh@JNEC LATEX@ JNEC 19 / 36
  • 23. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing The title page III A thesis from JNEC One should save the title page in a file called titlepage.tex and use it in the body of the document as include{titlepage} shudh@JNEC LATEX@ JNEC 20 / 36
  • 24. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing The chapters in the report The macro for starting a chapter is chapter. For example chapter{Introduction} Suggestion! It is suggested that each chapter be stored in a separate file, and in the same directory, where the thesis file is. The chapter can be included for compilation using the include command. Therefore include{chapter1} will look for chapter1.tex in the same directory, where the thesis / report file is. shudh@JNEC LATEX@ JNEC 21 / 36
  • 25. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Chapter Sections and subsections ... and subsubsections For sections to be numbered and included in the table of contents, we have the following commands %set section title section{This is a new section} %set subsection title subsection{This is a new subsection} %set sub-sub-section title subsubsection{This is a new sub-sub-section} Also, in the preamble use the following command setcounter{secnumdepth}{4} shudh@JNEC LATEX@ JNEC 22 / 36
  • 26. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Multicolumn Multiple columns can be set by using the multicol package. In the preamble: usepackage{multicol} and in the body begin{multicols}{2} lots of text end{multicols} shudh@JNEC LATEX@ JNEC 23 / 36
  • 27. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Page breaks In a thesis / dissertation, page breaks are of two types: Single page break clearpage. Goes to the next page. Double page break cleardoublepage. This is typically used for two-sided documents. Forces the compiler to direct output to the next odd-numbered page. shudh@JNEC LATEX@ JNEC 24 / 36
  • 28. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Quotes from a document I If a certain quote has to be given from literature, it can be done as follows: begin{guote} ``Voil'{a}! In view, a humble vaudevillian veteran cast vicariously as both victim and villain by the vicissitudes of Fate. This visage, no mere veneer of vanity, is a vestige of the vox populi, now vacant, vanished. However, this valourous visitation of a bygone vexation stands vivified and has vowed to vanquish these venal and virulent vermin vanguarding vice and vouchsafing the violently vicious and voracious violation of volition!'' hfill -- V for Vendetta (2006) end{quote} shudh@JNEC LATEX@ JNEC 25 / 36
  • 29. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Quotes from a document II “Voilá! In view, a humble vaudevillian veteran cast vicariously as both victim and villain by the vicissitudes of Fate. This visage, no mere veneer of vanity, is a vestige of the vox populi, now vacant, vanished. However, this valourous visitation of a bygone vexation stands vivified and has vowed to vanquish these venal and virulent vermin vanguarding vice and vouchsafing the violently vicious and voracious violation of volition!” – V for Vendetta (2006) shudh@JNEC LATEX@ JNEC 26 / 36
  • 30. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Outline 1 What did we learn earlier? 2 Thesis fundamentals 3 Page Layout 4 References to objects shudh@JNEC LATEX@ JNEC 27 / 36
  • 31. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing The art of cross referencing Setting the label for reference Use the label command for setting up legends. Use the ref command for referring to a legend. For example For a figure, set the label after the caption by referring to it as label{fig:myfig}. Refer to the legend by using ref{fig:myfig} Suggestion! For figures use label{fig:myfig}, for tables use label{tbl:mytable}, for equations use label{eqn:myeqn}, for chapters use label{chp:chapterN} and for sections use label{sec:section_reference_name}. shudh@JNEC LATEX@ JNEC 28 / 36
  • 32. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Example of cross referencing Referring to a figure in a document Figure 2: A muggle artefact found in the Dark Lord’s bathroom The investigator looked puzzled when he visited the house of the Dark Lord. He found a rubber duck (Figure [2]) in the bathroom, along with other suspicious objects. begin{figure} centering includegraphics[scale=0.2]{duck.jpg} caption{A muggle artefact found in the Dark Lord's bathroom} label{fig:muggleduck} end{figure} The investigator looked puzzled when he visited the house of the Dark Lord. He found a rubber duck (Figure [ref{fig:muggleduck}]) in the bathroom, along with other suspicious objects. shudh@JNEC LATEX@ JNEC 29 / 36
  • 33. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Example of cross referencing Referring to a table Judge 1 Judge 2 Karishma 8 9 Kareena 9 10 Katrina 10 8 Table 2: Score of participants During the contest, the judges took the time to evaluate the contestants on many factors. Finally, they tabulated the scores as in Table [2] begin{table} centering begin{tabular}{lcc} hline {} &Judge 1 &Judge 2 hline Karishma &8 &9 Kareena &9 &10 Katrina &10 &8 hline end{tabular} caption{Score of participants} label{tab:Scores} end{table} During the contest, the judges took the time to evaluate the contestants on many factors. Finally, they tabulated the scores as in Table [ref{tab:Scores}] shudh@JNEC LATEX@ JNEC 30 / 36
  • 34. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Example of cross referencing Referring to mathematical equations Mathematically, the integral form of the continuity equation is: dq dt + S j·dS = Σ (3) which in vector notation can also be written as dq dt + S j ·dS = Σ (4) The integral form of the continuity equation is given in equation (3) and the vector notation form is given in equation (4) Mathematically, the integral form of the continuity equation is: begin{equation} frac{d q}{d t} + oiint_Smathbf{j} cdot dmathbf{S} = Sigmalabel{eqn:integral_form} end{equation} which in vector notation can also be written as begin{equation} frac{d q}{d t} + oiint_Svec{j} cdot dvec{S} = Sigma end{equation} The integral form of the continuity equation is given in equation (ref{eqn:integral_form}) and the vector notation form is given in equation (ref{eqn:vector_form}) shudh@JNEC LATEX@ JNEC 31 / 36
  • 35. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Bibliographic referencing Parts Requirement of a file containing the names and id’s of all the referencing (a .bib file) – to be created by the LATEX user A bibliographic style file (a .bst file) - usually provided by the journal, or can also be created A bibliographic reference manager (if required) - Recommended software JabRef shudh@JNEC LATEX@ JNEC 32 / 36
  • 36. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Bibliographic referencing A bibliographic entry JabRef will create bibliographic entries for different types of references: articles, books, theses, reports, conference proceedings etc. An example: @Article{FullerThompson1907, Title= {The Laws of Proportioning Concrete}, Author= {Fuller, W. B. and Thompson, S. E.}, Journal= {American Society of Civil Engineers}, Year= {1907}, Pages= {223--298}, Volume= {33}, } shudh@JNEC LATEX@ JNEC 33 / 36
  • 37. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Bibliographic referencing Enabling the citations In the preamble: usepackage{natbib} For author-year citations, surrounded by parenthesis e.g. (Fuller and Thompson, 1907) or Fuller and Thompson (1907) usepackage[round,authoryear,sort]{natbib} For numbered citations, as they appear, e.g. [3] we should have usepackage[square]{natbib} %near the end of file before end{document} bibliographystyle{asce} %mybstfile.bib must exist in the same directory bibliography{mybstfile} http://en.wikibooks.org/wiki/LaTeX/Bibliography_Management shudh@JNEC LATEX@ JNEC 34 / 36
  • 38. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Bibliographic referencing Enabling the citations In the preamble: usepackage{natbib} For author-year citations, surrounded by parenthesis e.g. (Fuller and Thompson, 1907) or Fuller and Thompson (1907) usepackage[round,authoryear,sort]{natbib} For numbered citations, as they appear, e.g. [3] we should have usepackage[square]{natbib} %near the end of file before end{document} bibliographystyle{asce} %mybstfile.bib must exist in the same directory bibliography{mybstfile} http://en.wikibooks.org/wiki/LaTeX/Bibliography_Management shudh@JNEC LATEX@ JNEC 34 / 36
  • 39. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Bibliographic referencing Citing a document or a list of documents The following commands are used to cite a document or a list of documents Citing it in running text e.g. Fuller and Thomson (1907) mentioned that ... cite{FullerThompson1907} Citing it off text e.g. Concrete is said to be a mixture of sand and cement with many other particles (Fuller and Thompson, 1907). citep{FullerThompson1907} Citing multiple documents citep{FullerThompson1907,Hiffler2002,deLarrard1988} shudh@JNEC LATEX@ JNEC 35 / 36
  • 40. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Bibliographic referencing Citing a document or a list of documents The following commands are used to cite a document or a list of documents Citing it in running text e.g. Fuller and Thomson (1907) mentioned that ... cite{FullerThompson1907} Citing it off text e.g. Concrete is said to be a mixture of sand and cement with many other particles (Fuller and Thompson, 1907). citep{FullerThompson1907} Citing multiple documents citep{FullerThompson1907,Hiffler2002,deLarrard1988} shudh@JNEC LATEX@ JNEC 35 / 36
  • 41. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Bibliographic referencing Citing a document or a list of documents The following commands are used to cite a document or a list of documents Citing it in running text e.g. Fuller and Thomson (1907) mentioned that ... cite{FullerThompson1907} Citing it off text e.g. Concrete is said to be a mixture of sand and cement with many other particles (Fuller and Thompson, 1907). citep{FullerThompson1907} Citing multiple documents citep{FullerThompson1907,Hiffler2002,deLarrard1988} shudh@JNEC LATEX@ JNEC 35 / 36
  • 42. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing Bibliographic referencing Citing a document or a list of documents The following commands are used to cite a document or a list of documents Citing it in running text e.g. Fuller and Thomson (1907) mentioned that ... cite{FullerThompson1907} Citing it off text e.g. Concrete is said to be a mixture of sand and cement with many other particles (Fuller and Thompson, 1907). citep{FullerThompson1907} Citing multiple documents citep{FullerThompson1907,Hiffler2002,deLarrard1988} shudh@JNEC LATEX@ JNEC 35 / 36
  • 43. SU D D H ASH EEL.CO M Recall Fundas Layout Referencing In the upcoming sessions Typesetting a presentation Alerts and colour themes Table of contents Sections Subfigures and subtables Pseudo animation shudh@JNEC LATEX@ JNEC 36 / 36