Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Adam Reviczky via ntg-context
Hi Willi, You could also access the number by using the \getmarking[chapternumber][current]. I think you have used a similar approach in the https://wiki.contextgarden.net/Thumb_index. Adam On Tue, Mar 22, 2022 at 11:15 PM Willi Egger via ntg-context < ntg-context@ntg.nl> wrote: > Hello Adam!

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Willi Egger via ntg-context
Hello Adam! Many thanks for your solution. — It works very well in your example and also in an extended version with \startfrontmatter..\stopfrontmatter \startbodymatter…\stopbodymatter. — Unfortunately It does not work to my wish in the actual setup of my book. — I am using now the solution

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Willi Egger via ntg-context
Hello Sreeram! What a nice and simple solution. After fiddling a bit I got it working also in my environment for the book! — Thank you so much for the support. Kind regrards Willi > On 22 Mar 2022, at 03:29, śrīrāma via ntg-context wrote: > > On Tuesday, March 22, 2022 2:17 AM Willi Egger

Re: [NTG-context] redefining xmlsetups inside a XML document

2022-03-22 Thread mf via ntg-context
I've added a in the element (BTW, "text/x-lua" is the mimetype proposed by freedesktop.org for lua scripts. That element is managed by this code: -- if mimetype and mimetype == "text/x-lua" then local code = xml.text(s) context( "\\startluacode " ..

Re: [NTG-context] redefining xmlsetups inside a XML document

2022-03-22 Thread mf via ntg-context
I found the solution I was looking for. The command to run is still context --environment=nested-xmlsetup.tex --forcexml nested-xmlsetup.xhtml In the element there's some tex code, which redefines the xmlsetups for

and elements, coloring the first ones in red and