started off
authorMart Lubbers <mart@martlubbers.net>
Thu, 3 Mar 2016 19:32:23 +0000 (20:32 +0100)
committerMart Lubbers <mart@martlubbers.net>
Thu, 3 Mar 2016 19:32:23 +0000 (20:32 +0100)
.gitignore [new file with mode: 0644]
Makefile
p.tex
pre.tex

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..85b9c3b
--- /dev/null
@@ -0,0 +1,9 @@
+*.aux
+*.fmt
+*.log
+*.nav
+*.out
+*.pdf
+*.snm
+*.toc
+*.vrb
index 2cfcfb7..939e94e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,11 +7,11 @@ DOCUMENT:=p
 all: $(DOCUMENT).pdf
 
 %.pdf: %.tex %.fmt 
-       $(LATEX) $(basename $@)
-       $(LATEX) $(basename $@)
+       $(LATEX) -shell-escape $(basename $@)
+       $(LATEX) -shell-escape $(basename $@)
 
 %.fmt: pre.tex
-       $(LATEX) -ini -jobname="$(basename $@)" "&$(LATEX) $<\dump"
+       $(LATEX) -ini -shell-escape -jobname="$(basename $@)" "&$(LATEX) $<\dump"
 
 clean:
        $(RM) -v $(addprefix $(DOCUMENT)., aux fmt log nav out pdf snm toc)
diff --git a/p.tex b/p.tex
index 44d82bf..b5635a4 100644 (file)
--- a/p.tex
+++ b/p.tex
@@ -2,8 +2,31 @@
 \begin{document}
 \frame{\titlepage}
 
+\section{Introduction}
 \begin{frame}
-       \frametitle{Hello world}
-       hoi
+       \frametitle{What is Python}
+       \begin{itemize}
+               \item Interpreted
+               \item Duck-typing
+               \item High-level
+               \item Multi-paradigm
+               \item \ldots
+       \end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+       \frametitle{How to start}
+       \begin{block}{Interpreter}
+
+       \end{block}
+
+       \begin{block}{\texttt{.py} files}
+               \begin{minted}{python}
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+
+print('hello world') #This is a comment
+               \end{minted}
+       \end{block}
 \end{frame}
 \end{document}
diff --git a/pre.tex b/pre.tex
index 19a6148..778315f 100644 (file)
--- a/pre.tex
+++ b/pre.tex
@@ -1,5 +1,7 @@
 \documentclass{beamer}
 
+\usepackage{minted}
+
 \title[Python]{The Python programming language}
 \author[Lubbers]{M. Lubbers}
 \date[LUGN43]{\today}