* help with forced page break in TOC
@ 2020-10-05 2:53 jbf
2020-10-05 22:38 ` Willi Egger
0 siblings, 1 reply; 3+ messages in thread
From: jbf @ 2020-10-05 2:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1062 bytes --]
I am unable to adapt the example given in
https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break to my
situation:
In my case, the ToC has no chapters per se, but uses a defined \mytitle.
This produces a series of unnumbered items in the ToC.
The example in contextgarden tells me to first define the break, which I
have done:
\definelistextra[page][before=\page]
It then tells me to call this in where I \placecontent (in my case I am
using my own defined \placecombined list[content]). The example given
in the wiki is:
\placecontent[extras={6=page}]
But I have unnumbered items which are titles (mytitles), so I am not
sure what to replace '6' with. I tried:
\placecombinedlist[content][extras={mytitle title={Elements of
Reading}=page}] since 'Elements of reading' is the title before which I
want the page break to occur. This does not work. I tried variation of
it, e.g. since it is the third such title I tried ][extras={3=page}] but
that does nothing either.
Any clues as to how I can resolve this small problem?
Julian
[-- Attachment #1.2: Type: text/html, Size: 3522 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: help with forced page break in TOC
2020-10-05 2:53 help with forced page break in TOC jbf
@ 2020-10-05 22:38 ` Willi Egger
2020-10-05 22:47 ` jbf
0 siblings, 1 reply; 3+ messages in thread
From: Willi Egger @ 2020-10-05 22:38 UTC (permalink / raw)
To: NTG-Context ConTeXt users
Hello Julian,
the mechanism does not work in the typesetting of the TOC.
Whatt you is the following, when the book is in a final stage:
run the file with \showinjector. This will give you in the left margin the numbers of the different TOC-entries.
Now you can say
\setinjector[list] [“the number of the injector where the break must take place][\page]
I hope that this is solving your issue.
Kind regards
Willi
> On 5 Oct 2020, at 04:53, jbf <roma83537@gmail.com> wrote:
>
> I am unable to adapt the example given in https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break to my situation:
>
> In my case, the ToC has no chapters per se, but uses a defined \mytitle. This produces a series of unnumbered items in the ToC.
>
> The example in contextgarden tells me to first define the break, which I have done:
>
> \definelistextra[page][before=\page]
> It then tells me to call this in where I \placecontent (in my case I am using my own defined \placecombined list[content]). The example given in the wiki is:
>
> \placecontent[extras={6=page}]
> But I have unnumbered items which are titles (mytitles), so I am not sure what to replace '6' with. I tried:
>
> \placecombinedlist[content][extras={mytitle title={Elements of Reading}=page}] since 'Elements of reading' is the title before which I want the page break to occur. This does not work. I tried variation of it, e.g. since it is the third such title I tried ][extras={3=page}] but that does nothing either.
>
> Any clues as to how I can resolve this small problem?
>
> Julian
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: help with forced page break in TOC
2020-10-05 22:38 ` Willi Egger
@ 2020-10-05 22:47 ` jbf
0 siblings, 0 replies; 3+ messages in thread
From: jbf @ 2020-10-05 22:47 UTC (permalink / raw)
To: Willi Egger; +Cc: mailing list for ConTeXt users
Thanks Willi, that is the solution. So I then took a look at
\showinjector on the wiki (and \setinjector) and found pretty much what
you explained. Pity there isn't a link from the other page to this that
I might have found when I first went looking...
Is it the case that the #Forced_Page_break reference in the wiki simply
no longer applies in any situation? Anyway, that aside, thank you for
the solution.
Julian
On 6/10/20 9:38 am, Willi Egger wrote:
> Hello Julian,
>
> the mechanism does not work in the typesetting of the TOC.
>
> Whatt you is the following, when the book is in a final stage:
>
> run the file with \showinjector. This will give you in the left margin the numbers of the different TOC-entries.
>
> Now you can say
>
> \setinjector[list] [“the number of the injector where the break must take place][\page]
>
>
> I hope that this is solving your issue.
> Kind regards
>
> Willi
>> On 5 Oct 2020, at 04:53, jbf <roma83537@gmail.com> wrote:
>>
>> I am unable to adapt the example given in https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break to my situation:
>>
>> In my case, the ToC has no chapters per se, but uses a defined \mytitle. This produces a series of unnumbered items in the ToC.
>>
>> The example in contextgarden tells me to first define the break, which I have done:
>>
>> \definelistextra[page][before=\page]
>> It then tells me to call this in where I \placecontent (in my case I am using my own defined \placecombined list[content]). The example given in the wiki is:
>>
>> \placecontent[extras={6=page}]
>> But I have unnumbered items which are titles (mytitles), so I am not sure what to replace '6' with. I tried:
>>
>> \placecombinedlist[content][extras={mytitle title={Elements of Reading}=page}] since 'Elements of reading' is the title before which I want the page break to occur. This does not work. I tried variation of it, e.g. since it is the third such title I tried ][extras={3=page}] but that does nothing either.
>>
>> Any clues as to how I can resolve this small problem?
>>
>> Julian
>>
>> ___________________________________________________________________________________
>> 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://context.aanhet.net
>> archive : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> ___________________________________________________________________________________
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-10-05 22:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-05 2:53 help with forced page break in TOC jbf
2020-10-05 22:38 ` Willi Egger
2020-10-05 22:47 ` jbf
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).