20
0

several improvments to the beamer template

- moved over to the new notes format (requires the new version of pdfpc)
- pre-process the logo.pdf instead of doing it in the makefile
- addes new support for putting the slide revision (from git) on the
  first slide
This commit is contained in:
2013-02-16 16:57:36 -05:00
parent bb3aadd86b
commit c2e08ea98e
3 changed files with 300 additions and 19 deletions

View File

@@ -1,29 +1,44 @@
#!/usr/bin/make
all: $(patsubst %.tex,%.pdf,$(wildcard *.tex))
all: notes.config vc $(patsubst %.tex,%.pdf,$(wildcard *.tex))
pdf: all
%.pdf: %.tex
mogrify -format pdf figures/logo.svg
%.pdf: %.tex
rubber -fd $<
extract-notes $<
clean:
rubber -d --clean *.tex
rm -f *.tmp
rm -f vc
rm -f figures/logo.pdf
rm -f *.pdfpc
# by default, we produce combined notes/slides output
notes.config:
echo '\setbeameroption{show notes on second screen}' > notes.config
# rules for generating notesonly
notesonly-config:
echo '\setbeameroption{show only notes}' > notes.config
notesonly: notesonly-config pdf
# rules for generating slides only
slides-config:
echo '' > notes.config
slides: slides-config pdf
viewpdf: all
evince *.pdf
pdfpc: notes.config
pdfpc -n right *pdf
spell:
aspell -c -t --tex-check-comments -b text.tex
vc:
vc-git
clean:
rubber -d --clean *.tex
rm -f *.tmp
rm -f vc
rm -f notes.config
rm -f figures/logo.pdf
rm -f *.pdfpc
.PHONY: clean all
.PHONY: clean all notesonly-config notesonly slides-config slides viewpdf pdfpc spell

View File

@@ -2,9 +2,7 @@
% set up the file to create notes in the output PDFs
\usepackage{pgfpages}
\setbeameroption{show notes on second screen} % for pdfpc -n right
% \setbeameroption{show notes} % place notes on the second slide
% \setbeameroption{show only notes} % for making printouts
\input{notes.config}
\renewcommand{\rmdefault}{ugm}
\usepackage[garamond]{mathdesign}
@@ -155,11 +153,9 @@
\begin{frame}[plain]
\titlepage
% pdfpc:begin
%
% This is the slide 1 notes.
% pdfpc:end
% include version control stuff
\input{vc}
\tikz[overlay,shift=(current page.south west)]{\node [xshift=5.6em,yshift=0.5em]{\colorbox{makopurple1}{\color{white} \tt \smaller \smaller \smaller revision:\ \VCRevision\ (\VCDateTEX)}};}
\end{frame}
%% SLIDE: Slide 2

File diff suppressed because one or more lines are too long