Latex
See Latex Packages
Tips
- Use a non-breaking space (
~
) to avoid separation of words on page break. - Use computer modern (default) font for latex. Or palantino or with math font euler.
Source: Stefan Huber – University Professor, FH SBG
How to’s
Latex Math
- Floor
\lfloor{a}\rfloor
to display und Ceiling\lceil{b}\rceil
to display
How to add Hyperlinks
\usepackage{hyperref}
\begin{equation}
y=(u+1)^2
\label{eq:test}
\end{equation}
This is my reference~\ref{eq:test}.
How to add Listings
\begin{lstlisting}[
language=C
label={lst:code},
caption={Source Code in C},
% float=h,
% captionpos=b
]
my code here ...
\end{lstlisting}
Or include a file
\lstinputlisting[
language=C
caption={Bla},
label={lst:lb01}
]{file.c}