ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: jbf <roma83537@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: help with forced page break in TOC
Date: Mon, 5 Oct 2020 13:53:17 +1100	[thread overview]
Message-ID: <5e3f40bc-0779-e7a8-0059-9dd27610aefb@gmail.com> (raw)


[-- 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
___________________________________________________________________________________

             reply	other threads:[~2020-10-05  2:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-05  2:53 jbf [this message]
2020-10-05 22:38 ` Willi Egger
2020-10-05 22:47   ` jbf

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=5e3f40bc-0779-e7a8-0059-9dd27610aefb@gmail.com \
    --to=roma83537@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).