[NTG-context] Re: check if symbol or color is defined

2025-08-15 Thread Henning Hraban Ramm
ore such tools in the suite.) I know; even if I can’t make sense of all. But I should add grep to my toolset & book. Hraban ___ If your question is of interest to others as well, please add an entry to the Wik

[NTG-context] Re: ligatures and inputtranslation

2025-08-15 Thread Wolfgang Schuster
combinations have their own Unicode ligatures in each font variant. With \replaceword I could replace characters with characters, but I could not replace characters with a \utfchar.  In this MWE I tried to enable-disableinputtranslation in \setuphead but to no effect. What I would like to do is to

[NTG-context] Re: ligatures and inputtranslation

2025-08-15 Thread Rik Kabel
each font variant. With \replaceword I could replace characters with characters, but I could not replace characters with a \utfchar.  In this MWE I tried to enable-disableinputtranslation in \setuphead but to no effect. What I would like to do is to define two sets of replacements, i.e

[NTG-context] ligatures and inputtranslation

2025-08-15 Thread Michael Guravage
characters with characters, but I could not replace characters with a \utfchar. In this MWE I tried to enable-disableinputtranslation in \setuphead but to no effect. What I would like to do is to define two sets of replacements, i.e. translations, one for each font variant, and apply them to

[NTG-context] Re: Error with vskip and interaction in 20250813

2025-08-15 Thread Rik Kabel
boring to explain in detail in that perspective we also noted that nested notes could be a issue so there was a fix for that but maybe it has other side effects Ahh! That is just what is happening here. New MWE: \setupinteraction [state=start] \setupnotation[endnote][numbercommand

[NTG-context] Re: Error with vskip and interaction in 20250813

2025-08-14 Thread Hans Hagen via ntg-context
d act on possible side effects) ... to boring to explain in detail in that perspective we also noted that nested notes could be a issue so there was a fix for that but maybe it has other side effects And I was took quick to say it is good. It compiles, but there are significant differenc

[NTG-context] Re: Notes at end of book

2025-08-14 Thread Wolfgang Schuster
Am 14.08.2025 um 22:25 schrieb Thomas A. Schmitz: On 8/14/25 18:57, Hans Hagen wrote: ^^^ you stop something you don't start .. check the symmetry of start stop You are of course right - but that was just sloppy cut and paste. In this minimal example, I hope that all start ... stop

[NTG-context] Re: Error with vskip and interaction in 20250813

2025-08-14 Thread Rik Kabel
work-around in my example that would make it unnecessary. And I was took quick to say it is good. It compiles, but there are significant differences in labels between interaction start and stop. I will try to create a good demonstration tomorrow. -

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Florent Michel
] > > \starttext > > A well-known equation: > > \startmode[show_formula] > > \startformula > > e = \frac{m c^2}{\sqrt{1 - v^2 / c^2}} > > \stopformula > > \stopmode > > \stoptext > > ___ > > > > and run > > mtxrun --sc

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Bruce Horrocks
known equation: > \startmode[show_formula] > \startformula > e = \frac{m c^2}{\sqrt{1 - v^2 / c^2}} > \stopformula > \stopmode > \stoptext > ___ > > and run > mtxrun --script epub --images test.tex > context test.tex --mode=show-formula >

[NTG-context] Re: Notes at end of book

2025-08-14 Thread Thomas A. Schmitz
On 8/14/25 18:57, Hans Hagen wrote: wrt multiple setups: you can load all kind of xml files using explicit namespaces so, not #1 but {one} {two} etc an when you then need something you just access it explicitly, so no #1 but {two} ; you can mix and match any way you like the #1 approach is

[NTG-context] Re: Notes at end of book

2025-08-14 Thread Thomas A. Schmitz
On 8/14/25 18:57, Hans Hagen wrote: ^^^ you stop something you don't start .. check the symmetry of start stop You are of course right - but that was just sloppy cut and paste. In this minimal example, I hope that all start ... stops are properly set, and yet I get the same

[NTG-context] Re: Error with vskip and interaction in 20250813

2025-08-14 Thread Rik Kabel
[]     \samplefile klein\par     \startBlockQuotation     \startExtract     \samplefile klein \par     \stopExtract     \stopBlockQuotation     \stopendnote     \samplefile klein \par     \placenotes[endnote]     \stoptext The error can be eliminated by changing interaction to stop, but I want

[NTG-context] Re: How to use Metapost libraries with Metafun?

