From: Mart Lubbers Date: Thu, 3 Mar 2016 19:32:23 +0000 (+0100) Subject: started off X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=08e647e1dd66383df1f8cefc10e3809301f0a167;p=linuxnijmegen-python.git started off --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..85b9c3b --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +*.aux +*.fmt +*.log +*.nav +*.out +*.pdf +*.snm +*.toc +*.vrb diff --git a/Makefile b/Makefile index 2cfcfb7..939e94e 100644 --- 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 --- 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 --- 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}