fix includes

This commit is contained in:
Steve Krulewitz 2019-09-16 22:12:54 -07:00
parent bd262d59a7
commit 40a3dafdbb
2 changed files with 8 additions and 10 deletions

View File

@ -9,7 +9,7 @@ function setup_pdflatex {
fi
if [ ! -d $TEXML_HOME/tex ]; then
ln -s "`realpath tex`" $TEXML_HOME
ln -s "`realpath .`" $TEXML_HOME
fi
}
@ -32,19 +32,16 @@ function make_packet {
pdfs=""
while read p; do
make_pdf "songs/$p.tex"
pdfs="$pdfs \"build/pdf/$p.pdf\""
done < $1
done < <(grep includepdf $1 | sed -E 's/.*{build\/pdf\/([^}]*)\.pdf}.*/\1/')
mkdir -p "build/packets"
#echo "$PDF_JOINER" --output "build/$1.pdf" $pdfs
pdflatex \
-interaction=nonstopmode \
-output-directory="build/packets" \
"$1"
-interaction=nonstopmode \
-output-directory="build/packets" \
"$1"
}
setup_pdflatex
make_pdf "$1"
#make_pdf "$1"
#make_packet "packets/aircoustic201910.tex"
make_packet "packets/aircoustic201910.tex"

View File

@ -3,6 +3,7 @@
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=-]{build/pdf/Pat Benatar/We Belong.pdf}
\includepdf[pages=-]{build/pdf/Pat Benatar/We Belong Capo I.pdf}
\includepdf[pages=-]{build/pdf/Daniel Johnston/Life In Vain.pdf}
\includepdf[pages=-]{build/pdf/R.E.M./Fall on Me.pdf}
\includepdf[pages=-]{build/pdf/Guns 'N Roses/Patience.pdf}