latex intro s_dutta_v2
TRANSCRIPT
An Introduction to
Soumyo [email protected] Library & Information CenterGraduate Library User Education Workshop Series
2
OutlineLaTeX advantagesLaTeX IDE Parts of LaTeX documentExamplesGeorgia Tech ThesisResources
3
Why LaTeX is not WYSIWYG*
◦ Manuscript/Typesetting program
Easy to handle large documents◦ Break-up chapters/sections into separate
documents
◦ Easily handle cross-references/citations across parts (almost impossible with Word)
References◦ Cite as you go
◦ Reference generated/sorted automatically
Equations◦ Professional look
◦ Easy to cite
◦ Easy subequations/Math type in text
Formatting◦ Formatting of group of text very easy to change
◦ Change paper from Style A (for a conference) to Style B (for GT Thesis) using the same LaTeX code* What You See Is What You Get
4
Why LaTeX is not WYSIWYG*
◦ Manuscript/Typesetting program
Easy to handle large documents◦ Break-up chapters/sections into separate
documents
◦ Easily handle cross-references/citations across parts (almost impossible with Word)
References◦ Cite as you go
◦ Reference generated/sorted automatically
Equations◦ Professional look
◦ Easy to cite
◦ Easy subequations/Math type in text
Formatting◦ Formatting of group of text very easy to change
◦ Change paper from Style A (for a conference) to Style B (for GT Thesis) using the same LaTeX code* What You See Is What You Get
Word example of in text equations
5
LaTeX IDE* – TeXnicCenter
* Integrated Development Environment
Output format
Build (Ctrl + F7)
View Output (F5)
Errors
Warnings
Bad Box
6
LaTeX IDE – Installing Packages
7
Parts of LaTeX documentFile saved
as .texDocument
parts:◦ Document class◦ Packages◦ Title block◦ Start/end code◦ Specialized
section◦ Bibliography
8
Parts of LaTeX documentFile saved
as .texDocument
parts:◦ Document class [option
]{type}
option:• Font size• Papersize
type:• Article• Book• Letter• Report• {.cls}
• Mandatory for all documents
9
Parts of LaTeX documentFile saved
as .texDocument
parts:◦ Packages
{type}
• After document class• Not mandatory for all documents• Allows you to use commands not included
with LaTeX distribution (e.g. subfigures)
[option]
10
Parts of LaTeX documentFile saved
as .texDocument
parts:◦ Bibliography
{style}
• Usually before \end{document}• Creates bibliography at that point in the
document• Not mandatory for all documents
style:• .bst• Style
downloaded from Internet
• Various citation styles (e.g. Chicago, IEEE, etc.){reference
file}
reference file:• .bib• Your citation info• Use Jabref or by-
hand
11
Parts of LaTeX documentImportant code characters
◦ Start/end characters \begin{} … \end{} { [ ( ) ] }
◦ Math text: damping sum $(C_{mq}+C_{m\alpha})$
◦ Commands start with \◦ Comments %
Dividing commands (no need for start/end)◦ \chapter{}◦ \section{} \subsection{} \subsubsection{}
{Name of Section}
12
Example # 1: Lists• itemize or enumerate
Blank line in LaTeX is not equal to blank line in
text
13
Example # 1: Lists (Practice)
14
Example # 2: Figures• graphicx for \includegraphics• subfigure for \subfigure
• \includegraphics[scaling]{location of graphic}
• \subfigure[subcaption]{figure information}
\ref{keyword} refers back to \label{keyword}~ = automatically adds space between words
15
Example # 2: Figures (Practice) Go to:
◦ http://www.gatech.edu/about save image
◦ http://www.gatech.edu/sports save image
16
Example # 2: Figures (Practice) Go to:
◦ http://www.gatech.edu/about save image
◦ http://www.gatech.edu/sports save image
17
Example # 3: Tables
18
Example # 3: Tables
table and tabular
\multicolumn[num col]{format}{text}
19
Example # 4: Equations
• amsmath for greek symbols, math, equations
equation and subequation
align and &
20
Example # 5: References
Manual entriesor
\bibliography{.bib} \bibliographystyle{.b
st}
21
Combined Practice
22
Combined Practice
23
Georgia Tech ThesisDownload thesis template
◦ http://gradadmiss.gatech.edu/thesis/templates.php (Updated August 2010)
What’s included◦ example-thesis.tex – main TeX
file◦ gatech-thesis.cls – class file◦ example-thesis.bib –
bibliography fileFor more information visit
◦ http://gradadmiss.gatech.edu/thesis.php
24
Georgia Tech ThesisChapter organization
25
Nomenclature◦makeindex.exe
Georgia Tech Thesis
Sets-up TeXnicCenter to run makeindex automatically
26
Georgia Tech Thesis• Define nomenclature and nomunit
commandsPackages: nomenclAlso need ifthen to define commands
\makenomenclatureCreates nomenclature before document
Creating a new LaTeX command:\nomenclature[type]{symbol}{text}\nomunit{text}
27
Georgia Tech Thesis
Example of usage of \nomenclature and \nomunit in code and output
28
Resources LaTeX 2 Cheat Sheet Math symbols
◦ amath.colorado.edu/documentation/LaTeX/Symbols.pdf Examples from previous GT LaTeX classes
◦ www.prism.gatech.edu/~lo24/LaTeX/◦ www.math.gatech.edu/~keller/latex/
Wikibooks◦ http://en.wikibooks.org/wiki/LaTeX
Google Group: LaTeX Users Group Google: “LaTeX” + (margins, figures, floats, etc.)
29
Example codes from this classhttp://www.prism.gatech.edu/
~sdutta8/latexDownload
SDutta_Latex_Example_Code.zipUnzip file