Update with preamble
authorMart Lubbers <mart@martlubbers.net>
Thu, 26 Mar 2015 09:10:23 +0000 (10:10 +0100)
committerMart Lubbers <mart@martlubbers.net>
Thu, 26 Mar 2015 09:10:23 +0000 (10:10 +0100)
Very fast compiling.
Structured source.
Gitignore updated for compiled preamble.

.gitignore
Makefile
git.tex
preamble.tex [new file with mode: 0644]

index 8524ab0..4a5ff19 100644 (file)
@@ -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
index 461a8af..98cf2f8 100644 (file)
--- 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 (file)
--- 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 (file)
index 0000000..c12fb60
--- /dev/null
@@ -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}
+}