GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Wiki
nigel.stanger
/
Wiki
Compare Revisions
View Page
Back to Page History
LaTeX.md
# Find configuration files ```sh 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 ```sh 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 ```sh pdfjam --outfile output.pdf --paper a3paper --landscape input.pdf - ``` Alternatively: ```sh pdflatex --jobname=foo "\documentclass{article}\usepackage[a3paper,landscape]{geometry}\usepackage{pdfpages}\begin{document}\thispagestyle{empty}\includepdf[pages=-,nup=2x1]{inputfile}\end{document}" ```
# Find configuration files ```sh 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 ```sh 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 ```sh pdfjam --outfile output.pdf --paper a3paper --landscape input.pdf - ``` Alternatively: ```sh pdflatex --jobname=foo "\documentclass{article}\usepackage[a3paper,landscape]{geometry}\usepackage{pdfpages}\begin{document}\thispagestyle{empty}\includepdf[pages=-,nup=2x1]{inputfile}\end{document}" ```