You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
718 B
35 lines
718 B
3 years ago
|
mkdir -p pdfs
|
||
|
|
||
|
folder="00_contributions/FINAL/layout/"
|
||
|
|
||
|
header="${folder}00_header.tex"
|
||
|
footer="${folder}08_footer.tex"
|
||
|
|
||
|
texts=(
|
||
|
#"${folder}00_preface.tex"
|
||
|
"${folder}01_introduction.tex"
|
||
|
# "${folder}02_clara.tex"
|
||
|
# "${folder}04_ren.tex"
|
||
|
# "${folder}05_rosemary-interview.tex"
|
||
|
# "${folder}06_michael.tex"
|
||
|
)
|
||
|
|
||
|
counter=1
|
||
|
|
||
|
for i in ${!texts[@]}; do
|
||
|
file="${texts[$i]}"
|
||
|
tmpfile="${file##*/}"
|
||
|
cd pdfs/
|
||
|
cat ../$header >> $tmpfile
|
||
|
echo "\setcounter{page}{$counter}" >> $tmpfile
|
||
|
cat ../$file >> $tmpfile
|
||
|
cat ../$footer >> $tmpfile
|
||
|
xelatex $tmpfile
|
||
|
num=$(pdfinfo "${tmpfile%.*}".pdf | grep Pages | sed 's/[^0-9]*//')
|
||
|
rm $tmpfile
|
||
|
cd ../
|
||
|
counter=$((counter+num));
|
||
|
done
|
||
|
|
||
|
pdftk pdfs/*.pdf cat output vltk.pdf
|