Latex

Tips

  • How to use Latex References
  • Fonts: Use computer modern (default) font for latex.
  • Use a non-breaking space (~) to avoid separation of words on page break. Or palantino or with math font euler.

Latex Math

  • Floor \lfloor{a}\rfloor to display und Ceiling \lceil{b}\rceil to display

Reference Equations

\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}