3

I am trying to set up custom page size with zero margins. Here is the example

\documentclass[oneside,final,12pt]{memoir}
\usepackage{lipsum} % just for sample text
\usepackage[T1]{fontenc}

\pagestyle{empty}
\aliaspagestyle{chapter}{empty}
\aliaspagestyle{part}{empty}

\setstocksize{194.73mm}{132.76mm}
\settrimmedsize{\stockheight}{\stockwidth}{*}
\settrims{0pt}{0pt}
\setlrmarginsandblock{0.55mm}{*}{*}
\setulmarginsandblock{0mm}{*}{*}
\setlength{\parskip}{0pt}
\setheadfoot{0mm}{0mm}
\setheaderspaces{*}{0mm}{*}
\setmarginnotes{0mm}{0mm}{0mm}
\checkandfixthelayout

\begin{document}
\chapter*{First Chapter}
\lipsum
\end{document}

This does not compile (with pdflatex), the error is

! Class memoir Error: \footskip (0.0pt) is too large for \lowermargin (-8.9395pt) by 8.9395pt.

I explicitly set header/footer to empty, how come it tries(?) to put something there and gets negative lowermargin? Thanks

6

by default memoir actually does not give you the text height you ask for, instead it choose the one that is closest and is an integral number of lines high.

In your case you need to switch the algorithm by using

\checkandfixthelayout[fixed]
  • @AlexV: It does? When I copy & paste your document to an empty file and add the [fixed], pdflatex will give me: ERROR: Class memoir Error: \marginparsep is zero or negative. – Thomas Nov 22 '11 at 21:36
  • @Thomas: Yes it does. I use MikTex 2.9 with the latest updates. – Alex Vorobiev Jan 11 '12 at 19:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.