From: Mart Lubbers Date: Thu, 26 Mar 2015 09:10:23 +0000 (+0100) Subject: Update with preamble X-Git-Tag: 1.0~10 X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=03598f4e1e77f70ad661e8f6f287063f68466567;p=ai-gitflashtalk.git Update with preamble Very fast compiling. Structured source. Gitignore updated for compiled preamble. --- diff --git a/.gitignore b/.gitignore index 8524ab0..4a5ff19 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,9 @@ -git.aux -git.log -git.nav -git.out -git.pdf -git.snm -git.toc +*.aux +*.log +*.nav +*.out +*.pdf +*.snm +*.toc +*.fmt vc.tex diff --git a/Makefile b/Makefile index 461a8af..98cf2f8 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,14 @@ SHELL:=/bin/bash -all: vc.tex git.pdf - -git.pdf: git.tex vc.tex +git.pdf: git.tex preamble.fmt + pdflatex $< pdflatex $< - pdflatex $< + +preamble.fmt: preamble.tex vc.tex + pdflatex -ini -jobname="$(basename $<)" "&pdflatex $<\dump" vc.tex: .git/logs/HEAD - git log -1 --format="format:\\gdef\\GITAbrHash{%H}" > vc.tex + git log -1 --format="format:\\gdef\\GITAbrHash{%H}" > $@ clean: - $(RM) -v git.{eps,aux,bbl,blg,dvi,log,out,toc,nav,snm,pdf} vc.tex + $(RM) -v *.{eps,aux,fmt,bbl,blg,dvi,log,out,toc,nav,snm,pdf} vc.tex diff --git a/git.tex b/git.tex index 54c60e0..c336224 100644 --- a/git.tex +++ b/git.tex @@ -1,23 +1,16 @@ -\documentclass{beamer} - -\usepackage{hyperref} - -\input{vc.tex} - -\author{Mart Lubbers} -\title{ - Git flashtalk\\ -} -\date{\today} - +%&preamble \begin{document} +\frame{\titlepage} + \begin{frame} - \maketitle + \frametitle{Table of contents} + \tableofcontents \end{frame} +\section{Introduction} \begin{frame} - \frametitle{Author} + \frametitle{Who am I?} \begin{itemize} \item Mart Lubbers \item 4th year bachelor AI @@ -26,4 +19,8 @@ \end{itemize} \end{frame} +\section{Basics} + +\section{Branching} + \end{document} diff --git a/preamble.tex b/preamble.tex new file mode 100644 index 0000000..c12fb60 --- /dev/null +++ b/preamble.tex @@ -0,0 +1,26 @@ +\documentclass{beamer} + +\usepackage{hyperref} + +\input{vc.tex} + +\title[GIT] {Git flashtalk} +\subtitle{A short introduction to GIT} +\author[Lubbers] % (optional, for multiple authors) +{M.~Lubbers\inst{1}} +\institute[Radboud University] % (optional) +{ + \inst{1}% + Artificial Intelligence\\ + Radboud University Nijmegen +} +\date[2015]{\today} +\subject{Git} + +\AtBeginSection[] +{ + \begin{frame} + \frametitle{Table of Contents} + \tableofcontents[currentsection] + \end{frame} +}