# pdflatex vs lualatex papersize layout problem

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}


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

• Is geometry not maintained anymore? – AlexG Mar 23 '18 at 11:34
• 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 '18 at 11:48