I'm trying to generate a pdf-x with pdfx
package.
If I compile the following mwe with LuaLaTeX or XeLaTeX
\documentclass{memoir}
\usepackage{lipsum}
\setstocksize{29.7cm}{21cm}
\settrimmedsize{21cm}{13cm}{*}
\settypeblocksize{*}{9.1cm}{1.618}
\setlrmargins{1.5cm}{*}{*}
\setulmargins{2.12cm}{*}{2}
\checkandfixthelayout
\usepackage[x-1a]{pdfx}
\begin{document}
\lipsum
\end{document}
the layout gets messed up. It seems that the problem is between pdfx
and memoir
's \settrimmedsize
: if I set the trimmed size identical with the stock size, the problem disappears.
As a matter of fact, the problem disappears also when I generate pdf type a-1b (with \usepackage[a-1b]{pdfx}
).
Does anyone have an idea where the issue come from, and how to fix it?
\usepackage[utf8]{inputenc}
with lualatex and xelatex (it won't harm but is unneeded.)