Re: [NTG-context] bug in latest beta?
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 ___ 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] bug in latest beta?
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 ___ 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] bug in latest beta?
On 09/05/2016 08:36 AM, josephcan...@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 ___ 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] bug in latest beta?
On Mon, Sep 5, 2016 at 4:33 PM, Pablo Rodriguezwrote: > 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 ___ 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] bug in latest beta?
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 ___ 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 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] Enumeration: chapter in counter, problem next to placefigure, and documentation issues
> On 04.09.16, at 21:54, Otared Kavianwrote: > > Hi Florian, > > The following setup works fine here, I wonder whether this is what you want: > > \defineenumeration[theorem] > [text={Theorem}, > style=slanted, > title=yes, > alternative=hanging, > % hang=2, > width=fit, > right={~}, > way=bychapter, > % way=bysection, > prefix=yes, > % prefixsegments={chapter:section}, > prefixsegments={chapter}, > ] > > Another more versatile solution is to define an enumeration like the > \proclaim definition of plain TeX, as follows: > > \defineenumeration[proclaim] > [text=, > style=slanted, > title=yes, > titleleft=, > titleright={.}, > alternative=hanging, > % hang=2, > width=fit, > right={~}, > way=bychapter, > % way=bysection, > prefix=yes, > % prefixsegments={chapter:section}, > prefixsegments={chapter}, > ] > > and the use it as in the following example: > > \startproclaim{Pythagoras Theorem} > The square on the hypotenuse is equal to the sum of the squares on the other > two sides. > \stopproclaim > > You can play with other options in the setups above and tune them to your > taste. > > Best regards: OK > >> On 4 Sep 2016, at 19:37, Florian Leupold wrote: >> >> Dear list, >> >> I am trying to use enumerations with MKIV I am a bit at a loss when it comes >> to the documentation (see below for a few issues). >> >> Working on a concrete example, I have come pretty close to what I want for >> my enumeration ‘theorem’: >> >> \setupexternalfigures[location=default] >> \setupenumerations[ >> alternative=left, >> text=Theorem, >> headstyle=bold, >> title=no, >> way=bychapter, >> stopper={:}, >> distance=1ex, >> width=fit, >> style=normal, >> hang=fit] >> \defineenumeration[theorem] >> \starttext >> \chapter{First chapter} >> \starttheorem >> The square on the hypotenuse is equal to the sum of the squares on the other >> two sides. >> \stoptheorem >> \chapter{Second chapter} >> \placefigure[right, none]{}{\externalfigure[mill]} >> \starttheorem >> The square on the hypotenuse is equal to the sum of the squares on the other >> two sides. >> \stoptheorem >> \stoptext >> >> QUESTIONS: >> 1) I would like to prefix the theorem counter with the chapter number, such >> that the number of the second theorem becomes 2.1. Can this be done? >> 2) Is it possible to circumvent the misplacement of the second theorem due >> to the placed figure? Ideally, the theorem would just use the space to the >> left it. >> >> Issues with the documentation: >> - In “ConTeXt Commands”, it says on page 224 that \setupenumeration inherits >> from \setupcounter; but in “ConTEXt reference manual", it says on page 246 >> that \setupenumerations inherits from \setupdescriptions. >> - In “ConTEXt reference manual”, the key “location” for \defineenumeration >> should probably replaced by “alternative”. Right now, all examples on page >> 247 are unaffected by this setting and hence look the same. >> - The wiki seems to use MKII, which makes a difference for the example on >> http://wiki.contextgarden.net/Command/enumeration, which compiles >> differently under ConTeXT online. >> >> Thanks for your help! >> >> Best regards, >> Florian >> ___ >> 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 >> ___ > > ___ > 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 > ___ Dear Otared and Wolfgang, thanks for your helpful suggestions and information! 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] \defineenumeration[theorem] \starttext \placefigure[right, none]{}{\externalfigure[mill]} \starttheorem The
[NTG-context] bug in latest beta?
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. -- Akira ___ 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 ___
[NTG-context] insert pagebreak in toc (MkIV)
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 ___ 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] bug in latest beta?
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. BTW this new rangedimension function is helpful. Joseph De : Pablo Rodriguez___ 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 ___