2025-08-14 Thread Henning Hraban Ramm
Am 14.08.25 um 19:04 schrieb Hans Hagen via ntg-context: On 8/14/2025 2:06 PM, Shiv Shankar Dayal wrote: I tried metaUML library as you suggested but it didn't work as Hans said. Then you need to figure out what makes it fail; keep in mind that arbitrary lua or metapost or tex code i

[NTG-context] Re: \chemical together with \frac

2025-08-14 Thread Thomas Meyer
Oh yeah, thank you Jim and Hans, I forgot that \frac is only in math-mode possible. Greeting Tomás Am 14.08.25 um 17:58 schrieb Jim: Hi Thomas, On Thu, Aug 14, 2025 at 14:43 (+0200), Thomas Meyer wrote: Hi folks, I try to write \chemical{Na + H_2O → NaOH + 1/2 H_2} and it works. But I do

[NTG-context] Re: How to use Metapost libraries with Metafun?

2025-08-14 Thread Hans Hagen via ntg-context
On 8/14/2025 2:06 PM, Shiv Shankar Dayal wrote: Dear Henning, I tried metaUML library as you suggested but it didn't work as Hans said. Then you need to figure out what makes it fail; keep in mind that arbitrary lua or metapost or tex code is not supposed to work in any other lua, met

[NTG-context] Re: Notes at end of book

2025-08-14 Thread Hans Hagen via ntg-context
On 8/14/2025 6:48 PM, Thomas A. Schmitz wrote: Your approach below looks promising, but when I try to wrap my xmlsetups in a \startsetups ... \stopsetups pair, I get this error: ! The file ended when scanning an argument. tex error   > tex error on line 37 in file ./test.

[NTG-context] Re: Notes at end of book

2025-08-14 Thread Thomas A. Schmitz
Your approach below looks promising, but when I try to wrap my xmlsetups in a \startsetups ... \stopsetups pair, I get this error: ! The file ended when scanning an argument. tex error > tex error on line 37 in file ./test.tex: \ignorearguments \popmacro \commalistcommand \xmlprocessf

[NTG-context] Re: \chemical together with \frac

2025-08-14 Thread Jim
Hi Thomas, On Thu, Aug 14, 2025 at 14:43 (+0200), Thomas Meyer wrote: > Hi folks, > I try to write > \chemical{Na + H_2O → NaOH + 1/2 H_2} > and it works. But I do not like 1/2 that way. > But if I want to use > \chemical{Na + H_2O → NaOH + \frac{1}{2} H_2}    %\frac or v

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Florent Michel
Hi Mikael, > We have some kind of working setup at the moment (here I have some lua > file that compiles lectures in different files to different xhtml > files, exporting svg files for formulas automatically, and so on), but > this is something that will be discussed further during

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Mikael Sundqvist
ompiles lectures in different files to different xhtml files, exporting svg files for formulas automatically, and so on), but this is something that will be discussed further during the meeting, and that probably needs some polishing. /Mikael ___

[NTG-context] \chemical together with \frac

2025-08-14 Thread Thomas Meyer
Hi folks, I try to write \chemical{Na + H_2O → NaOH + 1/2 H_2} and it works. But I do not like 1/2 that way. But if I want to use \chemical{Na + H_2O → NaOH + \frac{1}{2} H_2}    %\frac or variants of it it doesn't work. \chemical{Na + H_2O → NaOh +}\frac{1}{2}\chemical{H_2} doesn'

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Florent Michel
./test.tex --mode=show_formula > > mtxrun --script epub --images test > > ``` > > but it still does not seem to generate the images. Is there another > > option I should pass to either context or mtxrun to ensure the right xml > > file is generated/used? > > AFAIK

[NTG-context] Re: How to use Metapost libraries with Metafun?

2025-08-14 Thread Shiv Shankar Dayal
Dear Henning, I tried metaUML library as you suggested but it didn't work as Hans said. <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free.www.avast.com <https://www.avast.com/sig-email?utm_me

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Henning Hraban Ramm
Am 14.08.25 um 13:32 schrieb Florent Michel: Thanks a lot Henning! You’re welcome. I tried running: ``` context ./test.tex --mode=show_formula mtxrun --script epub --images test ``` but it still does not seem to generate the images. Is there another option I should pass to either context or

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Florent Michel
script epub --images test ``` but it still does not seem to generate the images. Is there another option I should pass to either context or mtxrun to ensure the right xml file is generated/used? > I would also put the export activation in a mode to avoid the overhead > while you don’t need it.

[NTG-context] mtxrun --script epub and modes

