Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % @author Thomas <mail@t131.us.to>
- % @license Public Domain
- % Verwendung z.B. \imagewdesc[width=250px]{code2flow_process.png}{Blockdiagramm der process-Funktion} (das zwischen den eckigen Klammern ist das styling und kann man weglassen, dann ist es 300px breit)
- % Referenzieren auf die Abbildung kann man dann damit: \ref{code2flow_process.png}
- \newcommand{\imagewdesc}[3][width=300px]{
- \begin{figure}[h!]
- \centering
- \includegraphics[#1]{#2}
- \caption{#3}
- \label{#2}
- \end{figure}
- }
- % @author Thomas <mail@t131.us.to>
- % @license Public Domain
- % Verwendung wie \imagewdesc, nur ist das Bild gedreht ...
- \newcommand{\imagewdesc_sideway}[3][width=300px]{
- \begin{sidewaysfigure}[!htbp]
- \centering
- \includegraphics[#1]{#2}
- \caption{#3}
- \label{#2}
- \end{sidewaysfigure}
- }
- % FΓΌr das gscheite Formatieren von Quellcode
- % @source: https://tex.stackexchange.com/questions/68091/how-do-i-add-syntax-coloring-to-my-c-source-code-in-beamer
- % \begin{lstlisting}
- % Quellcode
- % \end{lstlisting}
- \usepackage{listings}
- \lstset{language=C++,
- basicstyle=\ttfamily,
- keywordstyle=\color{blue}\ttfamily,
- stringstyle=\color{red}\ttfamily,
- commentstyle=\color{green}\ttfamily,
- morecomment=[l][\color{magenta}]{\#},
- breaklines=true
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement