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

View File

@@ -2,9 +2,7 @@
% set up the file to create notes in the output PDFs % set up the file to create notes in the output PDFs
\usepackage{pgfpages} \usepackage{pgfpages}
\setbeameroption{show notes on second screen} % for pdfpc -n right \input{notes.config}
% \setbeameroption{show notes} % place notes on the second slide
% \setbeameroption{show only notes} % for making printouts
\renewcommand{\rmdefault}{ugm} \renewcommand{\rmdefault}{ugm}
\usepackage[garamond]{mathdesign} \usepackage[garamond]{mathdesign}
@@ -155,11 +153,9 @@
\begin{frame}[plain] \begin{frame}[plain]
\titlepage \titlepage
% pdfpc:begin % include version control stuff
% \input{vc}
% This is the slide 1 notes. \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)}};}
% pdfpc:end
\end{frame} \end{frame}
%% SLIDE: Slide 2 %% SLIDE: Slide 2

File diff suppressed because one or more lines are too long