Previously, with the memoir
class (tested with TeX Live 2017), I've been able to change the PDF page size mid-document with (for example):
\makeatletter
\clearpage
\setstocksize{13in}{8.5in}
\settrimmedsize{13in}{8.5in}{*}
\setlrmarginsandblock{0.79in}{0.79in}{*}
\setulmarginsandblock{0.79in}{0.79in}{*}
\checkandfixthelayout
\ch@ngetext
\fixpdflayout
\makeatother
At some point (tested with TeX Live 2019), the memoir
class has changed. Now, I get a warning about \fixpdflayout
not doing anything anymore, and the memoir
manual says:
In earlier versions we had macros \fixpdflayout and \fixdvipslayout that held some of the code needed to emit this data. With the newer engines like LuaLaTeX, this became unfeasible thus they we discontinued (their use now emit a warning).
And of course, the page size does not change in the resulting PDF.
I've previously read that the geometry
class would allow me to change the page size, but that its use with memoir
is not recommended. If that's true, is there a "good" way to change the PDF page size mid-document with a modern memoir
?