insert pagebreak in toc (MkIV)
Hi, somewhere I saw the code how to insert a pagebreak in the table of content. I remember it somehow was related to the new structure model (one could specify after which sections the table should break). But I don't remember how it was done .... Could someone help, please? Thanks, Steffen
Steffen Wolfrum
Hi,
somewhere I saw the code how to insert a pagebreak in the table of content. I remember it somehow was related to the new structure model (one could specify after which sections the table should break).
\completecontent[pageboundaries={20.3,30}] Regards, Elias
Am 28.09.2010 um 10:37 schrieb Elias Oltmanns:
Steffen Wolfrum
wrote: Hi,
somewhere I saw the code how to insert a pagebreak in the table of content. I remember it somehow was related to the new structure model (one could specify after which sections the table should break).
\completecontent[pageboundaries={20.3,30}]
Yes, that's what I meant ;o) Thank you! Steffen
Am 28.09.2010 um 10:49 schrieb Steffen Wolfrum:
Am 28.09.2010 um 10:37 schrieb Elias Oltmanns:
Steffen Wolfrum
wrote: Hi,
somewhere I saw the code how to insert a pagebreak in the table of content. I remember it somehow was related to the new structure model (one could specify after which sections the table should break).
\completecontent[pageboundaries={20.3,30}]
In current context it doesn't show any effect. Is it obsolete in MkIV? Steffen
Steffen Wolfrum
Am 28.09.2010 um 10:49 schrieb Steffen Wolfrum:
Am 28.09.2010 um 10:37 schrieb Elias Oltmanns:
Steffen Wolfrum
wrote: Hi,
somewhere I saw the code how to insert a pagebreak in the table of content. I remember it somehow was related to the new structure model (one could specify after which sections the table should break).
\completecontent[pageboundaries={20.3,30}]
In current context it doesn't show any effect.
It does here (updated minimals today) and in MkIV too. Do you have an example that doesn't work? Regards, Elias
Am 28.09.2010 um 11:35 schrieb Elias Oltmanns:
Steffen Wolfrum
wrote: Am 28.09.2010 um 10:49 schrieb Steffen Wolfrum:
Am 28.09.2010 um 10:37 schrieb Elias Oltmanns:
Steffen Wolfrum
wrote: Hi,
somewhere I saw the code how to insert a pagebreak in the table of content. I remember it somehow was related to the new structure model (one could specify after which sections the table should break).
\completecontent[pageboundaries={20.3,30}]
In current context it doesn't show any effect.
It does here (updated minimals today) and in MkIV too. Do you have an example that doesn't work?
I'll send you some file privately. Steffen
On Tue, Sep 28, 2010 at 12:19, Steffen Wolfrum
\completecontent[pageboundaries={20.3,30}]
In current context it doesn't show any effect. Is it obsolete in MkIV?
It works for me, even in the fairly complex files that I recently upgraded from MKII to MKIV. I would've gone back to using MKII if it didn't work... BTW, my magic line is \placecontent[pageboundaries={5.2}] (I do the TOC heading separately.) I just tested it works, my ConTeXt is ver 2010.09.22. Regards, Mari
Am 28.09.2010 um 12:33 schrieb Mari Voipio:
On Tue, Sep 28, 2010 at 12:19, Steffen Wolfrum
wrote: \completecontent[pageboundaries={20.3,30}]
In current context it doesn't show any effect. Is it obsolete in MkIV?
It works for me, even in the fairly complex files that I recently upgraded from MKII to MKIV. I would've gone back to using MKII if it didn't work...
BTW, my magic line is \placecontent[pageboundaries={5.2}]
(I do the TOC heading separately.)
I just tested it works, my ConTeXt is ver 2010.09.22.
If I use eg. pageboundaries={I.} it seems to work ... but: it works on *all* sections with "I."!! If I want to be more precise and use pageboundaries={B.I.} it does not show any effect. So my assumption is: the pageboundaires command only works if I have a full-path list, like this ... A. Test B. Test B.I. Test B.II. Test C. Test But mine looks like this: A. Test B. Test I. Test II. Test C. Test Am I right, that pageboundaries doesn't work with the second setup?! Steffen
On 29-9-2010 9:22, Steffen Wolfrum wrote:
Am 28.09.2010 um 12:33 schrieb Mari Voipio:
On Tue, Sep 28, 2010 at 12:19, Steffen Wolfrum
wrote: \completecontent[pageboundaries={20.3,30}]
In current context it doesn't show any effect. Is it obsolete in MkIV?
It works for me, even in the fairly complex files that I recently upgraded from MKII to MKIV. I would've gone back to using MKII if it didn't work...
BTW, my magic line is \placecontent[pageboundaries={5.2}]
(I do the TOC heading separately.)
I just tested it works, my ConTeXt is ver 2010.09.22.
If I use eg. pageboundaries={I.} it seems to work ... but: it works on *all* sections with "I."!!
If I want to be more precise and use pageboundaries={B.I.} it does not show any effect.
So my assumption is: the pageboundaires command only works if I have a full-path list, like this ...
wrong assumption. the page boundary mechanism has never been adapted to the new structure code so, I've decided to kick out pageboundaries and provide a more general mechanism \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 the specification passed in extras uses numbers i.e. no funny conversions and strips leading and trailing zero numbered sections. ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 29.09.2010 um 10:55 schrieb Hans Hagen:
On 29-9-2010 9:22, Steffen Wolfrum wrote:
Am 28.09.2010 um 12:33 schrieb Mari Voipio:
On Tue, Sep 28, 2010 at 12:19, Steffen Wolfrum
wrote: \completecontent[pageboundaries={20.3,30}]
In current context it doesn't show any effect. Is it obsolete in MkIV?
It works for me, even in the fairly complex files that I recently upgraded from MKII to MKIV. I would've gone back to using MKII if it didn't work...
BTW, my magic line is \placecontent[pageboundaries={5.2}]
(I do the TOC heading separately.)
I just tested it works, my ConTeXt is ver 2010.09.22.
If I use eg. pageboundaries={I.} it seems to work ... but: it works on *all* sections with "I."!!
If I want to be more precise and use pageboundaries={B.I.} it does not show any effect.
So my assumption is: the pageboundaires command only works if I have a full-path list, like this ...
wrong assumption. the page boundary mechanism has never been adapted to the new structure code
so, I've decided to kick out pageboundaries and provide a more general mechanism
\definelistextra[page][before=\page,after=\page]
a very inspiring mechanism, great!
\starttext
\placelist[chapter,section][criterium=text,extras={1.1=page}]
\chapter{x1} \section{xx1} \section{xx2} \chapter{y2} \section{yy1} \section{yy2}
\stoptext
the specification passed in extras uses numbers i.e. no funny conversions and strips leading and trailing zero numbered sections.
:o) Steffen
participants (4)
-
Elias Oltmanns
-
Hans Hagen
-
Mari Voipio
-
Steffen Wolfrum