2

I want to typeset a book in A5 format with memoir with the standard text width provided by \lxvchars in that package (this makes sure there are approximately 65 characters on each line). I want the edge margins to be (say) 1.5 times larger than the spine margins. I then want the upper and lower margins to be the same size as the edge margins. The sum of the edge and spine margins isequal to

\stockwidth - \lxvchars,

and the edge margin is 1.5/(1+1.5) = 3/5 times this. So the entire text block should have height

\stockheight - 2*3/5*(\stockwidth - \lxvchars) = \stocheight - 1.2\stockwidth + 1.2\lxvchars.

Therefore, I run the following code:

\documentclass[twoside,10pt,a5paper]{memoir}
\def\myratio{1.2}
\settypeblocksize{\dimexpr\stockheight-\myratio\stockwidth+\myratio\lxvchars}{\lxvchars}{*}
\setulmargins{*}{*}{1}
\setlrmargins{*}{*}{1.5}

\checkandfixthelayout[nearest]


\usepackage{lipsum,microtype}

\pagestyle{empty}

\begin{document}    
    \noindent\lipsum[1-222]
\end{document}

Guess what, it doesn't work! The upper right corner looks like below. Notice that the distance from the text to the top is slightly greater than the distance from the text to the right edge. How do I fix this?

enter image description here

EDIT: Per request, here is the same picture with the package showframe loaded:

enter image description here

The entire page can be seen here:

enter image description here

  • Are you using microtype? – musarithmia Jan 15 '15 at 20:54
  • Yep, as noted in the MWE. :-) – Gaussler Jan 15 '15 at 20:54
  • Top/bottom/edge margins seem to match now, right? – Werner Jan 15 '15 at 20:55
  • @Werner, you appear to be right. – Gaussler Jan 15 '15 at 20:55
  • 1
    Never mind, I thought you were bothered by the protrusion in your close-up, but I see that's not the problem. – musarithmia Jan 15 '15 at 21:16

Your Answer

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

Browse other questions tagged or ask your own question.