2025-08-14 Thread Florent Michel
/ c^2}} \stopformula \stopmode \stoptext ___ and run mtxrun --script epub --images test.tex context test.tex --mode=show-formula the pdf output is correct but the html output lacks the formula. (The output is correct if I delete `\startmode[show_formula]` and `\stopmode`.) Is there a w

[NTG-context] Re: Error with vskip and interaction in 20250813

2025-08-13 Thread Hans Hagen via ntg-context
\startExtract \samplefile klein \par \stopExtract \stopBlockQuotation \stopendnote \samplefile klein \par \placenotes[endnote] \stoptext The error can be eliminated by changing interaction to stop, but I want interaction. The vskip is needed here because blank does

[NTG-context] Re: Error with vskip and interaction in 20250813

2025-08-13 Thread Rik Kabel
\par > \stopExtract > \stopBlockQuotation > \stopendnote > > \samplefile klein \par > > \placenotes[endnote] > \stoptext > >The error can be eliminated by changing interaction to stop, but I want >interaction. > >The vskip is neede

[NTG-context] Error with vskip and interaction in 20250813

2025-08-13 Thread Rik Kabel
\stopendnote \samplefile klein \par \placenotes[endnote] \stoptext The error can be eliminated by changing interaction to stop, but I want interaction. The vskip is needed here because blank does not do the job, as you can test in the example. Is this a side effect of the new

[NTG-context] Re: Notes at end of book

2025-08-13 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht- > Von: Denis Maier via ntg-context > Gesendet: Mittwoch, 13. August 2025 23:36 > An: 'mailing list for ConTeXt users' > Cc: denisma...@mailbox.org > Betreff: [NTG-context] Re: Notes at end of book > > Ok, but can you do thi

[NTG-context] Re: Notes at end of book

2025-08-13 Thread Denis Maier via ntg-context
If I want to refer to page numbers, I need to process everything in the same ConTeXt > run to preserve the tuc file. But perhaps I'm on the wrong track and this is possible. I think this is the same run. (I'm running ConTeXt on the main.tex file once, which in turn uses \xmlprocessfile

[NTG-context] Re: Notes at end of book

2025-08-13 Thread Thomas A. Schmitz
. I don't think this the same use case. If I want to refer to page numbers, I need to process everything in the same ConTeXt run to preserve the tuc file. But perhaps I'm on the wrong track and this is possible. Also, it might be useful to take xml out of the equation here and rephras

[NTG-context] Re: Notes at end of book

2025-08-13 Thread Thomas A. Schmitz
mlregistersetup{xml:myallnewsetups}? But I have never used these commands, and there isn't a lot in the mailing archives about them. I'll experiment a bit and will be back with a more precise question. Thanks everybody, best wishes Thomas On 8/13/25 3:50 PM, Henning Hraban Ramm wr

[NTG-context] Re: tagigng

2025-08-13 Thread Mikael Sundqvist
ve slightly better control. The drawback is that you then need to type \startparagraph and \stopparagraph all the time. So, if you decide to go that route, you need to configure your own tagging setup, and then the should not go into Div (since that cannot be inside P), but maybe NonStruct. (Yo

[NTG-context] Re: tagigng

2025-08-13 Thread Mikael Sundqvist
om context structure onto what pdf sees as structure as of 2025. > This is not without risk as the pdf standard, tools, interpretations, > whatever are in constant flux. We don't fall into the target audience so > our decisions are guess work at best. > >> > >> That

[NTG-context] Re: tagigng

2025-08-13 Thread Matthias Weber
ue to some pressure on this list we have been looking into reasonable >>> mapping from context structure onto what pdf sees as structure as of 2025. >>> This is not without risk as the pdf standard, tools, interpretations, >>> whatever are in constant flux. We don't fa

[NTG-context] Re: tagigng

2025-08-13 Thread Mikael Sundqvist
constant flux. We don't fall into the target audience so > our decisions are guess work at best. > > > > That said, we now do the following. If you enable tagging > > > > \setuptagging[state=start] > > > > you get normal tagging, without so called rolemapping. Thi

[NTG-context] Re: tagigng

2025-08-13 Thread Matthias Weber
le tagging >> >> \setuptagging[state=start] >> >> you get normal tagging, without so called rolemapping. This can work out ok >> with (future) more clever parsers of the content stream (think llm). It >> doesn't pollute the pdf too much but of course bloa

[NTG-context] Re: tagigng

2025-08-13 Thread Matthias Weber
; you get normal tagging, without so called rolemapping. This can work out ok > with (future) more clever parsers of the content stream (think llm). It > doesn't pollute the pdf too much but of course bloats it. > > Then, if you want to go fuzzy, you can say > > \setupbackend >

[NTG-context] tagigng

2025-08-13 Thread Hans Hagen via ntg-context
esn't pollute the pdf too much but of course bloats it. Then, if you want to go fuzzy, you can say \setupbackend [format=pdf/ua-2] \setuptagging [state=start] This gives some basic mapping. Then there is a basic mapping that or with Mikael figured out and tested on lecture notes and a mat

[NTG-context] Re: Notes at end of book

2025-08-13 Thread Henning Hraban Ramm
] \starttext \xmlprocessfile{whatever}{chapter1.xml} \xmlprocessfile{whatever}{chapter2.xml} \placefootnotes \stoptext But, this won't help you with the backreferences... But maybe with a custom command you could place the pagereference in the margin (given you have also saved it to the lua table fo

