Page History

LaTeX

Nigel Stanger edited this page on 13 Sep 2020

Clone this wiki locally

Find configuration files

kpsewhich --progname=dvipdfmx --format=othertext dvipdfmx.cfg

Prevent ligatures in monospaced text

  • Use \/ for one-offs in \texttt{…}.
  • Use \setmonofont[Scale=MatchLowercase,Mapping=]{…} with the fontspec package.

PDF hacks

Generate a PDF containing a mixture of n-up and normal pages

pdflatex --jobname=foo "\documentclass[a4paper,landscape]{article}\usepackage{pdfpages}\begin{document}\includepdf[pages=1-10,nup=2x1]{inputfile}\includepdf[pages=11]{inputfile}\end{document}"

Generate an A3 2-up document

pdfjam --outfile output.pdf --paper a3paper --landscape input.pdf -

Alternatively:

pdflatex --jobname=foo "\documentclass{article}\usepackage[a3paper,landscape]{geometry}\usepackage{pdfpages}\begin{document}\thispagestyle{empty}\includepdf[pages=-,nup=2x1]{inputfile}\end{document}"