Package imports: new Austrian orthography and unicode support
Document environment
\documentclass[10pt,a4paper]{scrartcl}
\usepackage[naustrian]{babel}
\usepackage[utf8]{inputenc}
\begin{document}\tableofcontents
Here comes the document's content.
This is a second paragraph.
\end{document}
Compiling to PDF
LaTeX documents need to be compiled
Different output formats supported, such as PDF
pdflatex filename
Proper punctuation
Getting quotation marks right can be tricky
Depends on loaded language (babel package)
en/em-dash (Gedankenstrich): -- and --- respectively
``English `quotation' marks.'' (“English ‘quotation’ marks.”)
"`Mit \glq naustrian\grq{} sieht das so aus"'. („Mit ‚naustrian‘ sieht das so aus“.)
Simple markup
Chapters, sections, subsections
Emphasize
Underlining passages is frowned upon
\section{Markup}
Short sentence with \emph{markup}.
\subsection{Emphasize}
\emph{Markup can\emph{even} be nested}.
Lists
Bulleted and numbered and definition lists
\begin{enumerate}\item First item
\end{enumerate}\begin{itemize}\item Bulleted item
\end{itemize}
Quickly import source code listings into your document
Basic syntax highlighting support
Define different settings with \lstdefinestyle
\usepackage{listings}
\lstset{%
basicstyle=\footnotesize,%
showspaces=false,showstringspaces=true,%
numbers=left,tabsize=2,breaklines%
keywordstyle=…,commentstyle=…,stringstyle=…,identifierstyle=…
}
\lstinputlisting[language=C++,caption={Source code included from file}]{path/to/file.cpp}
\begin{lstlisting}[language=Java,caption={Source code in tex file}]
String s = "Code can be marked up without including it from a file.";
\end{lstlisting}
Short source code snippets can even be inlined: \lstinline{++i;}
\begin{figure}\centering\includegraphics{path/to/file}
\caption{This is a sample figure}
\label{fig:sample}
\end{figure}\begin{table}\caption{This is a sample table}
\label{tab:sample}
\begin{tabular}{…}
% table content
\end{tabular}\end{table}
Cross-Referencing
Passages can be labeled to be referenced later
\autoref command in package hyperref
\usepackage[colorlinks]{hyperref}
\begin{document}\renewcommand{\figureautorefname}{Abbildung}
\renewcommand{\tableautorefname}{Tabelle}
\label{fig:abc}
See \autoref{fig:abc} for more information.
\end{document}
List of *
Autogenerated lists with links to all figures
or tables
… or listings
\listoffigures\listoftables\lstlistoflistings
Bibliography management
Manage a list of your sources
Allows easy citation and referencing
Separate program (BibTeX)
Workflow: pdflatex → bibtex → pdflatex → pdflatex
@book{bibtexkey,
title={LaTeX for dummies},
author={First AuthorandSecond Author},
year={2012},
publisher={O'Reilly}
}