Upload
trandien
View
241
Download
1
Embed Size (px)
Citation preview
LATEX – A DOCUMENT
PREPARATION SYSTEM
Debdeep Sarkar
PhD Student
Department of Electrical Engineering
Indian Institute of Technology, Kanpur
OVERVIEW OF THE PRESENTATION
LaTeX: Introduction and Historical Perspectives
Getting Started With LaTeX
Examples: Equations, Figures, Tables,
References
How to Organize the Thesis
Writing IEEE Papers
06-0
6-2
016
2
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
WHAT IS LATEX?
LaTeX is a high-quality typesetting system containing
includes features designed for the production of technical and
scientific documentation
It is the de facto standard for the communication and
publication of scientific documents
It is based on Donald E. Knuth's TeX typesetting language
or certain extensions
Source: https://latex-project.org/intro.html
06-0
6-2
016
3
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
SOME HISTORICAL PERSPECTIVE.. 06-0
6-2
016
4
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
Source: https://www.tug.org/whatis.html , Wikipedia, Google Images
In the late 1970s, Donald Knuth was revising the second volume of his
multivolume magnum opus The Art of Computer Programming, got the
galleys, looked at them, and said (approximately) "blecch"! He had just
received his first samples from the new typesetting system of the
publisher's, and its quality was so far below that of the first edition of
Volume 2 that he couldn't stand it. Around the same time, he saw a new
book (Artificial Intelligence, by Patrick Winston) that had been produced
digitally, and ultimately realized that typesetting meant arranging 0's
and 1's (ink and no ink) in the proper pattern, and said
(approximately), "As a computer scientist, I really identify with
patterns of 0's and 1's; I ought to be able to do something about
this", so he set out to learn what were the traditional rules for
typesetting math, what constituted good typography, and (because
the fonts of symbols that he needed really didn't exist) as much as
he could about type design.
Donald Ervin Knuth is
an American computer
scientist, mathematician,
and professor
emeritus at Stanford
University
HISTORICAL PERSPECTIVE (CONTD. ) 06-0
6-2
016
5
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
Knuth’s lecture in American Mathematical Society (AMS) in late
1970’s
The topic he presented there was his new work on TeX (for
typesetting) and Metafont (for developing fonts for use with TeX).
He presented not only the roots of the typographical concepts and
the mathematical notions on which these two programs are based.
Attractive features of TeX which mathematicians found out:
1. It is intended to be used directly by authors (and their
secretaries)
2. It came from an academic source, and was intended to be
available for no monetary fee
3. It became available on just about any computer and operating
system, and was designed specifically so that input files would
be portable, and would generate the same output on any
system on which they were processed—same hyphenations,
same line breaks, same page breaks, same everything.
Source: https://www.tug.org/whatis.html
GROWTH OF TEX 06-0
6-2
016
6
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
TeX came along just before the beginnings of the personal computer;
although it was developed on one of the last of the "academic"
mainframes (the DECsystem ("Edusystem")-10 and -20)
It was very quickly ported to some early HP workstations and, as
they emerged, the new personal systems
From the start, it has been popular among mathematicians,
physicists, astrophysicists, astronomers, any research scientists who
were plagued by lack of the necessary symbols on typewriters and
who wanted a more professional look to their preprints
Source: https://www.tug.org/whatis.html
WHAT DOES TEX NEED TO WORK?
It does not require applications like PageMaker, Quark Express,
Fontographer or FontLab.
A TeX system stands on its own, provided all the fonts one needs are
available
TeX uses only the metrics, and produces a "device independent"
output file “.dvi” that are translated to the particular output device
being used (an imagesetter, laser printer, inkjet printer).
The DVI translator actually accesses the font shapes, either as
bitmaps, Type 1 fonts, or pointers to fonts installed in a printer with
the shapes not otherwise accessible.
PostScript and PDF are two of the most popular "final" output
forms for TeX.
06-0
6-2
016
7
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
Source: https://www.tug.org/whatis.html
LATEX VS WORD-PROCESSORS 06-0
6-2
016
8
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
http://mappingignorance.org/2015/04/06/word-or-latex-typesetting-which-
one-is-more-productive-finally-scientifically-assessed/
One of the main goals for anyone in the Academia, for any research group,
is to publish the results of their research. Therefore, enormous amounts
of time and effort are devoted to producing manuscripts which will be
evaluated for publication in scientific journals or international conferences.
One must employ the right tools to achieve the best results in writing,
measured in terms on quality vs. time devoted to writing.
MSWord WYSIWYG
Editor
LaTeX Markup
language pretty much
like HTML
SUMMARY: WHY SHOULD ONE USE
LATEX?
Excellent for typesetting Math
Automated placement of Figures and Tables
Automated Generation of references to tables,
figures and bibliographies
Free and Universal
06-0
6-2
016
9
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
WORD OF CAUTION: YOU SHOULD
NOT USE LATEX IF.. 06-0
6-2
016
10
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
You don't have time to learn it. Unlike most other point & click systems, LaTeX
does take some time to learn. There are of course many guides and tutorials that can
help you with this, but don't try to learn LaTeX if you have, say, less than 24 hours to
prepare a manuscript.
Your document is already written. Say, if you have already written your thesis in
Word, there isn't much point in trying to “convert” your document to LaTeX. You can
do it, but the results won't be pretty. LaTeX isn’t just another document type to “Save-
As”, it's a complete system to help you write those documents.
What you care about is the design of the document. If you do care about creating
your own designs for your documents (rather than the content), LaTeX is perhaps not
the best system for you. There are a number of packages (perhaps most notably
memoir) that allow you to customize the look of your document, but things are not
always straightforward. Having said that, if you are a designer, of course we would
welcome your help in designing new document classes and templates!
Source: http://tex.stackexchange.com/questions/1756/why-should-
i-use-latex
GETTING STARTED: TO RUN LATEX ON WINDOWS,
INSTALLATION OF MIKTEX AND TEXMAKER
06-0
6-2
016
11
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
http://miktex.org/download
http://www.xm1math.net/texm
aker/download.html
LATEX FILE STRUCTURE
Document Class Predefined Formats (article, report, book,..).
Packages used Added Functionality (graphics, reference style,...).
Main Body Text and Bibliographic References
Equations, Figures, Tables
06-0
6-2
016
12
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
EXAMPLE-1: BASIC ARTICLE (AFTER
RUNNIG IT IN TEX-MAKER)
\documentclass[11pt,a4paper]{article}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
This is a test.
\end{document}
No additional packages used yet!!
06-0
6-2
016
14
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
MORE ON DOCUMENTCLASS 06-0
6-2
016
15
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
article For articles in scientific journals, presentations, short reports,
program documentation, invitations, ...
IEEEtran For articles with the IEEE Transactions format.
proc A class for proceedings based on the article class.
report For longer reports containing several chapters, small books,
thesis, ...
book For real books.
slides For slides. The class uses big sans serif letters.
memoir For changing sensibly the output of the document. It is based on the book class, but you can create any kind of document
with it [1]
letter For writing letters.
beamer For writing presentations (see LaTeX/Presentations).
\documentclass[11pt,a4paper]{article}
Source: https://en.wikibooks.org/wiki/LaTeX/Document_Structure
MORE ON DOCUMENTCLASS 06-0
6-2
016
16
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
10pt, 11pt,
12pt Sets the size of the main font in the document. If no option is
specified, 10pt is assumed.
a4paper,
letterpaper
,...
Defines the paper size. The default size is letterpaper;. Besides
that, a5paper, b5paper, executivepaper, andlegalpaper can be
specified.
fleqn Typesets displayed formulas left-aligned instead of centered.
leqno Places the numbering of formulas on the left hand side instead of the
right.
titlepage,
notitlepage
Specifies whether a new page should be started after the document
title or not. The article class does not start a new page by default,
while report and book do.
twocolumn Instructs LaTeX to typeset the document in two columns
twoside,
oneside
Specifies whether double or single sided output should be generated. The classes article and report are single sided and the book class is
double sided by default. Note that this option concerns the style of the document only. The option twoside does not tell the printer you use
that it should actually make a two-sided printout.
landscape Changes the layout of the document to print in landscape mode.
openright,
openany
Makes chapters begin either only on right hand pages or on the next page available. This does not work with the article class, as it does
not know about chapters. The report class by default starts chapters
on the next page available and the book class starts them on right
hand pages.
draft
makes LaTeX indicate hyphenation and justification problems with a
small square in the right-hand margin of the problem line so they can
be located quickly by a human. It also suppresses the inclusion of
images and shows only a frame where they would normally occur.
EXAMPLE-2: USE OF SIMPLE MATHS
\documentclass[11pt,a4paper]{article}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
This is a test.
Simple equation:
\begin{equation}
(a+b)^{2}=a^{2}+2ab+b^{2}
\end{equation}
\end{document}
Short list of mathematical symbols and operators:
http://web.ift.uib.no/Teori/KURS/WRK/TeX/symALL.html
06-0
6-2
016
17
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
EXAMPLE-3: PACKAGES, MORE MATHS \documentclass[11pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
Maxwell's equations:
\begin{equation}
\nabla \times \vec{H}=\vec{J} +
\frac{\partial \vec{D}}{\partial t}
\end{equation}
\begin{equation}
\nabla \times \vec{E}= - \frac{\partial
\vec{B}}{\partial t}
\end{equation}
\begin{equation}
\nabla \cdot \vec{D}=\rho
\end{equation}
\begin{equation}
\nabla \cdot \vec{B}=0
\end{equation}
\end{document}
Details of mathematical symbols and operators:
http://tug.ctan.org/info/symbols/comprehensive/symbol
s-a4.pdf
06-0
6-2
016
18
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
EXAMPLE-4: SUB-EQUATIONS 06-0
6-2
016
19
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
\documentclass[11pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
\begin{subequations}
\begin{equation}
\nabla \times \vec{H}=\vec{J} + \frac{\partial
\vec{D}}{\partial t}
\end{equation}
\begin{equation}
\nabla \times \vec{E}= - \frac{\partial \vec{B}}{\partial t}
\end{equation}
\begin{equation}
\nabla \cdot \vec{D}=\rho
\end{equation}
\begin{equation}
\nabla \cdot \vec{B}=0
\end{equation}
\end{subequations}
\end{document}
EXAMPLE-5: EQUATION-ARRAY
\documentclass[11pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
\begin{eqnarray}
\nonumber \nabla \times \vec{H} &=& \vec{J}
+ \frac{\partial \vec{D}}{\partial t} \\
\nonumber \nabla \times \vec{E} &=& -
\frac{\partial \vec{B}}{\partial t} \\
\nonumber \nabla \cdot \vec{D} &=& \rho \\
\nonumber \nabla \cdot \vec{B} &=& 0 \\
\end{eqnarray}
\end{document}
06-0
6-2
016
20
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
EXAMPLE-6: MATHS WITH TEXT,
LABELLING OF EQUATIONS
06-0
6-2
016
21
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
\documentclass[11pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
The maximum directivity $D_{max}$ is
given by:
\begin{equation} \label{dir1}
D_{max}=\frac{4\pi U_{max}}{P_{rad}}
\end{equation}
In \eqref{dir1}, $U_{max}$ is maximum
radiation intensity and $P_{rad}$ is total
radiated power.
\end{document}
CROSS-REFERENCING
Keys: A key is any string (consisting of letters, numbers
and punctuation characters) which you choose and
associate with something in the document that you wish
to refer to.
Important Commands: \label, \ref, \pageref, \eqref
NOTE ON AMSMATH & AMSSYMB 06-0
6-2
016
22
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
1. By using amsmath, the \text command (through the auxiliary
package amstext) can be invoked for typesetting a fragment of text
inside a display.
2. amssymb provides an extended symbol collection. For example,
after loading amssymb you have the following additional binary
relation
symbols: \barwedge, \boxdot, \boxminus, \boxplus, \boxtimes, \Ca
p, \Cup (and many more), the arrow \leadsto, and some other
symbols such as \Box and \Diamond.
3. Another useful feature is the \mathbb command to produce
blackboard bold characters
06-0
6-2
016
23
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
\documentclass[11pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
\begin{equation}
D=D_{0} \sin^{2}\theta \; \; \text{where} \; \;
D_{0}=1.5
\end{equation}
\begin{equation}
\mathbb{B}=\mu \mathbb{H}
\end{equation}
\end{document}
USING THE AMSMATH / AMSSYMB FEATURES
Notes:
1) Use of \text in maths
2) Use of \mathbb
3) Use of spacing in math-mode
How to choose the length scales for spacing?
LENGTH SCALES IN LATEX 06-0
6-2
016
24
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
Abbreviation Value
pt
a point is approximately 1/72.27 inch, that
means about 0.0138 inch or 0.3515 mm (exactly
point is defined as 1/864 of American printer’s
foot that is 249/250 of English foot)
mm a millimeter
cm a centimeter
in inch
ex roughly the height of an 'x' (lowercase) in the
current font (it depends on the font used)
em roughly the width of an 'M' (uppercase) in the
current font (it depends on the font used)
mu math unit equal to 1/18 em, where em is taken
from the math symbols family
Source: https://www.sharelatex.com/learn/Spacing_in_math_mode
SOME NOTES ON THE SPACING 06-0
6-2
016
25
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
LATEX code Description
\quad space equal to the current font size (= 18 mu)
\, 3/18 of \quad (= 3 mu)
\: 4/18 of \quad (= 4 mu)
\; 5/18 of \quad (= 5 mu)
\! -3/18 of \quad (= -3 mu)
\ (space
after
backslash!)
equivalent of space in normal text
\qquad twice of \quad (= 36 mu)
\hspace{} and \vspace{} functions can be used in conjunction with text
Examples will be shown later
Source: https://www.sharelatex.com/learn/Spacing_in_math_mode
EXAMPLE-7: INSERT FIGURE
\documentclass[11pt,a4paper]{article}
\usepackage{graphicx}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
ESc-201:
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=6cm]{visource.eps}
\caption{Voltage-current source. \label{fig1}}
\end{center}
\end{figure}
Fig. \ref{fig1} shows combination of a voltage-
source and a current source.
\end{document}
06-0
6-2
016
26
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
SOME POINTS ON FIGURE INSERTION
• Can be used for UBUNTU
compatibility
• Use .eps files by
converting images using
GIMP, which is also free.
• High resolution figures in
.eps formats are demanded
by many journals.
• If system is supporting PdfLatex
properly this is the best option
• Can support images in .jpg, .png
and also .pdf formats
06-0
6-2
016
27
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
PLACEMENT OF FLOATS (FIGURES/TABLES)
Placement options htbp means allowing placement at certain
locations:
h means here: Place the figure in the text where the figure
environment is written, if there is enough room left on the page
t means top: Place it at the top of a page.
b means bottom: Place it at the bottom of a page.
p means page: Place it on a page containing only floats, such as
figures and tables.
06-0
6-2
016
28
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
EXAMPLE-8: INSERT MULTIPLE FIGURES
AND REFER THEM IN TEXT 06-0
6-2
016
29
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
\documentclass[11pt,a4paper]{article}
\usepackage{graphicx}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=6cm]{image1.eps}
\caption{Tx-Rx system. \label{trx}}
\end{center}
\end{figure}
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=6cm]{image2.eps}
\caption{Parallel LCR circuit. \label{lcr}}
\end{center}
\end{figure}
Fig. \ref{lcr} shows a parallel resonant circuit.
Fig. \ref{trx} shows a Tx-Rx system.
\end{document}
EXAMPLE-8: INSERT MULTIPLE FIGURES
AND REFER THEM IN TEXT (CONTD.) 06-0
6-2
016
30
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
\documentclass[11pt,a4paper]{article}
\usepackage{graphicx}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=6cm]{image2.eps}
\caption{Parallel LCR circuit. \label{lcr}}
\end{center}
\end{figure}
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=6cm]{image1.eps}
\caption{Tx-Rx system. \label{trx}}
\end{center}
\end{figure}
Fig. \ref{lcr} shows a parallel resonant circuit.
Fig. \ref{trx} shows a Tx-Rx system.
\end{document}
EXAMPLE-9: INSERT SIMPLE TABLE
\documentclass[11pt,a4paper]{article}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
\begin{table}[htbp]
\centering
\begin{tabular}{|c|c|c|}
\hline
cell1 & cell2 & cell3 \\ \hline
cell4 & cell5 & cell6 \\ \hline
cell7 & cell8 & cell9 \\ \hline
cell10 & cell11 & cell2 \\ \hline
\end{tabular}
\caption{Sample Table}
\end{table}
\end{document}
06-0
6-2
016
31
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
l = automatically adjust size, left justify
r = automatically adjust size, right justify
p = set size e.g p{4.7cm}
c = centre text
EXAMPLE-10: MORE COMPLEX TABLE \documentclass[11pt,a4paper]{article}
\usepackage{multirow}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
\begin{table}[htbp]
\centering \
begin{tabular}{|c|c|c|c|c|}
\hline
Antenna Array & $f_{0}$ (GHz) & IBW (\%) &
$G_{p}$ (dBi) & $\eta_{rad}$ (\%) \\ \hline
\multirow{2}{*}{A1} & 1.75 & 5.14 & 3.59 & 68.64
\\ & 2.40 & 9.58 & 7.36 & 98.42 \\ \hline
\multirow{2}{*}{A2} & 1.77 & 6.78 & 1.69 & 59.07
\\ & 2.36 & 10.59 & 4.52 & 87.98 \\ \hline
\end{tabular}
\caption{Performance of Proposed MIMO
Configuration: $f_{0}$ = Center Frequency, IBW
= Impedance Bandwidth, $G_{p}$ = Peak
Realized Gain, $\eta_{rad}$ = Radiation
Efficiency}
\end{table}
\end{document}
06-0
6-2
016
32
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
EXAMPLE-11: CREATING LISTS 06-0
6-2
016
33
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
\documentclass[11pt,a4paper]{article}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
The space surrounding an antenna is
subdivided into three regions:
\begin{enumerate}
\item Reactive near-field region.
\item Radiating near-field (Fresnel) region.
\item Far-field (Fraunhofer) region.
\end{enumerate}
%\begin{itemize}
%\item Reactive near-field region.
%\item Radiating near-field (Fresnel) region.
%\item Far-field (Fraunhofer) region.
%\end{itemize}
\end{document}
EXAMPLE-12: ALIGNMENT 06-0
6-2
016
34
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
\documentclass[11pt,a4paper]{article}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
\begin{flushleft}
An antenna radiation pattern or antenna
pattern is defined as a mathematical function
or a graphical representation of the radiation
properties of the antenna as a function of
space coordinates.
\end{flushleft}
\begin{center}
In most cases, the radiation pattern is
determined in the farfield region and is
represented as a function of the directional
coordinates.
\end{center}
\begin{flushright}
Radiation properties include power flux
density, radiation intensity, field strength,
directivity, phase or polarization.
\end{flushright}
A trace of the received electric (magnetic)
field at a constant radius is called the
amplitude field pattern.
\end{document}
EXAMPLE-13: GROUPS AND FONTS 06-0
6-2
016
35
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
\documentclass[11pt,a4paper]{article}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
\textbf{This text is in bold font}. \\
\textit{This text is in italics font}. \\
\underline{This text is underlined.} \\
\tiny{xyz}, \normalsize{xyz}, \Huge{xyz}
\end{document}
Summary: General construct for any environment in latex is:
\begin{name}
……………..
\end{name}
Effects of many command, for example \tiny, \bf affect the text until
the end of environment
EXAMPLE-14: BIBLIOGRAPHY (BY HAND) 06-0
6-2
016
36
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
\documentclass[11pt,a4paper]
{article}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
The cellular communication network
has evolved significantly, starting
from the first generation (1G) analog
FM based systems in 1980s to the
fourth generation (4G) Long Term
Evolution-Advanced (LTE-A)
technology in 2011 \cite{mimo1}.
\begin{thebibliography}{99}
\bibitem{mimo1} A. L. Swindlehurst,
E. Ayanoglu, P. Heydari, and F.
Capolino, ``Millimeter-Wave Massive
MIMO: The Next Wireless
Revolution?,'' \textit{IEEE
Communications Magazine}, pp. 56-
62, September 2014.
\end{thebibliography}
\end{document}
EXAMPLE-15: BIBLIOGRAPHY USING BIBTEX 06-0
6-2
016
37
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
\documentclass[11pt,a4paper]
{article}
\title{Latex Test Document}
\author{Author1}
\date {}
\begin{document}
\maketitle
This is shown in \cite{Nobody06}.
Please refer to the book of
\cite{Come95}.
\bibliography{mybib}
\bibliographystyle{plain}
\end{document}
@book{ Come95,
author = "D. E. Comer",
title = "Internetworking with TCP/IP: Principles,
Protocols and Architecture",
publisher = "Prentice-Hall",
year = "1995",
volume= 1,
edition= "Third"}
@misc{ Nobody06,
author = "Nobody Jr",
title = "My Article",
year = "2006" }
“mybib.bib”
Sequence of commands:
Latex, Bibtex, Latex, Latex,
dvips, ps2pdf, Pdf viewer
May be defined as a user-
defined command in Texmaker
GENERAL ORGANIZATION OF THESIS 06-0
6-2
016
38
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
Main File
Title-
page
Chapter-1 Chapter-N
Sections
Subsections..
1) Writing of individual chapters should not affect each other.
2) Hassle-free numbering and referral of figures, tables, equations
3) Automatic generation and updation of table of contents (TOC), lists of
figures (LOF) and list of tables (LOT)
4) Smooth Processing of Bibliography
5) Page-numbering issues
Bibliography Abstract
Ack.
TOC
LOF
LOT
STRUCTURE OF THE MAIN-FILE 06-0
6-2
016
39
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
\documentclass[11pt,a4paper]{report}
\usepackage{….}
\author{…….}
\doublespacing
\begin{document}
\begin{titlepage}
……….
\end{titlepage}
\pagenumbering{gobble}
\input{abstract.tex}
\input{ack.tex}
\clearpage
\setcounter{page}{1}
\pagenumbering{roman}
\tableofcontents
\cleardoublepage
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures
\cleardoublepage
\addcontentsline{toc}{chapter}{\listtablename}
\listoftables
\input{sample_chap.tex}
……
\input{chaptern.tex}
\input{references.tex}
\end{document}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[left = 35 mm, right = 25 mm,
top = 25 mm, bottom = 25 mm]{geometry}
\usepackage{sectsty}
\usepackage{titlesec}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{enumerate}
\usepackage{setspace}
\usepackage{caption}
……….
Table of contents (TOC)
List of figures (LOF)
List of tables (LOT)
A sample chapter..
DESIGNING THE TITLE-PAGE 06-0
6-2
016
40
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
………………………………………………
\begin{titlepage}
\vspace*{1.4cm}
{\centering \large {\huge\bf Thesis Title}\\
\vspace{1cm}
{A Thesis Submitted \\
In Partial Fulfillment of the Requirements \\
For the Degree of \\
........................ \\ }
\vspace{1cm}
\it by \\
\vspace{.5cm}
\rm {\huge \bf{Student-Name}}\\
{\it{under the guidance of}} \\
\vspace{1cm}
\hspace{.05cm} {\large \bf {Guide-name}}\\
\vspace{0.5cm}
\begin{figure}[htbp]
\begin{center}
\includegraphics[scale=0.8]{redlogo.eps}
\end{center}
\end{figure}
Department Of Electrical Engineering \\
Indian Institute Of Technology, Kanpur \\
Date (Month 201x) \\ }
\end{titlepage}
……………………………………………….
INSIDE THE SAMPLE CHAPTER 06-0
6-2
016
41
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
\chapter{New Chapter}
\setcounter{page}{1}
\pagenumbering{arabic}
\section*{Introduction}
Section with no number.
\section{Design-1}
This is first section.
\subsection{Theory}
This is first subsection.
\subsection{Parametric Analysis}
This is second subsection.
\subsubsection{Parameter-1} .........
“sample_chap.tex”
How it is reflected
in the TOC after
compilation
TOC, LOF, LOT 06-0
6-2
016
42
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
Source: M.Tech. thesis
of Debdeep Sarkar, EE
Dept. IITK
IEEE PAPERS USING LATEX 06-0
6-2
016
43
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
https://www.ieee.org/publications_standards/publications/authors/auth
or_templates.html
IEEEtran.ZIP
IEEE PAPERS USING LATEX 06-0
6-2
016
44
IEE
E M
TT
SB
C W
ork
shop
on
LaT
eX
IEEEtran.ZIP
\documentclass[journal]{IEEEtran}