Text Formatting\flushbottom not working with Memoir class

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
editorjack
Posts: 3
Joined: Mon Nov 02, 2009 8:05 pm

\flushbottom not working with Memoir class

Post by editorjack »

Esteemed TeXperts:

\flushbottom (and thus vertical justification) doesn't seem to be working with the Memoir class (either in MikTeX or TeXLive). I've narrowed my test document down to this:

Code: Select all

\documentclass{memoir}
\widowpenalty=10000
\flushbottom
\begin{document}
\chapter{Captain Rogers}
A man came slowly over the old stone bridge, and averting his gaze from the dark river with its silent craft, looked with some satisfaction toward the feeble lights of the small town on the other side. [Followed by a chapter's worth of additional text.]
\end{document}
Note that \documentclass{book} works just fine, as does \documentclass{scrbook}. Any ideas as to what's going on with Memoir?

Thanks for any help you can give.

Best wishes,
Jack Lyon

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

\flushbottom not working with Memoir class

Post by gmedina »

Hi,

what exactly do you expect the \flushbottom command to do in your example? The code that you posted doesn't show any problem at all; after all it will produce a document that spans less that a page. Please provide some complete and compilable code that allows us to reproduce the undesired bahaviour.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

\flushbottom not working with Memoir class

Post by localghost »

Like gmedina I can't see the problem.

Code: Select all

\documentclass[11pt,a4paper,english]{memoir}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{blindtext}

\flushbottom

\begin{document}
  \blinddocument
\end{document}
It goes without saying that you have to fill the pages completely before \flushbottom affects the layout.


Best regards and welcome to the board
Thorsten¹
editorjack
Posts: 3
Joined: Mon Nov 02, 2009 8:05 pm

Re: \flushbottom not working with Memoir class

Post by editorjack »

Thanks for your responses. I should have been more clear. But then, I did write: "[Followed by a chapter's worth of additional text.]" :)

I was trying to get the code down to its bare essentials to see if anyone else could replicate the problem.

So yes, you do need a bunch of text for \flushbottom to take effect. But even when I have a bunch of text, it's not working. It works fine with other classes--just not Memoir.

So with the code provided by localghost (thanks!)--

\documentclass[11pt,a4paper,english]{memoir}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{blindtext}

\flushbottom

\begin{document}
\blinddocument
\end{document}

--and with \blinddocument having lots and lots of text, is the text being justified vertically? In other words, is the stretchable glue between the lines of a paragraph actually stretching? or compressing?

For me, it's not.

Thanks very much for any help.

Best wishes,
Jack Lyon
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

\flushbottom not working with Memoir class

Post by daleif »

Bug found, and fixed in the next memoir release

temp fix is

Code: Select all

\makeatletter
\renewcommand*{\traditionalparskip}{%
  \setlength\parskip{0\p@ \@plus \p@}
  \m@mnzpskipfalse}
\makeatother
\traditionalparskip
Post Reply