First attempt for some Makefile for handouts
Not finished yet. Signed-off-by: Daniel Borchmann <daniel@algebra20.de>
This commit is contained in:
parent
9ef0843146
commit
1854dc6f24
|
@ -135,3 +135,4 @@
|
|||
/lectures/lecture-05-macros.synctex.gz
|
||||
/lectures/lecture-05-macros.toc
|
||||
/lectures/lecture-05-macros.vrb
|
||||
/lectures/lecture-*-handout.*
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
# This is buggy: it replaces *all* occurrences of documentclass
|
||||
# maybe this helps: https://stackoverflow.com/questions/6278057/replace-only-first-match-in-multiple-files-with-perl
|
||||
|
||||
%-handout.pdf: %.tex
|
||||
cat $< | sed -e 's/^\\documentclass\[/\\documentclass\[handout,/' -e 's/^\\documentclass{/\\documentclass\[handout\]{/' | lualatex -jobname=$(basename $@)
|
||||
cat $< | sed -e 's/^\\documentclass\[/\\documentclass\[handout,/' -e 's/^\\documentclass{/\\documentclass\[handout\]{/' | lualatex -jobname=$(basename $@)
|
||||
|
||||
clean:
|
||||
rm -f *-handout.pdf
|
Loading…
Reference in New Issue