When using the memoir document class, I don't know where I should place the commands for setting up the layout (settypeblocksize, setlrmargins...).
If I call them from the preamble, LaTeX swears about a missing \begin{document}, and if I move them into the document environment, they start working fine but... with a side effect: some garbage is generated on the resulting document's first page.
which is very strange because the only change is that I uncommented that command! In the result LaTeX thinks a line break has been inserted in the middle of the following line. If I, for example, locate the settrimmedsize command just before I start the document, the error is this:
I have one more question. As I understand, the paperwidth consists of spinemargin, textwidth and foremargin. So, I can thus distribute it among the three components: