Tools for generating the Volumetric Regimes book https://volumetricregimes.xyz/ (wiki-to-print, using Paged.js)
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.
 
 
 
 

15 lines
452 B

# Read first argument from command line: input folder name
INPUT_PDF=$1
OUTPUT_PDF=$2
# Make a tmp copy of the tex template with the input PDF filename
sed "s/XXX/$INPUT_PDF/g" xelatex-PDFX-3-2002.template.tex > xelatex-PDFX-3-2002.tmp.tex
# Run xelatex to convert the PDF to PDFX/3:2002
xelatex xelatex-PDFX-3-2002.tmp.tex
# Rename the output PDF
mv xelatex-PDFX-3-2002.tmp.pdf $OUTPUT_PDF
# Remove the tmp tex files
rm xelatex-PDFX-3-2002.tmp.*