diff --git a/slides_template/Makefile b/slides_template/Makefile index 1b7191d..1dd9601 100644 --- a/slides_template/Makefile +++ b/slides_template/Makefile @@ -8,6 +8,7 @@ pdf: all recode -d u8..ltex < refs-cleaned.bib > refs-processed.bib mogrify -format pdf figures/logo.svg rubber -fd $< + extract-notes $< clean: rubber -d --clean *.tex @@ -16,6 +17,7 @@ clean: rm -f refs-cleaned.bib rm -f refs-processed.bib rm -f figures/logo.pdf + rm -f *.pdfpc viewpdf: all evince *.pdf diff --git a/slides_template/extract-notes b/slides_template/extract-notes index 06f5836..0d11083 100755 --- a/slides_template/extract-notes +++ b/slides_template/extract-notes @@ -23,7 +23,7 @@ foreach $filename (@ARGV) { if ($line =~ /^\% pdfpc\:end/) { $note_record = 0; - chomp $note_text; + $note_text =~ s/^\s*(.*?)\s*$/$1/; print NOTESFILE "\#\#\# $slide_counter\n$note_text\n"; }