Page LayoutZero margins with memoir

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
alexv
Posts: 4
Joined: Wed Apr 27, 2011 4:33 am

Zero margins with memoir

Post by alexv »

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

Code: Select all

\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, 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
Last edited by alexv on Sun May 01, 2011 6:17 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

alexv
Posts: 4
Joined: Wed Apr 27, 2011 4:33 am

Zero margins with memoir

Post by alexv »

The problem appears to go away if \checkandfixthelayout is asked to use "fixed" algorithm:

Code: Select all

\checkandfixthelayout[fixed]
Post Reply