[NTG-context] Re: Notes at end of book

2025-08-13 Thread Denis Maier via ntg-context
Hi Thomas, You know more about XML processing than I do, but how does your project setup look like? I imagine you should be able to keep track of the footnotes in a lua table (just like shown in the xml-mkiv manual) and place them manually with \placefootnotes where you want. Something like

[NTG-context] Notes at end of book

2025-08-13 Thread Thomas A. Schmitz
ue of this attribute and writes the content of all notes to an external file. Then, I can retrieve the notes from this file and include the page number from the \pagereference. I'm making some progress here, but am not quite sure how to use \xmltofile or \xmlsave (or their Lua counterparts lxml.tofi

[NTG-context] Re: How to use Metapost libraries with Metafun?

2025-08-13 Thread Hans Hagen via ntg-context
On 8/13/2025 11:26 AM, Shiv Shankar Dayal wrote: Hi, How can I use Metapost libraries from texlive in ConTeXt? maybe by using "input" but i wouldn't gamble on them working (read: they could overload and for sure have a different tex

[NTG-context] Re: regular online meet-up

2025-08-12 Thread Henning Hraban Ramm
Reminder: This is tonight. CU soon! Am 08.08.25 um 21:03 schrieb Hraban Ramm: You’re invited to our regular online meet-up, this upcoming Wednesday, August 13th, 20:00 CEST (UTC+2) at https://lecture.senfcall.de/hen-rbr-rku-oke (same, but shorter: https://u.mtxrun.eu/ctxmtg) ConTeXt users of

[NTG-context] Re: [ constructing poly lines in metafun using lua ]

2025-08-12 Thread vm via ntg-context
my vector line drawings with the calligraphic features that mp offers. Lots of small and longer lines with varying colors and pens. Generating the mp code directly works for smaller files. So with the hint that it is possible to bypass some of the parsing and thereby saving memory sounded appealing.

[NTG-context] Re: directory tree (dirtree module)

2025-08-12 Thread Hraban Ramm
Am 10.08.25 um 17:48 schrieb Hans Hagen: (i played a bit with the dirtree module and can have these symbols but you don't use that one so i leave it at that) I looked into your dirtree module. The MP font approach is interesting, I could probably add my own style with icons. Using glob a

[NTG-context] Re: ConTeXt query: Retain original spacing while applying shrinking to the font file

2025-08-11 Thread Henning Hraban Ramm
{\spaceskip 0.125em plus 0.15em} These seem both to work in ConTexT - of course you can fiddle till you come up with what looks satisfactory (and obviously the names \tightspaceskip, \verytightspaceskip can be altered). I group these in the paragraph or paragraphs that I want to shorten but I don'

[NTG-context] Re: Audible footnotes

2025-08-11 Thread John Was
ntinuing with reading of the main text). The following MWE > > essentially works in a rather Heath Robinson way (using \tagnote in > > place of \footnote), but there are obvious glitches (for example, italic > > and other font switches in a footnote ought really to be eliminated i

[NTG-context] Re: ConTeXt query: Retain original spacing while applying shrinking to the font file

2025-08-11 Thread Hans Hagen via ntg-context
ConTexT - of course you can fiddle till you come up with what looks satisfactory (and obviously the names \tightspaceskip, \verytightspaceskip can be altered). I group these in the paragraph or paragraphs that I want to shorten but I don't see why the definitions you come up with couldn't

[NTG-context] Re: Audible footnotes

2025-08-11 Thread Hans Hagen via ntg-context
main text).  The following MWE essentially works in a rather Heath Robinson way (using \tagnote in place of \footnote), but there are obvious glitches (for example, italic and other font switches in a footnote ought really to be eliminated in the audible version).  The reader would also have the

