Escolar Documentos
Profissional Documentos
Cultura Documentos
Fiona Shearer
Presentation Overview
Class files and Macro Packages Special Characters and LaTeX Commands Lots of Examples
What is LaTeX?
Pronounced: Lay-tech S/W package that uses the TeX typesetting engine TeX: computer program released in 1982 by Donald E. Knuth and written for typesetting digital documents [1] For more info see [2]
LaTeX Tutorial
MS Word vs LaTeX
LaTeX Tutorial
Typeset Document
hello_world.pdf
LaTeX
LaTeX Tutorial
Overview of LaTeX
Class File
Defines what your document will look like Selected by \documentclass command
\documentclass[options]{class_name}
Some examples:
\documentclass[]{amsart}
LaTeX Tutorial
Macro Packages
\usepackage[options]{package_name}
Examples:
cite.sty graphicx.sty geometry.sty url.sty
May 11th, 2004
Special Characters
&
$\backslash$
LaTeX Tutorial
10
Consecutive whitespace characters (blank or tab) are treated as one space. Paragraphs must be separated by at least one line in the .tex file. Comments can be added using the % character. Any text on a line after % will be ignored by the TeX compiler.
LaTeX Tutorial
11
A Quick Review
LaTeX
LaTeX Tutorial
12
Commands
Section headings Labels and Cross-References Figures Tables Equations Listing Options Miscellaneous: newpage, pagestyle, include Bibliographic Referencing
LaTeX Tutorial 13
Section Headings
\section{Section Name} \subsection{Sub-section Name} \subsubsection{Sub-sub-section Name} \tableofcontents \appendix OR using the appendix.sty package: \begin{appendices} \end{appendices}
Tired of re-numbering your section or figure numbers in MS Word by hand? Solution: Each section, figure, table, equation, and so on can have its own label:
\label{label_name}
\ref{label_name}
LaTeX assigns the correct section, figure, table and equation numbers to the labels when you compile the document.
May 11th, 2004 LaTeX Tutorial 15
Label Example
LaTeX Tutorial
16
Figures
Require graphicx.sty package Figure type: eps (encapsulated postscript) Sample code:
\begin{figure}[options] \includegraphics[options]{figure_name.eps} \caption{Figure Caption would go here} \label{fig_label} \end{figure}
LaTeX Tutorial
17
Example
Warning: ind.eps must exist in the same file directory as the TeX file, unless \graphicspath{} command is used.
May 11th, 2004 LaTeX Tutorial 18
Tables
Tables- continued
column_scheme
c, l, or r represent centered, left-justified or right-justified columns |(vertical bar) represents a vertical column line Example: |c|c|c| represents three centered columns
Text in the rows is entered with the&character used to separate the columns \\ indicates a line break \hline adds a horizontal line Example: \hline A & B & C \\ \hline represents a row with three entries and lines above & below
LaTeX Tutorial 20
row_info
Example
Equations
Example
Makes Eqn numbers appear on the right side of the page
LaTeX Tutorial
23
Listing Options
LaTeX Tutorial
24
Miscellaneous Commands
Quotation Marks:
Bibliographic Referencing
BIBTeX: manages bibliographic databases Database files have .bib extension Example of bibliographic entry:
@book{RFICtext, author title publisher address year }; = = = = = "J. Rogers and C. Plett", "Radio Frequency Integrated Circuit Design", "Artech House, Inc", "Boston, MA", "2003"
IEEEtran.bst [5]
LaTeX Tutorial 26
Referencing - continued
\cite{RFICtext}
Numbers are automatically assigned in the correct order IEEEtran.bst bibliography style file RFIC.bib must have an entry labeled RFICtext
May 11th, 2004 LaTeX Tutorial 27
Open .tex file and .bib file (if needed) Edit as required Click on TeXify button to compile Watch log file window to check for errors Click on dvi pdf button Click on the Adobe symbol
Demo
LaTeX Tutorial
30
References
Go to www.google.com and click on the Groups tab Type in some key words related to your question (include TeX) Click on the Google Search button and you should get some good hits
References:
LaTeX Tutorial
31
Conference and JournalTemplates for the IEEEtran class file can be downloaded from [4]. LaTeX templates for the amsart class file are available upon request.
LaTeX Tutorial
32