From: Robert Blackstone <blackstone.robert@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: insert pagebreak in toc (MkIV)
Date: Mon, 5 Sep 2016 14:50:49 +0200 [thread overview]
Message-ID: <19309646-3A30-40DD-AEF9-9D01EEF39743@gmail.com> (raw)
In-Reply-To: <mailman.466.1473066418.2177.ntg-context@ntg.nl>
On 5 Sep 2016, at 11:06 , Hans Hagen <pragma@wxs.nl> wrote
>
> On 9/5/2016 9:06 AM, Robert Blackstone wrote:
>>
>> I need a pagebreak in the ToC to avoid a widow.
>> So far I used the method given in sept 2010 in https://mailman.ntg.nl/pipermail/ntg-context/2010/052739.html, and
>> still on http://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break, but
>> it does not seem to work anymore.
>>
>> MWE (from the first-mentioned site):
>> %%%%%%%%%%%%%%%
>>
>> \definelistextra[page][before=\page,after=\page]
>>
>> \starttext
>>
>> \placelist[chapter,section][criterium=text,extras={1.1=page}]
>>
>> \chapter{x1}
>> \section{xx1}
>> \section{xx2}
>> \chapter{y2}
>> \section{yy1}
>> \section{yy2}
>>
>> \stoptext
>>
>> %%%%%%%%%%%%%%%%%
>> Compiled with a recent mkiv, from between sept 2015 till july 2016, the
>> result shows no page break in the ToC.
>> What can be done about this?
>
> \showinjector
>
> \setinjector[register][3][\column]
> \setinjector[list] [2][{\blank[3*big]}]
>
> \starttext
> \placelist[section][criterium=text]
> \blank[3*big]
> \placeregister[index][criterium=text]
> \page
> \startsection[title=Alpha] first \index{first} \stopsection
> \startsection[title=Beta] second \index{second} \stopsection
> \startsection[title=Gamma] third \index{third} \stopsection
> \startsection[title=Delta] fourth \index{fourth} \stopsection
> \stoptext
Thanks Hans, for your quick reaction.
Maybe my question was not clear enough but in any case your remedy does not help me.
I have adapted your MWE containing the remedy a bit to make the problem a bit more obvious:
%%%%%%%%%%%%%%%%%%
\setinjector[register][3][\column]
\setinjector[list] [][{\blank[3*big]}]
\starttext
\placelist[chapter,section][criterium=text]
\blank[3*big]
\startchapter[title={Introduction}]
\startsection[title=Alpha] \index{first} \stopsection
\startsection[title=Beta] second \index{second} \stopsection \stopchapter
\startchapter[title={History}]
\startsection[title=Gamma] third \index{third} \stopsection
\startsection[title=Delta] fourth \index{fourth} \stopsection \stopchapter
\startchapter[title={Index}]
\placeregister[index][criterium=text]
\stopchapter
\stoptext
%%%%%%%%%%%%%%%%
What I would need is a forced page break in the ToC, in this example before Chapter 2.
A few months ago this could still be accomplished by inserting into the preamble "\definelistextra[page][before=\page,after=\page]", and
"\placelist[chapter,section][criterium=text,extras={1.2=page}]" in the text.
But now, with the same version of mkiv, nothing happens.
Has this method of forcing a page-break in the ToC mysteriuosly diswppeared or do I use the worng command?
Best regards,
Robert Blackstone
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next parent reply other threads:[~2016-09-05 12:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.466.1473066418.2177.ntg-context@ntg.nl>
2016-09-05 12:50 ` Robert Blackstone [this message]
[not found] <mailman.495.1473145561.2177.ntg-context@ntg.nl>
2016-09-06 8:26 ` Robert Blackstone
2016-09-05 7:06 Robert Blackstone
2016-09-05 7:48 ` Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
2010-09-28 8:16 Steffen Wolfrum
2010-09-28 8:37 ` Elias Oltmanns
2010-09-28 8:49 ` Steffen Wolfrum
2010-09-28 9:19 ` Steffen Wolfrum
2010-09-28 9:35 ` Elias Oltmanns
2010-09-28 10:08 ` Steffen Wolfrum
2010-09-28 10:33 ` Mari Voipio
2010-09-29 7:22 ` Steffen Wolfrum
2010-09-29 8:55 ` Hans Hagen
2010-09-29 9:06 ` Steffen Wolfrum
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=19309646-3A30-40DD-AEF9-9D01EEF39743@gmail.com \
--to=blackstone.robert@gmail.com \
--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).