ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* insert pagebreak in toc (MkIV)
@ 2016-09-05  7:06 Robert Blackstone
  2016-09-05  7:48 ` Hans Hagen
  0 siblings, 1 reply; 14+ messages in thread
From: Robert Blackstone @ 2016-09-05  7:06 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 891 bytes --]

Dear all (but maybe in particular Dear Hans),

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?

Thanks in advance for any help.

Best regards,
Robert Blackstone

 

[-- Attachment #1.2: Type: text/html, Size: 1719 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: insert pagebreak in toc (MkIV)
  2016-09-05  7:06 insert pagebreak in toc (MkIV) Robert Blackstone
@ 2016-09-05  7:48 ` Hans Hagen
  0 siblings, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2016-09-05  7:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 9/5/2016 9:06 AM, Robert Blackstone wrote:
> Dear all (but maybe in particular Dear Hans),
>
> 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

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: insert pagebreak in toc (MkIV)
       [not found] <mailman.495.1473145561.2177.ntg-context@ntg.nl>
@ 2016-09-06  8:26 ` Robert Blackstone
  0 siblings, 0 replies; 14+ messages in thread
From: Robert Blackstone @ 2016-09-06  8:26 UTC (permalink / raw)
  To: ntg-context


On 6 Sep 2016, at 09:06 ,  Robert Blackstone <blackstone.robert@gmail.com>
> To: 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.
> .. etc.

Dear Hans, 
My apologies. Your remedy does help. Initially I just didn’t understand what to do with this injector.

Best regards,
Robert Blackstone


> 
> 
> 
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Mon, 5 Sep 2016 16:33:53 +0200
> From: Pablo Rodriguez <oinos@gmx.es>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] bug in latest beta?
> Message-ID: <58e9fb16-dade-5cb0-3c0c-c2cc572d9e6b@gmx.es>
> Content-Type: text/plain; charset=utf-8
> 
> On 09/05/2016 10:39 AM, Akira Kakuto wrote:
>>> the following sample gives a Lua error with latest beta (2016.09.04 13:46):
>> 
>> Compilation is fine in the latest luatex 0.98.4 with
>> mtx-context     | current version: 2016.09.04 13:46.
>> 
> 
> Hi Akira,
> 
> it seems that luatex-0.98.4 has been released for Windows today.
> 
> I will wait for the release in the Linux 32bit platform.
> 
> Luigi, would it be possible that all platforms have the latest LuaTeX
> version included?
> 
> Many thanks for your help,
> 
> 
> Pablo
> -- 
> http://www.ousia.tk
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Mon, 5 Sep 2016 16:44:16 +0200
> From: luigi scarso <luigi.scarso@gmail.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] bug in latest beta?
> Message-ID:
> 	<CAG5iGsAuy8=DrGFP6YM37ungYB_xrYs76ydu2aSx74W1HXBUZA@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
> On Mon, Sep 5, 2016 at 4:33 PM, Pablo Rodriguez <oinos@gmx.es> wrote:
>> On 09/05/2016 10:39 AM, Akira Kakuto wrote:
>>>> the following sample gives a Lua error with latest beta (2016.09.04 13:46):
>>> 
>>> Compilation is fine in the latest luatex 0.98.4 with
>>> mtx-context     | current version: 2016.09.04 13:46.
>>> 
>> 
>> Hi Akira,
>> 
>> it seems that luatex-0.98.4 has been released for Windows today.
>> 
>> I will wait for the release in the Linux 32bit platform.
>> 
>> Luigi, would it be possible that all platforms have the latest LuaTeX
>> version included?
> 
> experimental is, well, experimental, so not trunk and not even a tag
> (i.e. a new version).
> But you can easily compile it from svn, it's a matter of
> ./build.sh --parallel --jit
> 
> 
> -- 
> luigi
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Mon, 5 Sep 2016 17:10:51 +0200
> From: Pablo Rodriguez <oinos@gmx.es>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] bug in latest beta?
> Message-ID: <2aaaf0cb-153a-8a12-e49c-78856eda2dbc@gmx.es>
> Content-Type: text/plain; charset=utf-8
> 
> On 09/05/2016 08:36 AM, josephcanedo@gmail.com wrote:
>> Dear all,
>> 
>> Sounds like  a typo in file
>> tex/texmf-context/tex/context/base/mkiv/node-nut.lua line 238
>> 
>> find_tail should be findtail I think.
> 
> Hi Joseph,
> 
> sorry for overlooking your message.
> 
> Of course, you are right. (I cannot code, but defining a local variable
> in line 233 and using it with an underscore in line 238 doesn’t make
> sense even to me.)
> 
> I’m afraid that the typo is present in the newer beta from today
> (2016.09.05 10:28).
> 
> Many thanks for your help,
> 
> 
> Pablo
> -- 
> http://www.ousia.tk
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Mon, 5 Sep 2016 17:32:08 +0200
> From: Pablo Rodriguez <oinos@gmx.es>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] bug in latest beta?
> Message-ID: <adea72e3-383f-1318-4411-73970f92201a@gmx.es>
> Content-Type: text/plain; charset=utf-8
> 
> On 09/05/2016 04:44 PM, luigi scarso wrote:
>> On Mon, Sep 5, 2016 at 4:33 PM, Pablo Rodriguez wrote:
>>> [...]
>>> Luigi, would it be possible that all platforms have the latest LuaTeX
>>> version included?
>> 
>> experimental is, well, experimental, so not trunk and not even a tag
>> (i.e. a new version).
>> But you can easily compile it from svn, it's a matter of
>> ./build.sh --parallel --jit
> 
> Sorry for the noise, Luigi.
> 
> I have corrected the variable (as described in
> https://mailman.ntg.nl/pipermail/ntg-context/2016/086761.html) and it
> works fine.
> 
> Many thanks for your help,
> 
> Pablo
> -- 
> http://www.ousia.tk
> 
> 
> ------------------------------
> 
> Message: 6
> Date: Mon, 5 Sep 2016 20:55:58 -0400 (EDT)
> From: Aditya Mahajan <adityam@umich.edu>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] Enumeration: chapter in counter, problem
> 	next to placefigure, and documentation issues
> Message-ID: <alpine.OSX.2.02.1609052054170.4342@nqv-znpobbx>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
> 
> On Mon, 5 Sep 2016, Florian Leupold wrote:
> 
>> One problem, however, persists: The theorem environment gets misplaced 
>> when a figure is placed to its left:
>> 
>> \setupexternalfigures[location=default]
>> \setupenumerations[
>> 	alternative=left,
>> 	text=Theorem,
>> 	title=no,
>> 	stopper={:},
>> 	distance=0ex,
>> 	width=fit,
>> 	right={~},
>> 	style=normal,
>> 	hang=fit]
> 
> I am not sure what visual layout you want, but how about using:
> 
> \setupenumerations[
>         alternative=serried,
>         text=Theorem,
>         title=no,
>         stopper={:},
>         distance=0ex,
>         width=fit,
>         right={~},
>         style=normal,
>       ]
> \defineenumeration[theorem]
> 
> Aditya
> 
> 
> 
> ------------------------------
> 
> Message: 7
> Date: Tue, 6 Sep 2016 06:43:28 +0200
> From: Pablo Rodriguez <oinos@gmx.es>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] bug in latest beta?
> Message-ID: <992d5527-6fa2-53ee-1905-886447ff5ea1@gmx.es>
> Content-Type: text/plain; charset=utf-8
> 
> On 09/05/2016 05:10 PM, Pablo Rodriguez wrote:
>> [...]
>> I’m afraid that the typo is present in the newer beta from today
>> (2016.09.05 10:28).
> 
> The issue has been fixed in latest beta (2016.09.06 00:28).
> 
> Hans, many thanks for the fix.
> 
> 
> Pablo
> -- 
> http://www.ousia.tk
> 
> 
> ------------------------------
> 
> Message: 8
> Date: Tue, 6 Sep 2016 09:05:47 +0200
> From: Henri Menke <henrimenke@gmail.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] Perhaps missing braces in buff-ini.mkiv?
> Message-ID: <b171a15c-2e4b-0372-7c92-9a37370a0de1@gmail.com>
> Content-Type: text/plain; charset=utf-8
> 
> Bump
> 
> On 08/09/2016 10:54 AM, Henri Menke wrote:
>> Dear list,
>> 
>> it seems as if there are braces missing in the definition of \buff_save around #2.
>> 
>> \def\buff_save[#1][#2]%
>>  {...
>>    {\setupcurrentsavebuffer[\c!list={#1},\c!file=#2]}%
>>  ...}
>> 
>> I think they are missing, because it makes the following work, even though arguments and key-value arguments shouldn't be mixed up.
>> 
>> \startbuffer[hash]
>> foo
>> \stopbuffer
>> \savebuffer[hash][hello.txt,prefix=no]
>> \starttext
>> \stoptext
>> 
>> I think you should either make a third argument for a key-value list or just make the second argument the key-value list.  Then users could input \savebuffer[hash][file=hello.txt,prefix=no].
>> 
>> Cheers, Henri
>> 
> 
> 
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> ___________________________________________________________________________________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 
> ------------------------------
> 
> End of ntg-context Digest, Vol 147, Issue 12
> ********************************************

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: insert pagebreak in toc (MkIV)
       [not found] <mailman.466.1473066418.2177.ntg-context@ntg.nl>
@ 2016-09-05 12:50 ` Robert Blackstone
  0 siblings, 0 replies; 14+ messages in thread
