Re: [NTG-context] insert pagebreak in toc (MkIV)
On 6 Sep 2016, at 09:06 , Robert Blackstone> To: ntg-context@ntg.nl > > On 5 Sep 2016, at 11:06 , Hans Hagen 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 > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] bug in latest beta? > Message-ID: <58e9fb16-dade-5cb0-3c0c-c2cc572d9...@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 > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] bug in latest beta? > Message-ID: >
Re: [NTG-context] insert pagebreak in toc (MkIV)
On 5 Sep 2016, at 11:06 , Hans Hagenwrote > > 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 ___
Re: [NTG-context] insert pagebreak in toc (MkIV)
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 ___
Re: [NTG-context] insert pagebreak in toc (MkIV)
Am 28.09.2010 um 12:33 schrieb Mari Voipio: On Tue, Sep 28, 2010 at 12:19, Steffen Wolfrum cont...@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 ___
Re: [NTG-context] insert pagebreak in toc (MkIV)
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 Wolfrumcont...@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 ___
Re: [NTG-context] insert pagebreak in toc (MkIV)
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 Wolfrumcont...@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 ___
Re: [NTG-context] insert pagebreak in toc (MkIV)
Steffen Wolfrum cont...@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 ___
Re: [NTG-context] insert pagebreak in toc (MkIV)
Am 28.09.2010 um 10:37 schrieb Elias Oltmanns: Steffen Wolfrum cont...@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 ___
Re: [NTG-context] insert pagebreak in toc (MkIV)
Am 28.09.2010 um 10:49 schrieb Steffen Wolfrum: Am 28.09.2010 um 10:37 schrieb Elias Oltmanns: Steffen Wolfrum cont...@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 ___
Re: [NTG-context] insert pagebreak in toc (MkIV)
Steffen Wolfrum cont...@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 cont...@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 ___
Re: [NTG-context] insert pagebreak in toc (MkIV)
Am 28.09.2010 um 11:35 schrieb Elias Oltmanns: Steffen Wolfrum cont...@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 cont...@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 ___
Re: [NTG-context] insert pagebreak in toc (MkIV)
On Tue, Sep 28, 2010 at 12:19, Steffen Wolfrum cont...@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 ___