2. high typographical quality of the documents
LaTex is de facto standard and is installed at
many universities
Can be run on most operating systems
Equations, citations, figures, tables, etc., can
be labeled so that cross referencing is
automated
LaTex is free!
LaTex is notWYSIWYG(WhatYou See IsWhatYou Get)
3. First consider what type of paper you are writing
so that you know whose packages to install.
Physics usesThe Physical Review Packages
Math usesThe AMS packages, which is also useful for
writing just a general document or a Logic report.
Chemistry even uses some specialized packages, but
much of its writing can be achieved through AMS. If
you are interested in exploring chemistry packages
further follow the link to get started. Click Here.
Most can just be searched on Google, or found using
the MikTex package manager.
4. Keep all of the associated files in a single
directory.
Latex was probably originally made for linux, so
it is a little picky about path names.
Path names should have not special symbols or
spaces. In fact the folder that you place the files
in should be kept in the root directory on a
windows machine.
Also if you use any specialized style files they
should also be kept with the projects files.These
are .sty files.
5. Download and run the Basic MiKTeX installer from
https://miktex.org/download
IEEE ManuscriptTemplates for Conference
Proceedings
https://
www.ieee.org/conferences_events/conferences/publishing/tem
IEEE ArticleTemplates and Instructions
https
://www.ieee.org/conferences_events/conferences/publishing/te
6. TeX is essentially a Markup Language (like
HTML, XML and RTF)
LaTex is an extension ofTeX
Macro packages to makeTeX easier to use
Presentaion is based on
Troy D. Milner and Simon Cuce slides
7. Late 1970s -> 1989: TeX by Don Knuth
Decent typesetting by the authors!
Same output now as in the future
Low level, but powerful
Frozen development
Starting early 1980s: LaTeX by Leslie Lamport
High level language (macros, really) forTeX
Easy to use!
Current version is Latex2e
8. Some say LAY-teck
Some say LAH-teck
Some say LAY-tech (as in “Bach”)
Some say LAY-tex
…
According toWikipedia: Knuth says /tex/ (as in
Bach)
Lamport says “whatever…”
9. High typeset quality
Easy to include math formulas
Source file format is not bounded to a
particular OS or platform
Latex implementations exists for all
platforms (DOS,Windows, Unices,..)
10. De facto standard for scientific publishing
Very few bugs
Good for large documents
Can run even on 386 PC
Not very easy to learn!
12. Your Latex File Your Bibtex File
Latex compile x3
Bibtex compile x2
Latex compile x3
Your Postscript File
dvips compile x1
Device independent
output .dvi
(a text file)
13. Document Class
▪ There are 4 main predefined classes: article, letter,
report, book, and slides.
Packages used
▪ Added Functionality (graphics, reference style,...).
Main Body
▪ Text and Bibliography References.
14. Document Class
▪ documentclass[options]{class}
▪ options = a4paper, 11pt, 12pt, 10pt, twocolumn,
landscape,...
▪ class = article, report, book,...
Packages
▪ usepackage{package name}
▪ epsfig = insert PS pictures into the document
▪ fancyhdr = easy definition of footer and header
15. Start with begin{document}
End with end{document}
TypesettingText
or newline and newpage
% comments
Bold textbf{……………} or bf
Italics emph{…………} or textit{………} or it
Underline underline{…………} or ul
17. The Physical Review package ads something
new to the title. It ads the Abstract section.
begin{abstract}
Abstract text
end{abstract}
After this section you can put the make title
command.
18. Sections
section{…} = 1. Latex is Great
subsection{…} = 1.1Why 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{…}
19. maketitle - DisplayTitle and Author
tableofcontents - generatesTOC
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.
21. Enumerate instead of itemize gives a
numbered list
Lists can be recursive
22. 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
23. 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
24. Environments center, flushleft, flushright
Example
begin{flushright}
Right aligned
end{flushright}
Result
Right aligned
27. 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
28. begin{tabular}{|l|r|c|} hline
Date & Price & Size hline
Yesterday & 5 & big hline
Today & 3 & small hline
end{tabular}
Date Price Size
Yesterday 5 Big
Today 3 Small
29. 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 ofTables (LOT).
Options (recommendations)
h = place table here
t = place at top of page
b = place at bottom of page
31. Use epsfig package
usepackage{epsfig}
Including images in main body
epsfig{file=filename.eps, width=10cm,
height=9cm, angle=90}
Creating EPS - Use xv and/or xfig.
MS Power Point, save as GIF and convert to
EPS.
32. usepackage{graphicx}
begin{figure}[h]
centering
captionsetup{justification=centering}
includegraphics[width=85mm]{img-1}
caption{Illustration of the iteration process
of building a full tree.The firts 5 iteration of
DURT.}
label{fig-DURT}
end{figure}
33. Put simple equation between two $
$t=0$
$E=mc^2$
$n^{n-1}$
34. You need an equation by itself.That is also
numbered.You do this with
begin{equation}
frac{1}{N} sum_{i=1}^{n} frac{2N_i}{k_i*(k_i-1)}
end{equation}
If you wish to leave it unnumbered simply put
an asterisk at the end of the word equation.
begin{equation*} equation end{equation}
35. usepackage{algorithm}
begin{algorithm}
caption{EDSS Algorithm}
begin{algorithmic}[1]
Procedure{EDSS}{$T$}Comment{$T$ is the number of
iterations}
While{$tnot=T$}
State $tgetsT$
Statetextbf{Step 0:} Node "0" generated.
EndWhilelabel{euclidendwhile}
EndProcedure
end{algorithmic}
end{algorithm}
36. usepackage{algorithm}
begin{algorithm}
caption{EDSS Algorithm}
begin{algorithmic}[1]
Procedure{EDSS}{$T$}Comment{$T$ is the number of
iterations}
While{$tnot=T$}
State $tgetsT$
Statetextbf{Step 0:} Node "0" generated.
EndWhilelabel{euclidendwhile}
EndProcedure
end{algorithmic}
end{algorithm}
37. begin{figure}[h]
begin{tikzpicture}
begin{axis}[
%title={Clustering coefficient distribution in proposed model for N=15
andT=4},
xlabel={Clustering coefficient},
ylabel={Count},
xmin=0, xmax=1.2,
ytick={1,2,3,4,5},
….
]
addplot[
label{plot:CC-distribution}
end{figure}
38. Ref {Label} -> Reference to Figure, Section,
Equation and etc.
Ref{sec:introduction}
Cite{Label} -> Cite an article listed in
Bibliographgy
cite{newman-2000}
39. begin{thebibliography}{}
bibitem[Come95]{Come95} Comer,
D. E., {it Internetworking withTCP/IP:
Principles, Protocols and Architecture},
volume 1, 3rd edition. Prentice-Hall,
1995.
end{thebibliography}
40. 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}
44. UNIX based systems
xdvi, ghostview, fixps, emacs with latex/bibtex
support.
Windows 98/NT
Ghostview, Acrobat Distiller, Acrobat Reader,
ScientificWorkplace (not the best), the Bibtex
viewer is good. Paint Shop Pro, Latex and Emacs
45. Download XeTeX from
https://sourceforge.net/projects/xetex/
Or farsixetex
46. Beamer
Beamer is a LaTeX document class for creating
slides for presentations.
Beamer provides the ability to make "handouts“
Powerdot
Powerdot is a LaTeX class for making
professional-looking presentation slides.
47. Latex is optimal for master and phd thesis?
Mathematical formulae are easy.
Use bibtex search engines
Consider converting Postscript files to PDF
(more widespread inWindows world) and to
conserve space.
48. http://www.miktex.org/
http://www.toolscenter.org/
http://www.ocf.berkeley.edu/~jjlin/latex/
http://en.wikibooks.org/wiki/LaTeX
Latex math symbols
http://
web.ift.uib.no/Fysisk/Teori/KURS/WRK/TeX/symALL.h
LaTex project page
http://www.latex-project.org/
Google is your friend…
49. http://www.miktex.org/
http://www.toolscenter.org/
http://www.ocf.berkeley.edu/~jjlin/latex/
http://en.wikibooks.org/wiki/LaTeX
Latex math symbols
http://
web.ift.uib.no/Fysisk/Teori/KURS/WRK/TeX/symALL.h
LaTex project page
http://www.latex-project.org/
Google is your friend…
amsmath
It contains the advanced math extensions for LaTeX. The complete documentation should
be in your LaTeX distribution; the file is called amsdoc, and can be dvi or pdf. For more
information, see the chapter about Mathetics.
amssymb It adds new symbols in to be used in math mode.
amsthm
It introduces the proof environment and the theoremstyle command. For more information see
the Theoremssection.
array
It extends the possibility of LaTeX to handle tables, fixing some bugs and adding new features.
Using it, you can create very complicated and customized tables. For more information, see
the Tables section.
babel
It provides the internationalization of LaTeX. It has to be loaded in any document, and you have
to give as an option the main language you are going to use in the document. For more
information see the Internationalization section.
biblatex Advanced bibliography handling. It is the package to use for writing a thesis.
bm
Allows use of bold greek letters in math mode using the bm{...} command. This supersedes
the amsbsy package.
booktabs
provides ex-tra com-mands as well as be-hind-the-scenes op-ti-mi-sa-tion for producing tables.
Guide-lines are given as to what con-sti-tutes a good ta-ble in the package documentation.
caption Allows customization of appearance and placement of captions for figures, tables, etc.
cancel
Provides commands for striking out mathematical expressions. The syntax is
cancel{x} or cancelto{0}{x}
chemmacros Part of a bundle to typeset chemistry easily and consistent.
changepage To easily change the margins of pages. The syntax is
enumitem Adds support for arbitrarily-deep nested lists (useful for outlines). See List Structures.