From: Robert Blackstone @ 2016-09-05 12:50 UTC (permalink / raw)
  To: ntg-context


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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: insert pagebreak in toc (MkIV)
  2010-09-29  8:55           ` Hans Hagen
@ 2010-09-29  9:06             ` Steffen Wolfrum
  0 siblings, 0 replies; 14+ messages in thread
From: Steffen Wolfrum @ 2010-09-29  9:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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<context@st.estfiles.de>  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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: insert pagebreak in toc (MkIV)
  2010-09-29  7:22         ` Steffen Wolfrum
@ 2010-09-29  8:55           ` Hans Hagen
  2010-09-29  9:06             ` Steffen Wolfrum
  0 siblings, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2010-09-29  8:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Steffen Wolfrum

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<context@st.estfiles.de>  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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: insert pagebreak in toc (MkIV)
  2010-09-28 10:33       ` Mari Voipio
@ 2010-09-29  7:22         ` Steffen Wolfrum
  2010-09-29  8:55           ` Hans Hagen
  0 siblings, 1 reply; 14+ messages in thread
From: Steffen Wolfrum @ 2010-09-29  7:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 28.09.2010 um 12:33 schrieb Mari Voipio:

> On Tue, Sep 28, 2010 at 12:19, Steffen Wolfrum <context@st.estfiles.de> 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

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: insert pagebreak in toc (MkIV)
  2010-09-28  9:19     ` Steffen Wolfrum
  2010-09-28  9:35       ` Elias Oltmanns