[NTG-context] Re: ConTeXt query: Retain original spacing while applying shrinking to the font file

2025-08-11 Thread John Was
up with what looks satisfactory (and obviously the names \tightspaceskip, \verytightspaceskip can be altered). I group these in the paragraph or paragraphs that I want to shorten but I don't see why the definitions you come up with couldn't be put in the preamble to your file, so tha

[NTG-context] Audible footnotes

2025-08-11 Thread John Was
works in a rather Heath Robinson way (using \tagnote in place of \footnote), but there are obvious glitches (for example, italic and other font switches in a footnote ought really to be eliminated in the audible version). The reader would also have the irritation of the notes being read again when the

[NTG-context] Re: ConTeXt query: Retain original spacing while applying shrinking to the font file

2025-08-11 Thread Hans Hagen via ntg-context
*default,extend=.925] \starttext \Regular \input{zapf} \Modified \input{zapf} \stoptext there is a 'spacing' pseudo feature that accepts things like 1.1 + 1.2 - 1.3 minus 1.4 plus 1.1 extra 1.4 but i haven'

[NTG-context] Re: saving and loading lua tables

2025-08-10 Thread Henning Hraban Ramm
while the library is called "lfs". i probably need to update that document ... some day ... but making a list of what is missing is quite some work originally we used the lfs library but it got adapted ... in luametatex the name sort of sticks but it's a different implementation

[NTG-context] Re: directory tree as itemization

2025-08-10 Thread Hraban Ramm
Am 10.08.25 um 17:50 schrieb Wolfgang Schuster: Am 09.08.2025 um 22:57 schrieb Henning Hraban Ramm: Or are items the wrong approach for this? You don't need/want to use the itemize mechanism but use on of the following methods: 1. Use \leftskip to increment each level by a fixed amount an

[NTG-context] Re: directory tree as itemization

