split makefiles, added empty page template

This commit is contained in:
2024-10-25 17:53:44 +02:00
parent 707cff52b4
commit b265bf42dc
4 changed files with 53 additions and 46 deletions
+22
View File
@@ -0,0 +1,22 @@
%.pdf: %.tex
lualatex --shell-escape $<
print_a3.pdf: songsheet_a3part.pdf
pdftk A=$< B=$< shuffle A B output - | pdfjam -o a4.pdf --nup 1x2 --paper a4paper --clip true /dev/stdin && \
pdfbook2 --paper a3paper -s -n -o 0 -i 0 -t 0 -b 0 a4.pdf && \
mv a4-book.pdf print_a3.pdf && \
rm a4.pdf
print_a4.pdf: songsheet_a4part.pdf
pdftk A=$< B=$< shuffle A B output - | pdfjam -o $@ --nup 1x2 --paper a4paper /dev/stdin;
songsheet_a3part.pdf: songsheet_a5.pdf
cp $< $@
# pdftk $< cat ~3-4 output $@
songsheet_a4part.pdf: songsheet_a5.pdf
# cp $< $@
# Uncomment this if songsheet.pdf has 12 pages or less, and you want to use an a4 sheet inside a folded a3 sheet
pdftk $< cat 3-4 output $@
songsheet_a5.pdf: songsheet.pdf
pdfjam -o $@ --nup 2x1 --paper a5paper --landscape $<
%.tex:
$(MAKE) -C .. $@
clean_intermediate:
$(RM) songsheet_a3part.pdf songsheet_a4part.pdf songsheet_a5.pdf