--- /dev/null
+*.aux
+*.fmt
+*.log
+*.nav
+*.out
+*.pdf
+*.snm
+*.toc
+*.vrb
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)
\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}
\documentclass{beamer}
+\usepackage{minted}
+
\title[Python]{The Python programming language}
\author[Lubbers]{M. Lubbers}
\date[LUGN43]{\today}