Skip to content

Instantly share code, notes, and snippets.

@sgqy
Last active November 7, 2024 00:10
Show Gist options
  • Save sgqy/3f5cf37ec7df22489091c8ae226c07f1 to your computer and use it in GitHub Desktop.
Save sgqy/3f5cf37ec7df22489091c8ae226c07f1 to your computer and use it in GitHub Desktop.
print 2 pages of book to one b5 paper
docker compose run --entrypoint bash tex
pdfjam --no-tidy --nup 2x1 --b4paper --landscape --frame true --trim '6.5mm 25mm 6.5mm 10mm' --outfile o.pdf nst.pdf '6-'
services:
tex:
image: texlive/texlive:latest-full
volumes:
- .:/workdir
working_dir: /workdir
command: ["pdflatex", "main.tex"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment