Initial commit master
authorMart Lubbers <mart@martlubbers.net>
Sun, 31 Aug 2014 14:36:30 +0000 (16:36 +0200)
committerMart Lubbers <mart@martlubbers.net>
Sun, 31 Aug 2014 14:36:30 +0000 (16:36 +0200)
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 [new file with mode: 0644]
README.md [new file with mode: 0644]
part1/Makefile [new file with mode: 0644]
part1/basis.tex [new file with mode: 0644]
part1/exit.tex [new file with mode: 0644]
part1/part1.tex [new file with mode: 0644]
part1/script.tex [new file with mode: 0644]
part1/stream.tex [new file with mode: 0644]
part1/syntax.tex [new file with mode: 0644]
part2/Makefile [new file with mode: 0644]
part2/part2.tex [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..9a9ac1c
--- /dev/null
@@ -0,0 +1,8 @@
+*.aux
+*.log
+*.nav
+*.out
+*.pdf
+*.snm
+*.toc
+*.vrb
diff --git a/README.md b/README.md
new file mode 100644 (file)
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 (file)
index 0000000..f9f8d0d
--- /dev/null
@@ -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 (file)
index 0000000..e69de29
diff --git a/part1/exit.tex b/part1/exit.tex
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/part1/part1.tex b/part1/part1.tex
new file mode 100644 (file)
index 0000000..03b2386
--- /dev/null
@@ -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 (file)
index 0000000..8959a0b
--- /dev/null
@@ -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 (file)
index 0000000..e69de29
diff --git a/part1/syntax.tex b/part1/syntax.tex
new file mode 100644 (file)
index 0000000..6ef5ccd
--- /dev/null
@@ -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 (file)
index 0000000..130eff6
--- /dev/null
@@ -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 (file)
index 0000000..a59a6f0
--- /dev/null
@@ -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}
+