Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 4 down vote accepted

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]
share|improve this answer
    
Worked perfectly, thanks! –  Alex Vorobiev Apr 30 '11 at 3:41
    
@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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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