From: Hans Hagen <pragma@wxs.nl>
Subject: Re: wrong order of content-list items if using balanced columnsets
Date: Tue, 28 Feb 2006 02:00:48 +0100 [thread overview]
Message-ID: <4403A0C0.1050201@wxs.nl> (raw)
In-Reply-To: <440379B9.6010609@seznam.cz>
Vit Zyka wrote:
> Hello Wizards,
>
> the next example illustrates the problem with wrong order of
> content-list items if using balanced columnsets:
>
> -----------------------------------------------------------------
> \setuplayout[grid=yes,topspace=1cm,bottomspace=1cm,height=middle]
> \showgrid
>
> \definecolumnset[A][n=2,balance=yes]
> \setupcolumnsetlines[A][1][1][21]
> \setupcolumnsetlines[A][1][2][21]
> \definecolumnset[B][n=2,balance=yes]
>
> \starttext
> \startcolumnset[A]
> \section{Knuth}
> \dorecurse{2}{\input knuth \endgraf}
> \stopcolumnset
> \placeongrid{\hairline}
> \startcolumnset[B]
> \section{Zapf}
> \dorecurse{1}{\input zapf \endgraf}
> \blank
> Content:
> \placecontent[criterium=all]
> \stopcolumnset
>
> \stoptext
> --------------------------------------------------------------------
>
> Problem is that the second section (Zapf) is inserted to .tui before the
> first one (Knuth). My observation: on the page where one columnset (A)
> is closed by \setupcolumnsetlines and the second (B) continues, .tuo
> contains marks from B firstly. This makes book content unsable in this
> configuration.
>
> Any solutions? I am thinking about: Proper order writting to .tuo or to
> sort items according to mark number - it is correct (not sure if it is
> implemented?).
>
it's a kind of bug; how about swapping the order: (page-lyr.tex)
\def\settextpagecontent#1#2#3% #2 and #3 will disappear
{\doifelselayerdata{OTRTEXT}
{\setbox#1\hbox to \makeupwidth
{\startoverlay
{\tightlayer[OTRTEXT]} % first, otherwise problems with toc
{\normalsettextpagecontent{#1}{#2}{#3}\box#1}
\stopoverlay}%
\dp#1\zeropoint}%
{\normalsettextpagecontent{#1}{#2}{#3}}}
(you really don't want to know what happens there -)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
next prev parent reply other threads:[~2006-02-28 1:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-27 22:14 Vit Zyka
2006-02-28 1:00 ` Hans Hagen [this message]
2006-02-28 14:51 ` Vit Zyka
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=4403A0C0.1050201@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).