I've been trying to learn the details of the memoir package due to its flexibility. However now that I've tried to emulate a paperback format I'm hitting an error which I don't understand where it's coming from.
For the following basic code:
\documentclass[12pt]{memoir}
\setstocksize{171mm}{104mm}
\settrimmedsize{\stockheight}{\stockwidth}{*}
\settrims{0mm}{0mm}
\checkandfixthelayout
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{lipsum}
\begin{document}
\lipsum[1-100]
\end{document}
I'm getting the following error:
\spinemargin (58.26999pt) and/or \textwidth (252.0pt) and/or \foremargin (87.215pt) are too large for \paperwidth (295.90866pt) by 101.57632pt.
I can understand that the problem is with the definition of the dimensions, but from the information in the memoir manual, defining the stock and trimmed size should have set the margins and textwidth to the correct values.
What am I doing wrong here?