Re: [NTG-context] Chapter numbering after \part

2020-08-20 Thread Wolfgang Schuster
jbf schrieb am 21.08.2020 um 04:27: By default, chapter numbers coming after \part are numbered 1.1... 2.1... and so on. But in my case I need them to still be simply 1,2... for each part. Is there a way I can get this numbering to occur? I thought I could do it using ownnumber=, but that

[NTG-context] Chapter numbering after \part

2020-08-20 Thread jbf
By default, chapter numbers coming after \part are numbered 1.1... 2.1... and so on. But in my case I need them to still be simply 1,2... for each part. Is there a way I can get this numbering to occur? I thought I could do it using ownnumber=, but that doesn't work. Then I tried a makeup,

[NTG-context] Chapter heading with rules

2020-08-20 Thread jbf
Have achieved a Chapter title with rules either side (see below - not an original invention!) but I want the chapter number to be part of 'My Chapter Title'; instead, the following MWE means it comes before the ChapterLeftRule. I know I can do it by actually putting the number before My

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-20 Thread Mike Cooper
Thank you Wolfgang!! I was taken away to other work for several days and just got back to this now. Works great! THANKS! > -Original Message- > From: Wolfgang Schuster [mailto:wolfgang.schuster.li...@gmail.com] > Sent: Tuesday, August 11, 2020 12:07 PM > To: mailing list for ConTeXt

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Pablo Rodriguez
On 8/20/20 1:10 PM, Hans Hagen wrote: > On 8/20/2020 12:38 PM, Pablo Rodriguez wrote: >> [...] >> This time, I have to remove two words, such as in: >> >>string.gsub([[\xmlraw{#1}{.}]]," del ", " "):gsub(" de la ", " ")} >> >> But they could be more (and replacements might be added to that

Re: [NTG-context] [BUG] \registerexternalfigure doesn't work

2020-08-20 Thread Wolfgang Schuster
Henri Menke schrieb am 20.08.2020 um 07:05: Dear list, To get properties of a figure without actually typesetting it, it is handy to use \registerexternalfigure. However, trying to use it fails. Consider the following MWE: \starttext \registerexternalfigure[cow.pdf] \stoptext

[NTG-context] Wiki New Extension: ConTeXtXML

2020-08-20 Thread Taco Hoekwater
Hi, As announced last week, I have been working on a wiki extension to control the editing of /Command pages. That extension is now installed on the main wiki. In short, we will switch to XML as the page model for newly created /Command pages. This makes editing a bit harder, but it allows

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Hans Hagen
On 8/20/2020 12:38 PM, Pablo Rodriguez wrote: On 8/20/20 11:27 AM, Hans Hagen wrote: On 8/19/2020 6:10 PM, Pablo Rodriguez wrote: [...] Is there any way to remove " of " and " of the " in the filtered content (xml:special)? Sorry, Lua code is crap for sure. [...] \startxmlsetups

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Pablo Rodriguez
On 8/20/20 11:27 AM, Hans Hagen wrote: > On 8/19/2020 6:10 PM, Pablo Rodriguez wrote: >> [...] >> Is there any way to remove " of " and " of the " in the filtered content >> (xml:special)? >> >> Sorry, Lua code is crap for sure. > [...] > \startxmlsetups xml:initialize >

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Pablo Rodriguez
On 8/20/20 11:08 AM, Taco Hoekwater wrote: > [...] > There is pretty much always ‘a way’, but I do not know of a ’nice’ way. > Your problem is that lxml.flush() and friends do not return a value, > they just do a direct context(‘’) call behind the scenes with no > return string for you to

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Hans Hagen
On 8/19/2020 6:10 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \startbuffer[demo] This is One of the best a paragraph. This is another paragraph. This is another Two of the best paragraph. This

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Taco Hoekwater
> On 19 Aug 2020, at 18:10, Pablo Rodriguez wrote: > > Dear list, > > I have the following sample: > > \startbuffer[demo] > > > >This is > One of the best a paragraph. >This is another paragraph. >This is another > Two of the best