3

With pdfLaTeX I prevent downsizing of printouts with \pdfcatalog{/ViewerPreferences<</PrintScaling/None>>}.

Now how to use this with LuaLaTeX? I tried:

{\pdfextension catalog=/ViewerPreferences<</PrintScaling/None>>}

and get the error message

Missing { inserted.
<to be read again> 
=
l.2 {\pdfextension catalog=
                         /ViewerPreferences<</PrintScaling/None>>}

Texlive 2019 on Linux.

MWE:


{\pdfextension catalog=/ViewerPreferences<</PrintScaling/None>>}
\documentclass{article}

\usepackage{fontspec}
\usepackage{lmodern}

\begin{document}
Text.
\end{document}

I've seen this question: Prevent scaling of printout of PDF without using hyperref, but loading luatex85 seems a bit outdated, or am I wrong?

Sveinung
  • 20,355
Keks Dose
  • 30,892
  • Why the equal sign? Use braces like with \pdfcatalog. But with hyperref you can set the option too. – Ulrike Fischer Sep 05 '19 at 07:47
  • 2
    Still using a package, \usepackage{pdfbase}, but shouldn't slow down compilation and works across all engines/drivers: \ExplSyntaxOn\pbs_pdfcatalog:n{/ViewerPreferences<</PrintScaling/None>>}\ExplSyntaxOff. – AlexG Sep 05 '19 at 08:57
  • @AlexG I'm using LaTeX3 in my document anyway. Thank you! – Keks Dose Sep 05 '19 at 09:27

1 Answers1

7

Use braces like with \pdfcatalog:

     \pdfextension catalog{/ViewerPreferences<</PrintScaling/None>>}
Ulrike Fischer
  • 327,261