2025-08-10 Thread Hraban Ramm
Am 10.08.25 um 17:48 schrieb Hans Hagen: (i played a bit with the dirtree module and can have these symbols but you don't use that one so i leave it at that) Oops, there’s already a dirtree module? I should have known… (Nothing in the source browser, nothing in the wiki.) H

[NTG-context] Re: directory tree as itemization

2025-08-10 Thread Hraban Ramm
options for changing the symbol of some single items (not whole levels)?   * \sym{} works, but there’s no \startsym … \stopsym and I’d prefer to     use a complete structure to properly wrap a sub-itemization.   * \startitem[symbol=1] … \stopitem isn’t possible. hm, we can probably add that

[NTG-context] Re: directory tree as itemization

2025-08-10 Thread Wolfgang Schuster
(not whole levels)?   * \sym{} works, but there’s no \startsym … \stopsym and I’d prefer to     use a complete structure to properly wrap a sub-itemization.   * \startitem[symbol=1] … \stopitem isn’t possible. hm, we can probably add that .. wolfgang? We already have \startsym with

[NTG-context] Re: saving and loading lua tables

2025-08-10 Thread Hans Hagen via ntg-context
d "lfs". i probably need to update that document ... some day ... but making a list of what is missing is quite some work originally we used the lfs library but it got adapted ... in luametatex the name sort of sticks but it's a different implementation (for various reasons)

[NTG-context] Re: [ constructing poly lines in metafun using lua ]

2025-08-10 Thread Hans Hagen via ntg-context
ectly in MP but easily run out of memory tokens when the drawing is complex enough. is there a way to define a function to draw a particular line passing its coords and pen and color? do_line(path, pen, color) where path is a list of x,y points? 8<--- \usecolors[crayola] \startMPpag

[NTG-context] Re: directory tree as itemization

2025-08-10 Thread Wolfgang Schuster
Am 09.08.2025 um 22:57 schrieb Henning Hraban Ramm: I’m working on the rendering of directory trees. Before I try a MetaPost drawing, I’d like to use a nested itemization. What are my options for changing the symbol of some single items (not whole levels)? * \sym{} works, but there’s no

[NTG-context] Re: directory tree as itemization

2025-08-10 Thread Hans Hagen via ntg-context
On 8/9/2025 10:57 PM, Henning Hraban Ramm wrote: I’m working on the rendering of directory trees. Before I try a MetaPost drawing, I’d like to use a nested itemization. What are my options for changing the symbol of some single items (not whole levels)? * \sym{} works, but there’s no

[NTG-context] Re: Illustrations in running text.

2025-08-10 Thread Hans Hagen via ntg-context
On 8/10/2025 3:28 PM, Mikael Sundqvist wrote: Hi, On Sun, Aug 10, 2025 at 3:26 PM Hans Hagen via ntg-context wrote: On 8/10/2025 11:26 AM, John Was wrote: Dear Wolfgang and Pablo Many thanks for the replies. I've no immediate requirement for small in-text graphics but it's t

[NTG-context] Re: Illustrations in running text.

2025-08-10 Thread Mikael Sundqvist
Hi, On Sun, Aug 10, 2025 at 3:26 PM Hans Hagen via ntg-context wrote: > > On 8/10/2025 11:26 AM, John Was wrote: > > Dear Wolfgang and Pablo > > > > Many thanks for the replies. I've no immediate requirement for small > > in-text graphics but it's the so

[NTG-context] Re: tagging

2025-08-10 Thread Hans Hagen via ntg-context
On 8/9/2025 6:24 PM, Pablo Rodriguez via ntg-context wrote: The required namespace is PDF-2.0 (in this case), not any PDF/UA. pdf2/ssn is 2.0 but in practioce it's a mix of pdf/ssn and pdf2/ssn because there is this 'some in 1', 'some in 2', 'some in whatever

[NTG-context] Re: Illustrations in running text.

2025-08-10 Thread Hans Hagen via ntg-context
On 8/10/2025 11:26 AM, John Was wrote: Dear Wolfgang and Pablo Many thanks for the replies.  I've no immediate requirement for small in-text graphics but it's the sort of thing that could well come up in a journal article or some of the early English volumes I copy-edit and typese

[NTG-context] Re: Illustrations in running text.

2025-08-10 Thread Matthias Weber
ote: > > Dear Wolfgang and Pablo > > Many thanks for the replies. I've no immediate requirement for small in-text > graphics but it's the sort of thing that could well come up in a journal > article or some of the early English volumes I copy-edit and typeset. (But my &

[NTG-context] Re: Illustrations in running text.

2025-08-10 Thread John Was
Dear Wolfgang and Pablo Many thanks for the replies. I've no immediate requirement for small in-text graphics but it's the sort of thing that could well come up in a journal article or some of the early English volumes I copy-edit and typeset. (But my lateral-thinking brain is just be

[NTG-context] directory tree as itemization

2025-08-09 Thread Henning Hraban Ramm
I’m working on the rendering of directory trees. Before I try a MetaPost drawing, I’d like to use a nested itemization. What are my options for changing the symbol of some single items (not whole levels)? * \sym{} works, but there’s no \startsym … \stopsym and I’d prefer to use a

[NTG-context] [ constructing poly lines in metafun using lua ]

2025-08-09 Thread vm via ntg-context
A while ago in one of the online meetings it was pointed out that one can feed aa point list in metafun using a lua table. I haven't been able to figure out how to do that. Has any one a hint? At presnt I use a script to generate the path directly in MP but easily run out of memory tokens

[NTG-context] Re: ConTeXt 1.06 does not recognize "\centerdot" and "\neg"

2025-08-09 Thread Abdelhak Ferhat
cute successfully. > > I'm using AlmaLinux 9.6. > > You could to: > > \Umathchardef \centerdot "2"0"B7 > \Umathchardef \neg "0"0"AC > > but keep in mind that in text mode these characters are taken from the > current math fo

[NTG-context] Re: ConTeXt 1.06 does not recognize "\centerdot" and "\neg"

2025-08-09 Thread Abdelhak Ferhat
ntered > \scalarproduct > \tochar{x:00B7} > \tochar{u:middle dot} > \tochar{u:midpoint} > > \usemodule[mathml] > \startbuffer > · > \stopbuffer > \processxmlbuffer > > $\neg\neg\neg$ > \stop

[NTG-context] Re: ConTeXt 1.06 does not recognize "\centerdot" and "\neg"

2025-08-09 Thread Hans Hagen via ntg-context
0B7 } \protected\def\neg{\Umathchar "0"0"AC } all three versions execute successfully. I'm using AlmaLinux 9.6. You could to: \Umathchardef \centerdot "2"0"B7 \Umathchardef \neg "0"0"AC but keep in mind that in text m

[NTG-context] Re: Redefined ~ conserves \protected status although \show~ does not say so

2025-08-09 Thread Hans Hagen via ntg-context
e features and control, when configured to kick in which is what we do (just like ^^ and __ in math have meaning but only when enabled) Hans - Hans Hagen | PRAGMA ADE Ridde

[NTG-context] Re: Redefined ~ conserves \protected status although \show~ does not say so

2025-08-09 Thread Hans Hagen via ntg-context
On 8/8/2025 9:17 PM, user691586 via ntg-context wrote: Thanks for the detailed explanations. in the exmaple i showed, changing the amcode will make it unprotected but i assume you checked that already Yes, setting the amcode to zero (in a local context -sic) solved my problem. Which is why

[NTG-context] Re: Redefined ~ conserves \protected status although \show~ does not say so

2025-08-08 Thread user691586 via ntg-context
Thanks for the detailed explanations. > > in the exmaple i showed, changing the amcode will make it unprotected > but i assume you checked that already Yes, setting the amcode to zero (in a local context -sic) solved my problem. Which is why I asked if that was considered a stable f

[NTG-context] regular online meet-up

2025-08-08 Thread Hraban Ramm
You’re invited to our regular online meet-up, this upcoming Wednesday, August 13th, 20:00 CEST (UTC+2) at https://lecture.senfcall.de/hen-rbr-rku-oke (same, but shorter: https://u.mtxrun.eu/ctxmtg) ConTeXt users of all levels are welcome! Looking forward to seeing you, Hraban (Same blurb as

[NTG-context] Re: Redefined ~ conserves \protected status although \show~ does not say so

2025-08-08 Thread Hans Hagen via ntg-context
I.e. lose protection if not using explicitly `\protected\def`. A secondary issue (or looked as an issue) is that `\show` would not say `\protected macro` in reporting status of `~`. But perhaps I assume wrongly the redefined `~` is `\protected` from the fact that it does not expand in an `

[NTG-context] Re: Redefined ~ conserves \protected status although \show~ does not say so

2025-08-08 Thread user691586 via ntg-context
d\def`. A secondary issue (or looked as an issue) is that `\show` would not say `\protected macro` in reporting status of `~`. But perhaps I assume wrongly the redefined `~` is `\protected` from the fact that it does not expand in an `\edef`. Maybe ConTeXt has other way which do not compare to

[NTG-context] Re: Redefined ~ conserves \protected status although \show~ does not say so

2025-08-08 Thread Hans Hagen via ntg-context
e in the editor (contrary to a nbsp character) and because etc always did that. fwiw: We also make _ and ^ and & behave like other characters because there is no reason to do otherwise. An ` is handled in math as prime but is also kind of special, as are . and , while in math ^ ^^ ^^^ and

[NTG-context] Re: ntg-context Digest, Vol 252, Issue 5

2025-08-07 Thread Wolfgang Schuster
tfontsetup (SomeSystemFont scaled at etc.), however works, but seems a bit brute force. :-( 1. It would be useful to get a complete working minimal example to show the problem and not just a few snippets we have to put together. 2. Check if you get the same output when you switch to LuaTeX as engine, i

[NTG-context] Re: ntg-context Digest, Vol 252, Issue 5

2025-08-06 Thread Benjamin Buchmuller
Hi Mikael, Thanks for your suggestion. Unfortunately, both problems still persist. Regarding #2, I'm really curious why the scoping in framedtext doesn't work with \bgroup … \egroup. Forcing a \highlight with \directfontsetup (SomeSystemFont scaled at etc.), however works, but s

[NTG-context] tagging

2025-08-06 Thread Hans Hagen via ntg-context
Hi, For those waiting for an update wrt tagging. We have what we call a 'basic mapping' that vis suposed to work for most cases. Some time next week there will be an update but we're testing some more. Our starting point is that we don't want to cripple the cont

[NTG-context] Re: Did the font size mechanism change??

2025-08-05 Thread Mikael Sundqvist
Hi! On Wed, Aug 6, 2025 at 6:38 AM Benjamin Buchmuller wrote: > > Hi list, > > Here is an issue that I should have discovered earlier, but didn't. Probably > out of fear that issues as the following would arise. > > I recently updated from: > > ["sta

[NTG-context] Did the font size mechanism change??

2025-08-05 Thread Benjamin Buchmuller
Hi list, Here is an issue that I should have discovered earlier, but didn't. Probably out of fear that issues as the following would arise. I recently updated from: ["stamp"]="2024.06.21 23:45", ["version"]=0x1.547ae147ae148p+0, to: [&quo

[NTG-context] Caption alignment and \startfloatcombination

2025-08-05 Thread Florent Michel
Hi, I came across a (to me) surprising behaviour with captions and \startfloatcombination ... \stopfloatcombination, in the specific case where I set `title` for the combination but not for any sub-figure. If the last sub-figure has a number, the main caption is justified, as I would expect

[NTG-context] Re: testing language tagging?

2025-08-01 Thread Pablo Rodriguez via ntg-context
On 7/31/25 19:39, Mikael Sundqvist wrote: > > Yes, same for blockquote. And as far as I understand BlockQuote is not > in the pdf2 namespace, but in pdf1.7 one. It is still available in > ua2, though. Hi Mikael, I don’t have the standard, but I replaced `/delimitedcontent

[NTG-context] Re: testing language tagging?

2025-07-31 Thread Mikael Sundqvist
at the structure) > > > > > > Well, since my sample was PDF/UA-2, I guess you know that `Blockquote` > is deprecated from PDF-2.0. > > > > > > >This quote contains two paragraphs. > > > > > > > > > >

[NTG-context] Re: testing language tagging?

2025-07-31 Thread Pablo Rodriguez via ntg-context
>This quote contains two paragraphs. > > > > > >You just read the first one, this is the second one. > > Sorry, but paragraphs that contain text don’t require an empty paragraph inside a break/NonStruct element (sorry, bu

[NTG-context] Re: numbering subitems

2025-07-30 Thread Wolfgang Schuster
ments", but I don’t know to which values – I found it only documented for sections. """ \setupitemize[packed,joinedup,n] Add "repeat". Thank you! It’s even documented, but I didn’t expect that parameter. Would it work with numbersegments or prefixsegments? No,

[NTG-context] Re: numbering subitems

2025-07-30 Thread Henning Hraban Ramm
Am 30.07.25 um 20:11 schrieb Wolfgang Schuster: Am 30.07.2025 um 19:59 schrieb Henning Hraban Ramm: Hi, I’d like to have the number of the parent element in the number of a subitem, like 2.1, 2.2 etc. I guess I must set "numbersegments", but I don’t know to which values – I fou

[NTG-context] Re: numbering subitems

2025-07-30 Thread Wolfgang Schuster
Am 30.07.2025 um 19:59 schrieb Henning Hraban Ramm: Hi, I’d like to have the number of the parent element in the number of a subitem, like 2.1, 2.2 etc. I guess I must set "numbersegments", but I don’t know to which values – I found it only documented for sections. ""&q

[NTG-context] numbering subitems

2025-07-30 Thread Henning Hraban Ramm
Hi, I’d like to have the number of the parent element in the number of a subitem, like 2.1, 2.2 etc. I guess I must set "numbersegments", but I don’t know to which values – I found it only documented for sections. """ \setupitemize[packed,joinedup,n] \setupitemize[2]

[NTG-context] Re: testing language tagging?

2025-07-30 Thread Mikael Sundqvist
agraph} > >>\stopblockquote} > > > > so you want language on a paragraph> btw, paragraph is kind of costly, > > maybe i need to check that too; there is also bpar but that one is > > ungrouped > > No, I was checking tagging and I found an issue. >

[NTG-context] Re: testing language tagging?

2025-07-30 Thread Hans Hagen via ntg-context
[\recursestring] \dorecurse{3}{\startparagraph testing language: \currentlanguage \stopparagraph} \stopblockquote} so you want language on a paragraph> btw, paragraph is kind of costly, maybe i need to check that too; there is also bpar but that one is ungrouped No, I was check

[NTG-context] Re: testing language tagging?

2025-07-30 Thread Pablo Rodriguez via ntg-context
uote[\recursestring] >>\dorecurse{3}{\startparagraph >>testing language: \currentlanguage >>\stopparagraph} >>\stopblockquote} > > so you want language on a paragraph> btw, paragraph is kind of costly, > maybe i need to check that too; there is also bpar bu

[NTG-context] Re: testing language tagging?

2025-07-29 Thread Hans Hagen via ntg-context
On 7/29/2025 8:07 PM, Pablo Rodriguez via ntg-context wrote: Hi Hans, I did some basic testing with language tagging and but I’m afraid even `agr` still gives `agr` (not `grc`). we're currently messing around with these mappings for tags and think we have at least a solution to 'al

[NTG-context] testing language tagging?

2025-07-29 Thread Pablo Rodriguez via ntg-context
Hi Hans, I did some basic testing with language tagging and but I’m afraid even `agr` still gives `agr` (not `grc`). Is language tagging still to be finished? BTW, is there any way to know which commands have language tagging (a `language` key enabled? Just for the record, my testing sample

  1   2   3   4   5   6   7   8   9   10   >