X-Git-Url: https://git.martlubbers.net/?p=linuxnijmegen-latex.git;a=blobdiff_plain;f=lat.tex;h=e711cbe30d1d4e0b97c2949cdca886d735814f89;hp=cfb3a2748f0d6574e4a4cc623db213e769e730d0;hb=8e36b7303c4150c8e6906d140f8347c9d54d6e11;hpb=ebd573f98c7041d7b2fe55c33d772bda32039fe4 diff --git a/lat.tex b/lat.tex index cfb3a27..e711cbe 100644 --- a/lat.tex +++ b/lat.tex @@ -340,18 +340,112 @@ document \section{Uitbreidingspakketten} \subsection{Plaatjes} +\begin{frame}[fragile] + \frametitle{Plaatjes invoegen} + \framesubtitle{preamble,document} + \begin{lstlisting}[caption=preamble] +\usepackage{graphicx} + \end{lstlisting} + \begin{lstlisting}[caption=document] +\includegraphics[width=80px]{tux.png} + \end{lstlisting} + \includegraphics[width=80px]{tux.png} +\end{frame} + +\begin{frame}[fragile] + \frametitle{Figuren} + \framesubtitle{document} + \begin{lstlisting} +\begin{figure}[h] + \centering + \includegraphics[width=80px]{tux.png} + \caption{Dit is tux} +\end{figure} + \end{lstlisting} + \begin{figure}[h] + \centering + \includegraphics[width=80px]{tux.png} + \caption{Dit is tux} + \end{figure} +\end{frame} \subsection{Broncode} +\begin{frame}[fragile] + \frametitle{Broncode} + \framesubtitle{preamble,document} + \begin{lstlisting} +\usepackage{listings} + \end{lstlisting} + \lstinputlisting[caption=document]{broncode.tex} + \lstinputlisting[language=c,caption=uitvoer]{broncode.c} +\end{frame} -\subsection{Presentaties} +\begin{frame} + \frametitle{Nog meer broncode} + \begin{itemize} + \item\texttt{\textbackslash lstinputlisting} + \item\texttt{\textbackslash lstset} + \item\texttt{breaklines} + \item\texttt{numbers=left} + \item\texttt{frame=L} + \item\texttt{minted} + \item\ldots + \end{itemize} +\end{frame} + +\subsection{Algorithmen} +\begin{frame}[fragile] + \frametitle{Algorithmen} + \framesubtitle{preamble,document} + \begin{lstlisting} +\usepackage{algorithm2e} + \end{lstlisting} + \begin{lstlisting} +\begin{algorithm}[H] +\SetKwProg{Def}{def}{:}{end} +\Def{replace\_or\_register\_dawg(state)}{ + child := last\_child(state)\; + \If{has\_children(child)}{ + replace\_or\_register(child)\; + } + \eIf{\exists q': q\equiv q'}{ + last\_child(state)\; + delete(child)\; + }{ + register.add(child)\; + } +} +\end{algorithm} + \end{lstlisting} +\end{frame} + +\begin{frame} + \frametitle{Algorithmen deel twee} + \begin{algorithm}[H] + \SetKwProg{Def}{def}{:}{end} + \Def{replace\_or\_register\_dawg(state)}{% + child := last\_child(state)\; + \If{has\_children(child)}{% + replace\_or\_register(child)\; + } + \eIf{$\exists q': q\equiv q'$}{% + last\_child(state)\; + delete(child)\; + }{% + register.add(child)\; + } + } + \end{algorithm} +\end{frame} \subsection{En nog veel meer\ldots} \begin{frame} \frametitle{En nog veel meer\ldots} \begin{itemize}[<+->] - \item Algorithmen + \item Presentaties \item Bibliografie\"en \item Diagrammen + \item Tabellen \item Chemische structuurformules \item Linguistische symbolen \item Precompiled preamble