@ 2010-09-28 10:33       ` Mari Voipio
  2010-09-29  7:22         ` Steffen Wolfrum
  1 sibling, 1 reply; 14+ messages in thread
From: Mari Voipio @ 2010-09-28 10:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Sep 28, 2010 at 12:19, Steffen Wolfrum <context@st.estfiles.de> 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.


Regards,

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: insert pagebreak in toc (MkIV)
  2010-09-28  9:35       ` Elias Oltmanns
@ 2010-09-28 10:08         ` Steffen Wolfrum
  0 siblings, 0 replies; 14+ messages in thread
From: Steffen Wolfrum @ 2010-09-28 10:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 28.09.2010 um 11:35 schrieb Elias Oltmanns:

> Steffen Wolfrum <context@st.estfiles.de> wrote:
>> Am 28.09.2010 um 10:49 schrieb Steffen Wolfrum:
>> 
>>> 
>>> Am 28.09.2010 um 10:37 schrieb Elias Oltmanns:
>>> 
>>>> Steffen Wolfrum <context@st.estfiles.de> 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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: insert pagebreak in toc (MkIV)
  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
  1 sibling, 1 reply; 14+ messages in thread
From: Elias Oltmanns @ 2010-09-28  9:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Steffen Wolfrum <context@st.estfiles.de> wrote:
> Am 28.09.2010 um 10:49 schrieb Steffen Wolfrum:
>
>> 
>> Am 28.09.2010 um 10:37 schrieb Elias Oltmanns:
>> 
>>> Steffen Wolfrum <context@st.estfiles.de> 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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: insert pagebreak in toc (MkIV)
  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:33       ` Mari Voipio
  0 siblings, 2 replies; 14+ messages in thread
From: Steffen Wolfrum @ 2010-09-28  9:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 28.09.2010 um 10:49 schrieb Steffen Wolfrum:

> 
> Am 28.09.2010 um 10:37 schrieb Elias Oltmanns:
> 
>> Steffen Wolfrum <context@st.estfiles.de> 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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: insert pagebreak in toc (MkIV)
  2010-09-28  8:37 ` Elias Oltmanns
@ 2010-09-28  8:49   ` Steffen Wolfrum
  2010-09-28  9:19     ` Steffen Wolfrum
  0 siblings, 1 reply; 14+ messages in thread
From: Steffen Wolfrum @ 2010-09-28  8:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 28.09.2010 um 10:37 schrieb Elias Oltmanns:

> Steffen Wolfrum <context@st.estfiles.de> 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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: insert pagebreak in toc (MkIV)
  2010-09-28  8:16 Steffen Wolfrum
@ 2010-09-28  8:37 ` Elias Oltmanns
  2010-09-28  8:49   ` Steffen Wolfrum
  0 siblings, 1 reply; 14+ messages in thread
From: Elias Oltmanns @ 2010-09-28  8:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Steffen Wolfrum <context@st.estfiles.de> 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}]

Regards,

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

* insert pagebreak in toc (MkIV)
@ 2010-09-28  8:16 Steffen Wolfrum
  2010-09-28  8:37 ` Elias Oltmanns
  0 siblings, 1 reply; 14+ messages in thread
From: Steffen Wolfrum @ 2010-09-28  8:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-09-06  8:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-05  7:06 insert pagebreak in toc (MkIV) Robert Blackstone
2016-09-05  7:48 ` Hans Hagen
     [not found] <mailman.495.1473145561.2177.ntg-context@ntg.nl>
2016-09-06  8:26 ` Robert Blackstone
     [not found] <mailman.466.1473066418.2177.ntg-context@ntg.nl>
2016-09-05 12:50 ` Robert Blackstone
  -- 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

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).