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.

For reasons I won't bore anyone with, I being forced to change my document at the last minute from oneside to twoside using memoir. However, when I do, I suddenly get odd problems with spacing; the title pages have the entire page's text shifted to the bottom, and the last subsection or paragraph in each chapter is moved to the bottom of the page as well (leaving a huge chunk of vertical whitespace between the last and the penultimate paragraph). I'm sorry, I'd like to provide a minimal working example, but I can't come up with one, so I'm just hoping that someone can point me in the direction of general things to check. Here's some possibly relevant code, though it's a long document:

\documentclass[12pt,A4,twoside]{memoir}
\setcounter{errorcontextlines}{30}
\strictpagecheck
\usepackage[sectionbib]{natbib}
\usepackage{chapterbib}
\usepackage{graphicx}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{authblk}
\usepackage{multirow}
\usepackage{memhfixc}
\usepackage[draft]{hyperref}
\usepackage{lscape}
\usepackage[T1]{fontenc}
\bibpunct[, ]{(}{)}{;}{a}{}{;} 


\setlrmarginsandblock{4cm}{3cm}{*}
\setulmarginsandblock{4cm}{3cm}{*}
\checkandfixthelayout
\fixpdflayout

\makepagestyle{mystyle}
\makeoddhead{mystyle}{}{}{\thepage}
\makeevenhead{mystyle}{\thepage}{}{}
\pagestyle{mystyle}

...

\cleartooddpage[\thispagestyle{empty}]
\include{foreword}
\pagestyle{plain}
\mainmatter
\cleartooddpage[\thispagestyle{empty}]
\include{chap1}

... 

and so on.

share|improve this question
1  
Try to add \raggedbottom to your preamble. –  lockstep Nov 10 '11 at 6:35
    
Thanks, lockstep! That did work, thankfully... –  Winawer Nov 10 '11 at 11:08
add comment

1 Answer

up vote 7 down vote accepted

Quoted from the memoir documentation (p 5):

When the twoside or twocolumn option is selected then typesetting is done with \flushbottom, otherwise it is done with \raggedbottom.

When \raggedbottom is in effect LaTeX makes little attempt to keep a constant height for the typeblock; pages may run short.

When \flushbottom is in effect LaTeX ensures that the typeblock on each page is a constant height, except when a page break is deliberately introduced when the page might run short. In order to maintain a constant height it may stretch or shrink some vertical spaces (e.g., between paragraphs, around headings or around floats or other inserts like displayed maths). This may have a deleterious effect on the color of some pages. If you get too many strung out pages with \flushbottom you may want to put \raggedbottom in the preamble.

As such, use \raggedbottom to avoid flushing text flush with the lower part of the text block.

share|improve this answer
    
Thanks, Werner! It was probably a simple answer for you, but that saved me a gigantic headache. –  Winawer Nov 10 '11 at 11:06
add comment

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.