5

The next code produce a a6 format paper with pdflatex that fit well, but with lualatex the layout is a6 on a a4 paper sheet.

Passing a6paper option to geometry package doesn't solve the problem.

How have a correct papersize.

\documentclass[a6paper]{article}
\usepackage[margin=1.5cm]{geometry}

\begin{document}

Hello word !

\end{document}

1 Answer 1

5

Geometry has not been updated for the changes in lualatex (where they removed some \pdf... variables). Add this before \documentclass:

\RequirePackage{luatex85}
6
  • 1
    Forget about this one... I'll accept in 3 minutes.
    – Tarass
    Mar 23, 2018 at 10:10
  • 1
    Is geometry not maintained anymore?
    – AlexG
    Mar 23, 2018 at 11:34
  • 2
    If you load graphicx.sty and/or xcolor.sty before geometry.sty your MWE works as expected. Of course, you have to be using graphicx.sty and/or xcolor.sty in the first place ;)... (I use them practically all the time). So far, I have found no downside to this workaround.
    – sgmoye
    Mar 23, 2018 at 11:48
  • luatex85 is not needed for geometry version 5.7 released yesterday Mar 26, 2018 at 12:11
  • @AlexG github.com/davidcarlisle/geometry Mar 26, 2018 at 12:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.