Browse Source

first attempt to make a second pdf 'with notes' for every date

pull/2/head
Marius Melzer 6 years ago
parent
commit
337ade5853
  1. 3
      generate.rb
  2. 2
      latex_template.tex.erb
  3. 4
      makefile_template.erb

3
generate.rb

@ -26,4 +26,7 @@ makefile_template = ERB.new(File.read("makefile_template.erb"))
File.write File.join(outdir_path, "Makefile"), makefile_template.result
latex_template = ERB.new(File.read("latex_template.tex.erb"))
notes=false
File.write File.join(outdir_path, "slides.tex"), latex_template.result
notes=true
File.write File.join(outdir_path, "slides_with_notes.tex"), latex_template.result

2
latex_template.tex.erb

@ -9,7 +9,7 @@
\usepackage{tikz}
\setbeamertemplate{footline}[frame number]
\usepackage{pgfpages}
<% if notes do %>
<% if notes %>
\setbeameroption{show notes on second screen = right}
<% end %>

4
makefile_template.erb

@ -1,3 +1,7 @@
slides.pdf: slides.tex <%= deck_files.join " " %>
pdflatex -draftmode $<
pdflatex $<
slides_with_notes.pdf: slides_with_notes.tex <%= deck_files.join " " %>
pdflatex -draftmode $<
pdflatex $<

Loading…
Cancel
Save