Documente Academic
Documente Profesional
Documente Cultură
LaTeX Workshop
Andrew Conant & Abdalla Abou Jaoude
January 26th, 2015
What is LaTeX?
Document preparation system for publication of scientific
documents
TeX language
Not a word processor, but can be used in place of
Microsoft Word
Philosophy is to leave formatting to the compiler and
content to the user
TeX input
LaTeX editor
LaTeX compiler
PDF Output
LaTeX Editors
Popular LaTeX Editors
TeXmaker
TeXstudio
TeXworks
AUCTex
TeXnicCenter
Notepadd ++
Comparison of editors
TeXmaker
\usepackage[option]{package1}
\begin{document}
\end{document}
Installing Packages
\usepackage{package name}
Should do it automatically with MikTeX
But if not
amsmath
array
fixes some bugs and allows you can create very complicated and
customized tables
booktabs
geometry
graphicx
multicol
secsty
\begin{abstract}
\end{abstract}
Sectioning
\section{}
\subsection{}
\subsubsection{}
\tableofcontents
Can use \hrule and \bigskip to separate it with horizontal lines
Text Formatting
Numbered Lists
\begin{enumerate}
\item First item here
\item Second item here
\end{enumerate}
Can nest in each other for outlining
\begin{itemize} for bulleted lists
Figures
\begin{figure}[h!]
\centering
\includegraphics[scale=0.7]{file_name.png}
\caption{Insert caption here}
\end{figure}
**Must be in the same directory as your .tex file**
\label{fig:coolgraph}
\ref{fig:coolgraph} will grab the figure number and put it in the text
Tables
\begin{table}[position specifier]
[h] = here, [t] = top of page, [b] = bottom of page, [!] = places it where you
want it
\begin{tabular}{| l | c | c | r |}
Left justified (l), center justified (c), right justified (r)
| makes a vertical line that separates the columns
1 & 2 & 3 \\
5 & 6 & 7 \\
\hline inserts a horizontal line in between rows
Tables (continued)
\multicolumn{number}{*,l,c,r}{text}
\multirow{number} {*,l,c,r}{text}
Excel2LaTeX will convert Excel data to TeX table
\caption{name of table}
\label{tab:cooltable}
\ref{tab:cooltable} will grab the figure number and put it in the
text
Equations
$ x + y = z $ places equation inline
$$ a + b = c $$ places equation in new line, automatically
centered
\begin{eqnarray}
Places equation in new line and numbers it
Can put multiple equations but only reference the first one
Equations (continued)
Exponents (^) and subscripts (_)
x^2 is x2 but x^10 will read as x10 you must use x^{10}
\sigma_{abs}
\frac{numerator}{denominator}
Multiple Columns
\usepackage{multicols}
\begin{multicols}{2}
\setlength{\columnsep}{1cm}
Miscellaneous Commands
Equations
Text
Sectioning
\pm = plus-minus
\begin{titlepage}
\leftarrow, \rightarrow
\begin{quote}
\pageref{marker}
\sqrt{}, \sqrt[n]{}
\uppercase{}
\pagebreak
\overrightarrow{} (vector)
\tiny, \small,
\large, \huge
Useful Links
Questions?