From 01b2f1ee84f71612dd9cdd0a59d26c3f34d8b0a5 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Sun, 31 Aug 2014 16:36:30 +0200 Subject: [PATCH 1/1] Initial commit Basic file structure created with makefiles and gitignore file. In script.tex and in syntax.tex are some examples for beamer, furthermore you can look at http://en.wikibooks.org/wiki/LaTeX/Presentations#The_Beamer_package for a comprehensive tutorial for beamer. --- .gitignore | 8 ++++++++ README.md | 3 +++ part1/Makefile | 8 ++++++++ part1/basis.tex | 0 part1/exit.tex | 0 part1/part1.tex | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ part1/script.tex | 9 +++++++++ part1/stream.tex | 0 part1/syntax.tex | 6 ++++++ part2/Makefile | 8 ++++++++ part2/part2.tex | 13 +++++++++++++ 11 files changed, 105 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 part1/Makefile create mode 100644 part1/basis.tex create mode 100644 part1/exit.tex create mode 100644 part1/part1.tex create mode 100644 part1/script.tex create mode 100644 part1/stream.tex create mode 100644 part1/syntax.tex create mode 100644 part2/Makefile create mode 100644 part2/part2.tex diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9a9ac1c --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +*.aux +*.log +*.nav +*.out +*.pdf +*.snm +*.toc +*.vrb diff --git a/README.md b/README.md new file mode 100644 index 0000000..0fc489f --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +Bash presentatie +================ +Requires LaTeX and Beamer to compile. diff --git a/part1/Makefile b/part1/Makefile new file mode 100644 index 0000000..f9f8d0d --- /dev/null +++ b/part1/Makefile @@ -0,0 +1,8 @@ +SHELL:=/bin/bash + +all: + pdflatex part1.tex + pdflatex part1.tex + +clean: + rm -v part1.{pdf,aux,log,nav,out,snm,toc,vrb} diff --git a/part1/basis.tex b/part1/basis.tex new file mode 100644 index 0000000..e69de29 diff --git a/part1/exit.tex b/part1/exit.tex new file mode 100644 index 0000000..e69de29 diff --git a/part1/part1.tex b/part1/part1.tex new file mode 100644 index 0000000..03b2386 --- /dev/null +++ b/part1/part1.tex @@ -0,0 +1,50 @@ +\documentclass{beamer} + +% Voor het weergeven van code, we moeten maar even kijken naar de precieze +% stijl opties die we willen. +\usepackage{listings} +\lstset{ + language=bash, + basicstyle=\footnotesize, + breaklines=true, + tabsize=2, + breakatwhitespace=true, + showspaces=false +} +\lstdefinestyle{bashregel}{ + frame=L +} +\lstdefinestyle{bashscript}{ + numbers=left, + frame=single +} + +\author{Felix Stegerman \and Mart Lubbers} +\title{Bash workshop part 1} +\date{\today} + +\begin{document} +\begin{frame} + \maketitle +\end{frame} + +\begin{frame} +\tableofcontents +\end{frame} + +\section{Syntax} +\input{syntax.tex} + +\section{Exit codes} +\input{exit.tex} + +\section{Basis commando's} +\input{basis.tex} + +\section{Pipes en streams} +\input{stream.tex} + +\section{Scripten} +\input{script.tex} + +\end{document} diff --git a/part1/script.tex b/part1/script.tex new file mode 100644 index 0000000..8959a0b --- /dev/null +++ b/part1/script.tex @@ -0,0 +1,9 @@ +\begin{frame}[fragile] + \begin{lstlisting}[style=bashscript] +foo() { + echo "bar" +} + +barbaz=$(foo | sed 's/r/z/g') + \end{lstlisting} +\end{frame} diff --git a/part1/stream.tex b/part1/stream.tex new file mode 100644 index 0000000..e69de29 diff --git a/part1/syntax.tex b/part1/syntax.tex new file mode 100644 index 0000000..6ef5ccd --- /dev/null +++ b/part1/syntax.tex @@ -0,0 +1,6 @@ +% een frame moet fragile als het listings bevat +\begin{frame}[fragile] + \begin{lstlisting}[style=bashregel] +$ cd .. + \end{lstlisting} +\end{frame} diff --git a/part2/Makefile b/part2/Makefile new file mode 100644 index 0000000..130eff6 --- /dev/null +++ b/part2/Makefile @@ -0,0 +1,8 @@ +SHELL:=/bin/bash + +all: + pdflatex part2.tex + pdflatex part2.tex + +clean: + rm -v part2.{pdf,aux,log,nav,out,snm,toc,vrb} diff --git a/part2/part2.tex b/part2/part2.tex new file mode 100644 index 0000000..a59a6f0 --- /dev/null +++ b/part2/part2.tex @@ -0,0 +1,13 @@ +\documentclass{beamer} + +\author{Felix Stegerman \and Mart Lubbers} +\title{Bash workshop part 2} +\date{\today} + +\begin{document} +\begin{frame} + Hello world! +\end{frame} + +\end{document} + -- 2.20.1