Page History

LaTeX

Nigel Stanger edited this page on 31 May 2023

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{…}.
  • With the fontspec package:
    • Use \setmonofont[Scale=MatchLowercase,Mapping=]{…}.
    • Some fonts that have switchable features. For example, with Iosevka: \defaultfontfeatures[Iosevka Light]{RawFeature={+ss03;-calt}} (-calt switches off ligatures).
  • Use a monospaced font that doesn’t provide ligatures. (!)

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}"