split makefiles, added empty page template
This commit is contained in:
@@ -1,46 +1,26 @@
|
|||||||
.PHONY: all
|
|
||||||
tex_deps = build variables.tt library/*/*/*.tt song_choices.csv song_template.tt propers/*.tt purpose_processing.tt
|
|
||||||
docker = podman
|
docker = podman
|
||||||
all: leadsheet_collection.pdf print_a3.pdf print_a4.pdf clean_intermediate
|
build_dir = build
|
||||||
%.pdf: %.tex
|
tex_deps = variables.tt library/*/*/*.tt song_choices.csv song_template.tt empty_page_template.tt propers/*.tt purpose_processing.tt
|
||||||
cd build && \
|
.PHONY: all
|
||||||
lualatex --shell-escape $<
|
.PRECIOUS: %.tex
|
||||||
print_a3.pdf: songsheet_a3part.pdf
|
all: leadsheet_collection.pdf choir_scores.pdf print_a3.pdf clean_intermediate #print_a4.pdf
|
||||||
cd build && \
|
%.pdf: build
|
||||||
pdftk A=$< B=$< shuffle A B output - | pdfjam -o a4.pdf --nup 1x2 --paper a4paper --clip true /dev/stdin && \
|
$(MAKE) -C $(build_dir) $@
|
||||||
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
|
|
||||||
cd build && \
|
|
||||||
pdftk A=$< B=$< shuffle A B output - | pdfjam -o $@ --nup 1x2 --paper a4paper /dev/stdin;
|
|
||||||
songsheet_a3part.pdf: songsheet_a5.pdf
|
|
||||||
cd build && \
|
|
||||||
pdftk $< cat ~3-4 output $@
|
|
||||||
# cp $< $@
|
|
||||||
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
|
|
||||||
cd build && \
|
|
||||||
pdftk $< cat 3-4 output $@
|
|
||||||
songsheet_a5.pdf: songsheet.pdf
|
|
||||||
cd build && \
|
|
||||||
pdfjam -o $@ --nup 2x1 --paper a5paper --landscape $<
|
|
||||||
songsheet.tex: songsheet.tt $(tex_deps) header.tt head.tt footer.tt
|
songsheet.tex: songsheet.tt $(tex_deps) header.tt head.tt footer.tt
|
||||||
tpage $< > build/$@
|
tpage $< > $(build_dir)/$@
|
||||||
musician_scores.tex: musician_scores.tt $(tex_deps)
|
musician_scores.tex: musician_scores.tt $(tex_deps)
|
||||||
tpage $< > build/$@
|
tpage $< > $(build_dir)/$@
|
||||||
leadsheet_collection.tex: musician_scores.tt $(tex_deps)
|
leadsheet_collection.tex: musician_scores.tt $(tex_deps)
|
||||||
tpage --define parts=band $< > build/$@
|
tpage --define parts=band $< > $(build_dir)/$@
|
||||||
chornoten.tex: musician_scores.tt $(tex_deps)
|
choir_scores.tex: musician_scores.tt $(tex_deps)
|
||||||
tpage --define parts=choir $< > build/$@
|
tpage --define parts=SATB $< > $(build_dir)/$@
|
||||||
clean_intermediate:
|
clean_intermediate:
|
||||||
cd build && \
|
$(MAKE) -C $(build_dir) clean_intermediate
|
||||||
rm songsheet_a3part.pdf songsheet_a4part.pdf songsheet_a5.pdf
|
build: build-Makefile
|
||||||
build:
|
mkdir -p $(build_dir) && \
|
||||||
mkdir build
|
cp build-Makefile $(build_dir)/Makefile
|
||||||
clean:
|
clean:
|
||||||
rm -r build
|
$(RM) -r build
|
||||||
init:
|
init:
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
build_docker_image:
|
build_docker_image:
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[% IF parts == '' -%]
|
||||||
|
\newpage\null\thispagestyle{empty}\newpage
|
||||||
|
[% END -%]
|
||||||
+11
-9
@@ -1,19 +1,20 @@
|
|||||||
[% PROCESS variables.tt -%]
|
[% PROCESS variables.tt -%]
|
||||||
\documentclass[a4paper,12pt]{article}
|
\documentclass[a4paper,12pt]{article}
|
||||||
\usepackage[margin=2cm]{geometry}
|
|
||||||
\usepackage[utf8]{inputenc}
|
|
||||||
\usepackage[ngerman]{babel}
|
\usepackage[ngerman]{babel}
|
||||||
\usepackage{fontspec}
|
|
||||||
\usepackage{multirow}
|
|
||||||
\usepackage{graphicx}
|
|
||||||
\usepackage{xcolor}
|
|
||||||
\usepackage{svg}
|
|
||||||
\usepackage{wrapfig}
|
|
||||||
\usepackage{enumitem}
|
\usepackage{enumitem}
|
||||||
|
\usepackage{fontspec}
|
||||||
|
\usepackage[margin=2cm]{geometry}
|
||||||
|
\usepackage{graphicx}
|
||||||
\usepackage{hyperref}
|
\usepackage{hyperref}
|
||||||
\usepackage{ifthen}
|
\usepackage{ifthen}
|
||||||
|
\usepackage[utf8]{inputenc}
|
||||||
\usepackage{ltxtable}
|
\usepackage{ltxtable}
|
||||||
\usepackage[pass-fonts=true]{lyluatex}
|
\usepackage[pass-fonts=true]{lyluatex}
|
||||||
|
\usepackage{multirow}
|
||||||
|
\usepackage{svg}
|
||||||
|
\usepackage[explicit]{titlesec}
|
||||||
|
\usepackage{wrapfig}
|
||||||
|
\usepackage{xcolor}
|
||||||
|
|
||||||
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
|
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
|
||||||
\newcolumntype{Y}{>{\centering\arraybackslash}X}
|
\newcolumntype{Y}{>{\centering\arraybackslash}X}
|
||||||
@@ -30,9 +31,10 @@ BoldItalicFont = *-BoldItalic,
|
|||||||
Numbers = {OldStyle, Proportional},
|
Numbers = {OldStyle, Proportional},
|
||||||
RawFeature = {+ss06}
|
RawFeature = {+ss06}
|
||||||
]{EBGaramond}
|
]{EBGaramond}
|
||||||
|
%\titleformat{\subsection}{\normalfont\Large}{\thesubsection. }{0em}{#1}
|
||||||
\newcommand{\song}[3]{\ifthenelse{\equal{#1}{}}
|
\newcommand{\song}[3]{\ifthenelse{\equal{#1}{}}
|
||||||
{\subsection*{#2}\par{#3}\par}
|
{\subsection*{#2}\par{#3}\par}
|
||||||
{\subsection*{\textbf{#1} {#2}}\par{#3}\par}}
|
{\subsection*{\textit{#1} {#2}}\par{#3}\par}}
|
||||||
\newcommand{\gradualverse}[2]{#1\hfill\textit{#2}}
|
\newcommand{\gradualverse}[2]{#1\hfill\textit{#2}}
|
||||||
\newcommand{\ordinarium}[1]{\input{#1}}
|
\newcommand{\ordinarium}[1]{\input{#1}}
|
||||||
\newcommand{\original}[1]{{
|
\newcommand{\original}[1]{{
|
||||||
|
|||||||
Reference in New Issue
Block a user