Re: [NTG-context] numbering questions

2022-12-31 Thread Duncan Hothersall via ntg-context
I can't test right now but would something like \setuphead[Day][sectionsegments=Day:Month:Year] help? Duncan On Sat, 31 Dec 2022 at 17:24, Henning Hraban Ramm via ntg-context < ntg-context@ntg.nl> wrote: > A happy new year to everyone! > > I’m playing with some examples of section numbering.

Re: [NTG-context] Xml filtering in Lua

2022-11-16 Thread Duncan Hothersall via ntg-context
Hi Thomas. I'm not sure about the code, sorry, but I do know that an XML document can't have two IDs of the same value. Typically you would use a linkend attribute on the element which is referencing an id (in this case the topics, I think). Probably doesn't help with your problem, but it's

Re: [NTG-context] overprinting black

2022-11-09 Thread Duncan Hothersall via ntg-context
Have you tried overprint=yes? I have that in old files which used to work under mkii. I must admit I haven't had the need to use overprinting since then, but I do recall that come colour handling wasn't ported across to mkiv or later. Duncan On Wed, 9 Nov 2022 at 16:12, Henning Hraban Ramm via

Re: [NTG-context] MathML when processing XML

2022-05-30 Thread Duncan Hothersall via ntg-context
Answering my own question - the rules in x-mathml.mkxl/.lmt assume *only* an mml: namespace on MathML elements. Having built my current project on the basis of the examples in the XML in mkiv manual, I had two layers of namespaces in addition to that. Redoing the mappings for the MathML elements

[NTG-context] MathML when processing XML

2022-05-29 Thread Duncan Hothersall via ntg-context
This feels like a really stupid question but I can't find an answer to it anywhere. When processing an XML file directly with ConTeXt, i.e. using \startxmlsetups rules, how can I make use of the MathML module for the MathML content in my XML source? Should I include a specific piece of code with

Re: [NTG-context] XML Namespaces and XML Setups

2022-05-24 Thread Duncan Hothersall via ntg-context
st] > >xmlns:o="NameSpaceO"> > text text > > \stopbuffer > \xmlprocessbuffer{demo}{test}{} > \stoptext > > > On 23 May 2022, at 09:07, Duncan Hothersall via ntg-context < > ntg-context@ntg.nl> wrote: > > > > I found this un

Re: [NTG-context] XML Namespaces and XML Setups

2022-05-23 Thread Duncan Hothersall via ntg-context
I found this unanswered question on the list from November 2020 and find today that I have the same question. How can one handle elements with the same name but in different namespaces? How should the different \startxmlsetups commands be written? Thanks. Duncan On Mon, 16 Nov 2020 at 13:37,

Re: [NTG-context] XML: calculations on attribute values before output

2022-05-05 Thread Duncan Hothersall via ntg-context
. Thanks again. Duncan On Thu, 5 May 2022 at 08:21, Taco Hoekwater wrote: > > > > On 4 May 2022, at 22:10, Duncan Hothersall via ntg-context < > ntg-context@ntg.nl> wrote: > > > > Hi. > > > > I'm processing an XML table and need to set a row span. Becau

[NTG-context] XML: calculations on attribute values before output

2022-05-04 Thread Duncan Hothersall via ntg-context
Hi. I'm processing an XML table and need to set a row span. Because we use a variant of the CALS table model, spans are defined by an attribute saying how many *additional* rows should be spanned, as opposed to how many *in total*. So to translate this into TABLE \bTD[nr=X] syntax I need to add

Re: [NTG-context] XML processing instructions

2022-05-03 Thread Duncan Hothersall via ntg-context
st use arbitrary context code in xml: >> >> >> >> \def\xmltexdirective#1#2{\doif{#1}{command}{#2}} >> >> >> >> \xmlinstalldirective{tex}{xmltexdirective} >> >> >> >> >> >> >> >>

Re: [NTG-context] XML processing instructions

2022-05-02 Thread Duncan Hothersall via ntg-context
tive} > > > > > > > > > > > > Best, > > Denis > > > > *Von:* Maier, Denis Christian (UB) > *Gesendet:* Montag, 2. Mai 2022 09:45 > *An:* 'mailing list for ConTeXt users' > *Cc:* Duncan Hothersall > *

Re: [NTG-context] XML processing instructions

2022-05-02 Thread Duncan Hothersall via ntg-context
Apologies, there are two rogue * in the lxml.preprocessor code, but even when they are removed it doesn't work. On Mon, 2 May 2022 at 08:19, Duncan Hothersall wrote: > I have a big set of existing XML books (held in a derivative of DocBook) > which I'm looking to start processing directly with

[NTG-context] XML processing instructions

2022-05-02 Thread Duncan Hothersall via ntg-context
I have a big set of existing XML books (held in a derivative of DocBook) which I'm looking to start processing directly with ConTeXt. (Up to now I have a system which converts the XML into ConTeXt code which is then processed, but this is inefficient and lots of the code is now unsupported.) I've

Re: [NTG-context] Space around figure

2022-04-28 Thread Duncan Hothersall via ntg-context
You should be able to change the space above and below a float with the spacebefore and spaceafter keys to \setupfloat. I think the default value is big for each, but you can override that with null. Something like \setupfloat[figure][spacebefore=,spaceafter=] Hope that helps. Duncan On Thu,

Re: [NTG-context] How to group list of figures and list of tables by chapter?

2022-03-30 Thread Duncan Hothersall via ntg-context
You could try using \writebetweenlist hooked into \setuphead[chapter]? Something like (untested): \setuphead[chapter][before={\writebetweenlist[figure][location=here]{\blank}}] (Sorry, can't currently test this.) Duncan On Thu, 31 Mar 2022 at 06:31, Werner Schmidt via ntg-context <

Re: [NTG-context] Bloody PDF boxes and cr*p marks!

2021-10-31 Thread Duncan Hothersall via ntg-context
Thank you for this, that's the first time this stuff has made any sense to me. On Sat, 30 Oct 2021 at 20:22, Henning Hraban Ramm via ntg-context < ntg-context@ntg.nl> wrote: > I finally reworked the wiki page https://wiki.contextgarden.net/PDF_Boxes > and also extended

Re: [NTG-context] A book with sections

2021-10-24 Thread Duncan Hothersall via ntg-context
Worth just quickly noting that the default for \part is placehead=no. You need to explicitly set placehead=yes for it to actually output the heading. See https://wiki.contextgarden.net/Command/_section#Parts On Sun, 24 Oct 2021 at 00:02, Bruce Horrocks via ntg-context < ntg-context@ntg.nl> wrote: