From: Mart Lubbers Date: Mon, 7 Dec 2015 09:43:40 +0000 (+0100) Subject: update met bijna alle basisdingen klaar X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=2f282b86276e68fb5c6a70cf281f371926f69a7a;p=linuxnijmegen-latex.git update met bijna alle basisdingen klaar --- diff --git a/.gitignore b/.gitignore index 74f5da1..85b9c3b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ *.pdf *.snm *.toc +*.vrb diff --git a/Makefile b/Makefile index 143bdb8..1c78c2c 100644 --- a/Makefile +++ b/Makefile @@ -13,4 +13,4 @@ all: $(DOCUMENT).pdf $(LATEX) -ini -jobname="$(basename $@)" "&$(LATEX) $<\dump" clean: - $(RM) -v $(addprefix $(DOCUMENT).,fmt aux bbl blg dvi log out toc pdf snm nav) + $(RM) -v $(addprefix $(DOCUMENT).,fmt aux bbl blg dvi log out toc pdf snm nav vrb) diff --git a/lat.tex b/lat.tex index fa818d6..d4e526c 100644 --- a/lat.tex +++ b/lat.tex @@ -15,12 +15,232 @@ \section{Document structuur} \subsection{Titelpagina en inhoudsopgave} +\begin{frame}[fragile] + \frametitle{Broncode structuur} + \begin{lstlisting} +\documentclass[opt1,...,optn]{type} +... +preamble +... +\begin{document} +% Dit is een comment +... +document +... +\end{document} + \end{lstlisting} +\end{frame} + +\begin{frame} + \frametitle{Een greep uit de opties en typen} + \begin{block}{Opties} + \begin{itemize} + \item\texttt{a4paper} + \item\texttt{twocolumn} + \item\texttt{twoside} + \item\texttt{10pt} + \item\texttt{12pt} + \item\ldots + \end{itemize} + \end{block} + + \begin{block}{documenttypes} + \begin{itemize} + \item\texttt{article} + \item\texttt{book} + \item\texttt{letter} + \item\ldots + \end{itemize} + \end{block} +\end{frame} + +\begin{frame}[fragile] + \frametitle{Type commandos} + \begin{lstlisting} +\begin{commando}[opties] +% Dit is allemaal onder invloed van commando +\end{commando} + +\commando[opties]{ +% Dit is allemaal onder invloed van commando +} + +{\commando +% Dit is meestal het geval bij text decoraties +} + \end{lstlisting} +\end{frame} + +\begin{frame}[fragile] + \frametitle{Inhoudsopgave en titelpagina} + \framesubtitle{preamble en document} + \begin{block}{Document info en titelpagina} + \begin{lstlisting}[caption=preamble] +\author{Mart Lubbers} +\title{Mooie titel} +\date{\today} + \end{lstlisting} + + \begin{lstlisting}[caption=document] +\maketitle + \end{lstlisting} + \end{block} + + \begin{block}{Inhoudsopgave} + Automatisch gegenereerd van de hoofdstukken. + \begin{lstlisting} +\tableofcontents + \end{lstlisting} + \end{block} +\end{frame} \subsection{Secties, subsecties en paragrafen} +\begin{frame} + \frametitle{Secties} + \framesubtitle{document} + \begin{block}{Types} + \begin{tabular}{lll} + Commando & Diepte & Notitie\\ + \texttt{\textbackslash part\{naam\}} & $-1$ &\\ + \texttt{\textbackslash chapter\{naam\}} & $0$ & + niet in article\\ + \texttt{\textbackslash section\{naam\}} & $1$ &\\ + \texttt{\textbackslash subsection\{naam\}} & $2$ &\\ + \texttt{\textbackslash subsubsection\{naam\}} & $3$ &\\ + \texttt{\textbackslash paragraph\{naam\}} & $4$ & + niet in de inhoudsopgave\\ + \texttt{\textbackslash subparagraph\{naam\}} & $5$ & + niet in de inhoudsopgave\\ + \end{tabular} + \end{block} + + \begin{block}{Aparte inhoudsopgave text} + \begin{itemize} + \item \texttt{\textbackslash commando[inhoudsopgave]\{naam\}} + \item Automatische nummering + \end{itemize} + \end{block} +\end{frame} \subsection{Decoratie, symbolen en tekstgrootte} +\begin{frame} + \frametitle{Decoratie} + \framesubtitle{document} + + \begin{block}{Diverse types} + \begin{tabular}{ll} + \texttt{\textbackslash emph\{emphasis\}} & \emph{emphasis}\\ + \texttt{\textbackslash textit\{italic\}} & \textit{italic}\\ + \texttt{\textbackslash textbf\{bold\}} & \textbf{bold}\\ + \texttt{\textbackslash textsl\{slanted\}} & \textsl{slanted}\\ + \texttt{\textbackslash texttt\{monospace\}} & \texttt{monospace}\\ + \texttt{\textbackslash textsc\{smallcaps\}} & \textsc{smallcaps}\\ + \end{tabular} + \end{block} + + \begin{block}{Met pakketten nog veel meer mogelijk} + \begin{itemize} + \item strikethrough + \item underline + \item calligrafie + \item \ldots + \end{itemize} + \end{block} +\end{frame} + +\begin{frame} + \frametitle{Textgrootte} + \framesubtitle{document} + \begin{block}{Filosofie} + \begin{itemize} + \item \LaTeX{ }bepaalt, referentietabel aanwezig + \item absolute grootte alleen mogelijk met pakketten + \end{itemize} + \end{block} + + \begin{block}{Textgrootte} + \begin{tabular}{ll} + \texttt{\{\textbackslash tiny miniscuul\}} & + \tiny{miniscuul}\\ + \texttt{\{\textbackslash scriptsize bijzonder klein\}} & + \scriptsize{bijzonder klein}\\ + \texttt{\{\textbackslash footnotesize erg klein\}} & + \footnotesize{erg klein}\\ + \texttt{\{\textbackslash small klein\}} & + \small{klein}\\ + \texttt{\{\textbackslash normalsize normaal\}} & + \normalsize{normaal}\\ + \texttt{\{\textbackslash large aan de forse kant\}} & + \large{aan de forse kant}\\ + \texttt{\{\textbackslash Large groot\}} & + \Large{groot}\\ + \texttt{\{\textbackslash LARGE erg groot\}} & + \LARGE{erg groot}\\ + \texttt{\{\textbackslash huge bijzonder groot\}} & + \huge{bijzonder groot}\\ + \texttt{\{\textbackslash Huge gigantisch\}} & + \Huge{gigantisch} + \end{tabular} + \end{block} +\end{frame} + +\begin{frame} + \frametitle{Symbolen} + \framesubtitle{document} + \begin{block}{Symbolen} + \begin{itemize} + \item \texttt{\textbackslash usepackage[utf-8]\{inputenc\}} + \item \url{detexify.kirelabs.org} + \item Diakritische tekens staan er niet op + \item Veel cheatsheets beschikbaar + \end{itemize} + \end{block} + + \begin{block}{Diakritische tekens} + \begin{tabular}{llp{30pt}ll} + \texttt{\textbackslash \'{}o} & \'o & + \texttt{\textbackslash H\{o\}} & \H{o}\\ + \texttt{\textbackslash \"{}o} & \"o & + \texttt{\textbackslash c\{o\}} & \c{o}\\ + \texttt{\textbackslash \`{}o} & \`o & + \texttt{\textbackslash b\{o\}} & \b{o}\\ + \texttt{\textbackslash\textasciicircum o} & \^o & + \texttt{\textbackslash u\{o\}} & \u{o}\\ + \texttt{\textbackslash\textasciitilde o} & \^o & + \texttt{\textbackslash r\{o\}} & \r{o}\\ + \texttt{\textbackslash .o} & \.o & + \texttt{\textbackslash v\{o\}} & \v{o}\\ + \texttt{\textbackslash l} & \l & + \texttt{\textbackslash =o} & \=o\\ + \texttt{\textbackslash o} & \o\\ + \end{tabular} + \end{block} +\end{frame} \subsection{Lijsten en opsommingen} +\begin{frame} + \frametitle{Lijsten en opsommingen} + \framesubtitle{document} + \begin{block}{} + \begin{itemize} + \item Je kan lijsten maken van lijsten + \item Je kan met pakketten alles naar je hand zetten + \item Met \texttt{\textbackslash item} maak je items + \end{itemize} + \end{block} + + \begin{block}{itemize} + \begin{itemize} + \item Ongenummerde lijsten maken + \end{itemize} + \end{block} + + \begin{block}{enumerate} + \begin{itemize} + \item Genummerde lijsten maken + \end{itemize} + \end{block} +\end{frame} \subsection{Formules en tabellen} diff --git a/pre.tex b/pre.tex index aea92f0..61d6854 100644 --- a/pre.tex +++ b/pre.tex @@ -1,6 +1,10 @@ \documentclass{beamer} \usepackage[dutch]{babel} +\usepackage[labelformat=empty]{caption} +\usepackage{booktabs} +\usepackage{color} +\usepackage{listings} \usepackage{textgreek} \title[\LaTeX workshop]{\url{linuxnijmegen.nl} \LaTeX workshop} @@ -9,6 +13,15 @@ \author[Mart]{Mart Lubbers \footnote{\url{martlubbers.net}}} \date{\today} +\definecolor{mygreen}{rgb}{0,0.6,0} + +\lstset{% + language=[LaTeX]tex, + basicstyle=\small, + breaklines=true, + commentstyle=\color{mygreen} +} + \AtBeginSubsection[] { \begin{frame}