ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: pagination bug
Date: Wed, 26 May 2004 21:24:17 +0200	[thread overview]
Message-ID: <6.0.1.1.2.20040526212312.028a4ec0@server-1> (raw)
In-Reply-To: <3BE36FC6-AE71-11D8-9096-0003938543A0@dircon.co.uk>

At 19:30 25/05/2004, you wrote:
>Hans,
>The following minimum file does not paginate correctly. It overflows the 
>second page. Removing the figure or the second level of itemization fixes 
>the pagination. I have enclosed the text of the file and the file itself 
>for ease of reproduction.
>
>I am using the latest stable version from i-installer. I actually think I 
>have had this problem before but not tracked it down.
>
>TIA
>--
>Nigel
>
>
>\starttext
>\placefigure
>   [here]
>   [fig:a]
>   {big figure}
>  {\externalfigure[koe][width=\textwidth,height=\textwidth]}
>
>\startitemize[packed,n]
>\dorecurse{10} {\item repeated}
>\startitemize[packed,a,columns]
>\dorecurse{10} {\item repeated indent}
>\stopitemize
>
>\stopitemize
>\dorecurse{7}{\input zapf \par\relax}
>
>\stoptext

I'm not that sure if the next will not interfere with other situations, so 
please play a bit with white space settings ans such and mixed one/two 
column modes

\def\endmulticolumns
   {%\par
    \vskip\lineheight\vskip-\lineheight % take footnotes into account
    \dontshowcomposition
    \doflushcolumnfloat  % added recently
   %\doflushcolumnfloats % no, since it results in wrong top floats
    \flushnotes          % before start of columns
    \par
    \ifbalancecolumns
      \global\output{\continuousmulticolumnsout}%
      \goodbreak
      \global\output{\balancedmulticolumnsout}%
    \else
      \goodbreak
    \fi
    \eject               % the prevdepth is important, try e.g. toclist in
    \prevdepth\zeropoint % columns before some noncolumned text text
    \global\output\singlecolumnout
    \global\output{\the\mainoutput}% % % % % todo
    \ifvoid\precolumnbox\else
      \unvbox\precolumnbox
    \fi
    \global\precolumnboxheight\zeropoint
    \endgroup % here
    \nofcolumns\plusone
    \setvsize % the outer one!
\synchronizeoutput % new may 2004 / we need to: \pagegoal\vsize
    \checkendcolumnfootnotes
    \dosomebreak\allowbreak
    \restoresavedfloats} 

  parent reply	other threads:[~2004-05-26 19:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-25 17:30 Nigel King
2004-05-26 14:46 ` Nigel King
2004-05-26 19:24 ` Hans Hagen [this message]
2004-05-26 22:54   ` Nigel King
2004-05-27 21:27     ` Hans Hagen
2004-05-28  8:45       ` Nigel King
2004-06-09 13:44       ` Nikolai Weibull

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6.0.1.1.2.20040526212312.028a4ec0@server-1 \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).