Re: [NTG-context] Table of contents in the middle of a document
Try: \completecontent [criterium=all] Alan On Tue, 18 Apr 2023 01:06:02 +0200 Kalouguine Andre via ntg-context wrote: > Hi, > > I was trying to have my "Acknowledgements" section/chapter before the > table of contents but be contained within it. > > Is it normal that the table of contents is empty if there is a chapter > that begins before it? > > ``` > > \starttext > \chapter{Acknowledgements} > Thank you > > \completecontent > > \chapter{Intro} > > \chapter{Problem} > > \chapter{Solution} > \stoptext > > ``` > > I'm mostly looking for an explanation rather than a direct solution, > I'd like to understand why it's empty. It works when using sections > instead of chapters. > > Best regards, ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Table of contents in the middle of a document
Hi, I was trying to have my "Acknowledgements" section/chapter before the table of contents but be contained within it. Is it normal that the table of contents is empty if there is a chapter that begins before it? ``` \starttext \chapter{Acknowledgements} Thank you \completecontent \chapter{Intro} \chapter{Problem} \chapter{Solution} \stoptext ``` I'm mostly looking for an explanation rather than a direct solution, I'd like to understand why it's empty. It works when using sections instead of chapters. Best regards, -- Kalouguine Andre___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] \setupitemize[indentnext=auto] broken?
On 4/17/2023 7:06 AM, Aditya Mahajan via ntg-context wrote: On Sun, 16 Apr 2023, Aditya Mahajan via ntg-context wrote: On Sat, 15 Apr 2023, Jim via ntg-context wrote: % \setupindenting[medium,yes] \setupitemize[indentnext=auto] \startitemize \item One \stopitemize This paragraph should be indented - due to the blank line after \type{\stopitemize}. \startitemize \item Two \stopitemize This paragraph should not be indented. % Works in mkiv but appears to be a bug in lmtx. I haven't debugged what is going wrong. `indentnext=auto` doesn't appear to work for any environment. can you test with this patch \permanent\protected\protected\def\spac_indentation_check_next_indentation {\global\enforced\let\dorechecknextindentation\relax \begingroup \autoparagraphmode\zerocount \doifelsenextchar\par\endgroup{\endgroup\spac_indentation_variant_no}} % messy check as next is seldom \par - 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] xmlsetentity on the fly?
I tried \directlua{lxml.registerentity("DATE","NEWDATE")} and \directlua{lxml.registerentity("DATE","NEWDATE")} but neither does effect a change in the entity. Why is that entry not set in the Lua-table entities? (file xml-ent.lua) has as that function: function xml.registerentity(key,value) entities[key] = value if trace_entities then report_xml("registering entity %a as %a",key,value) end end > On 17 Apr 2023, at 12:32, Hans van der Meer wrote: > > I would like to change an entity 'on the fly'. Example > > \def\DATE{THEDATE}\expanded{\xmlsetentity{DATE}{\DATE}} > > \startxmlsetups typ:event > > \def\DATE{NEWDATE}\expanded{\xmlsetentity{DATE}{\DATE}} > > Using &DATE; within the . > > \stopxmlsetups > > However, using &DATE; inside an always results in THEDATE and never > in NEWDATE. > > How can I change the value of the entity inside the xmlsetups? > dr. Hans van der Meer___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] xmlsetentity on the fly?
> Use \xmltexentity Already tried this. But doesn't work. I guess it has more to do with the definition of the entity in the stsrem. met vriendelijke groet, dr. Hans van der Meer Burgemeester Rijnderslaan 244 1185 MC Amstelveen tel. 020 6452701 / 06 53743629 > On 17 Apr 2023, at 13:00, Thomas A. Schmitz via ntg-context > wrote: > > Use \xmltexentity > > Thomas > >> On 17. Apr 2023, at 12:32, Hans van der Meer via ntg-context >> wrote: >> >> I would like to change an entity 'on the fly'. Example > > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] xmlsetentity on the fly?
Use \xmltexentity Thomas > On 17. Apr 2023, at 12:32, Hans van der Meer via ntg-context > wrote: > > I would like to change an entity 'on the fly'. Example ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] xmlsetentity on the fly?
I would like to change an entity 'on the fly'. Example \def\DATE{THEDATE}\expanded{\xmlsetentity{DATE}{\DATE}} \startxmlsetups typ:event \def\DATE{NEWDATE}\expanded{\xmlsetentity{DATE}{\DATE}} Using &DATE; within the . \stopxmlsetups However, using &DATE; inside an always results in THEDATE and never in NEWDATE. How can I change the value of the entity inside the xmlsetups? dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] new uplaod
Dear list, In case someone else stumbles upon this issue, the following code works. MWE: \autofences \starttext $\left]-\infty; a\right[$ \stoptext Best regards, Alex Le 22 sept. 2022 à 12:59 +0200, Alexandre Christe , a écrit : > Hi Hans, > > Thanks a lot for the example. It works great in most cases, however what I > stumbled upon is with the interval notation, in particular the following > cases arise: > - closed interval: easy, since the delimiters are [... ; ... ] > - open interval: not easy, since the delimiters are ]... ; ... [ (or with a > parenthesis as in the US, but there it works) > - semi open interval: not easy, since the delimiters are either [... ; ... [ > or ]... ; ...] (or in the US [...; ...) or (... ; ...]) > > I guess there is a need for a special definition for these. Maybe they're > already in the works... > > By the way, if I define in the preamble \autofences, is there a command to > disable it locally? Would be very helpful to deal with the above situations. > > Best regards, > Alex > > > Le dim. 11 sept. 2022 à 20:42, Hans Hagen via ntg-context > > a écrit : > > > On 9/10/2022 9:45 AM, Alexandre Christe via ntg-context wrote: > > > > Hi Hans, > > > > > > > > Will |\mvert|and|\midalso be included in the \autofencelogic? It would > > > > be quite useful.| > > > we don't have \mvert so i'll add that ... in a next upload you can do > > > the attached (kind of experimental as Mikael and I need to review this > > > which we will do next week) > > > > > > Hans > > > > > > - > > > 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 / > > > https://www.ntg.nl/mailman/listinfo/ntg-context > > > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > > wiki : https://contextgarden.net > > > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___