ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: pagination problem with \startitemize[columns]
Date: Mon, 14 Jun 2004 11:40:58 +0200	[thread overview]
Message-ID: <40CD72AA.6080302@wxs.nl> (raw)
In-Reply-To: <20040612002532.GA2834@puritan.pcp.ath.cx>

Nikolai Weibull wrote:

>I sent a response to an earlier thread about this, but I don't know if
>it got through (my mail was down later that day).  Anyway, here's an
>example of something that gets messed up.  Text following the itemize
>doesn't get paginated properly.  Having a new chapter after it seems to
>fix it from there on, though.
>
>\starttext
>
>\chapter{One}
>
>\dorecurse{7}{\input zapf \par\relax}
>
>\startitemize[columns,four]
>\dorecurse{12}{\nop \type{[:alnum:]}}
>\stopitemize
>
>\dorecurse{7}{\input zapf \par\relax}
>
>\stoptext
>  
>

i posted a fix for that:

\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}

this should go into cont=new.tex

  parent reply	other threads:[~2004-06-14  9:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-12  0:25 Nikolai Weibull
2004-06-12 13:02 ` Willi Egger
2004-06-14  9:38   ` Hans Hagen
2004-06-14  9:40 ` Hans Hagen [this message]
2004-06-17 12:01   ` 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=40CD72AA.6080302@wxs.nl \
    --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).