Page LayoutMaybe a bug in flowfram

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
luoyi
Posts: 4
Joined: Sat Oct 24, 2009 5:17 am

Maybe a bug in flowfram

Post by luoyi »

I think maybe I've found a bug in the flowfram package. Please see the following tex file. when the first-page is 1 column , the output is bad. but if I change the first page to 2 column ,then the output will looks good. does any one can help to look at this ? thx a lot.

Code: Select all

\documentclass[a4paper,oneside]{memoir}
\usepackage[portrait,hmargin={2cm,2cm},vmargin={1cm,1cm}]{geometry}
\usepackage{lipsum}
\RequirePackage[draft]{flowfram}
\RequirePackage{color}
\RequirePackage{graphicx}
\usepackage{tikz}

\pagestyle{empty}
\renewcommand{\chapterfirstpagestyle}{empty} 

\ffvadjustfalse
\onecolumninarea[1]{0.7\textwidth}{\textheight}{0pt}{0pt}
% if I changed onecolumninarea to twocolumninarea as following
% then no problem
% \twocolumninarea[1]{0.7\textwidth}{\textheight}{0pt}{0pt}
\twocolumninarea[>1]{\textwidth}{\textheight}{0pt}{0pt}

\newdynamicframe[1]{0.29\textwidth}{0.8\textheight}{0.71\textwidth}{0.1\textheight}[tocframe]
\setdynamiccontents*{tocframe}{\lipsum[1]}

\begin{document}

\includegraphics[scale=0.1]{uplogo}
\lipsum[1-10]

\chapter{Introduction}
\lipsum
\lipsum

\chapter{Introduction}
\lipsum
\lipsum
\end{document}

Last edited by luoyi on Wed May 05, 2010 4:41 am, 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

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Maybe a bug in flowfram

Post by nlct »

You need to use \framebreak when moving to a column with a different width. This is because the change in \hsize doesn't come into effect until the end of the paragraph. (So it's a feature of TeX rather than a bug in flowfram.)

Regards
Nicola Talbot
luoyi
Posts: 4
Joined: Sat Oct 24, 2009 5:17 am

Re: Maybe a bug in flowfram

Post by luoyi »

then it means that I should always insert a \framebreak command in the last of the firstpage. do we have any convenient method to do this ?
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Maybe a bug in flowfram

Post by nlct »

luoyi wrote:then it means that I should always insert a \framebreak command in the last of the firstpage.
You'll need to use \framebreak whenever you have a paragraph that spans frames of unequal widths.
luoyi wrote:do we have any convenient method to do this ?
No. The best thing to do is put all your text in and then add \framebreak. Otherwise you might find you have to keep moving it whenever you edit the text.

Regards
Nicola Talbot
Post Reply