graphics, listings en algorithmen toegevoegd
[linuxnijmegen-latex.git] / lat.tex
diff --git a/lat.tex b/lat.tex
index cfb3a27..e711cbe 100644 (file)
--- 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