# Force custom paper size [duplicate]

I'm trying to force the paper size with LaTeX but all I can find is solution like

LaTeX - how do I force PDF page height/width?

and

Custom Paper Size, Geometry Package Class

in which the geometry is changed within the page instead of actually changing the page dimensions.

How do genuinly change the paper size? (For instance to 100mm by 100mm)

I use lualatex from Tex Live 2017 under Windows 7.

Minimum working example:

\documentclass{article}
\usepackage[paperwidth=100mm, paperheight=100mm]{geometry}
\usepackage{lipsum}
\begin{document}
\lipsum
\end{document}


## marked as duplicate by user36296, TeXnician, Maarten Dhondt, Stefan Pinnow, Andrew SwannJul 10 '17 at 13:48

• Could you post a minimal (non-)working example showing the problem? I suppose you've tried with geometry? – Bernard Jul 10 '17 at 12:35
• What is your problem with the first linked post? – TeXnician Jul 10 '17 at 12:35
• The missing \RequirePackage{luatex85} was the culprit :(. With \RequirePackage{luatex85}, the code works fine! – Adriaan Jul 10 '17 at 12:46

Update 2018:

As commented by David Carlisle this workaround is no longer required, as the geometry package was updated in the mean time.

\RequirePackage{luatex85}

• luatex85 is no longer required with geometry 2018/03/24 v5.7 – David Carlisle Mar 26 '18 at 10:21