[NTG-context] Re: PDF, runner, and TikZ patches
On 3/18/2024 1:31 AM, Jim wrote: On Sat, Mar 16, 2024 at 15:20 (+0100), Hans Hagen wrote: On 3/16/2024 2:10 PM, Jim wrote: On Fri, Mar 15, 2024 at 01:53 (+0100), Aditya Mahajan wrote: On Thu, 14 Mar 2024, Jim wrote: Max (et al), were you hoping the ConTeXt distribution would ship its own pgfutil-context.def, or were you hoping that someone could convince Henri to put the RGB change in? We can patch some of the definitions of pgfutil-context.def in m-tikz if really needed, but it would be preferable to first check if tikz maintainers are willing to merge them upstream. Unfortunately, it seems that the maintainer feels that if we can't deal with cmyk profiles, we shouldn't have cmyk at all. I don't agree, but that's where it ended. (I was arguing for plain TeX support at the time in the linked^2 message, but I was able to add the definition for cmyk to my own macro file, so I was able to process examples with cmyk colours.) What does the maintainer mean by that ... context The maintainer's comment was about plain TeX, not context. Sorry if that wasn't clear. ah, good to know In any case, I should have sent my request to Max alone, rather than the ntg-context list, because if Max was going to push something there, I was hoping that a second appeal for cmyk colour support in plain would be nice. (I'm not quite ready to give up all of my plain TeX files.) if it's plain, indeed, too confusing otherwise (it's no problem asking plain questions here but in this tikz case kind of confusing) can add profiles if configured to do so (best not to embed them) ... and why should there be a profile anyway ... crappy arguments .. I agree about the colour profile, but the last time I poked that bear, my pleas fell on deaf ears. not even plain needs color profiles and i hope tikz doesn't add them [And in summary, to be clear: I'm good with the colour support in ConTeXt!] ok 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: PDF, runner, and TikZ patches
On 3/16/2024 2:21 PM, Jim wrote: I hope that time doesn't come, because either someone (you? :-) would be not me as i don't need tikz and so i wouldn't notice what functionality got adapted left with an on-going job of patching the snapshot, or ConTeXt's version of tikz would become increasingly different (and, presumably, increasingly less capable than the "mainline" version). i guess it depends on what gets added .. maybe a bit of diffing to see if changes affect something or not before upgrading 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: PDF, runner, and TikZ patches
On 3/16/2024 2:10 PM, Jim wrote: On Fri, Mar 15, 2024 at 01:53 (+0100), Aditya Mahajan wrote: On Thu, 14 Mar 2024, Jim wrote: Max (et al), were you hoping the ConTeXt distribution would ship its own pgfutil-context.def, or were you hoping that someone could convince Henri to put the RGB change in? We can patch some of the definitions of pgfutil-context.def in m-tikz if really needed, but it would be preferable to first check if tikz maintainers are willing to merge them upstream. Unfortunately, it seems that the maintainer feels that if we can't deal with cmyk profiles, we shouldn't have cmyk at all. I don't agree, but that's where it ended. (I was arguing for plain TeX support at the time in the linked^2 message, but I was able to add the definition for cmyk to my own macro file, so I was able to process examples with cmyk colours.) What does the maintainer mean by that ... context can add profiles if configured to do so (best not to embed them) ... and why should there be a profile anyway ... crappy arguments .. especially because when i run \usemodule[tikz] \startTEXpage \definecolor [colorone] [r=0,g=0,b=0.5] \definecolor [colortwo] [c=0,m=1] \starttikzpicture \fill [colorone] (0,0) circle(2) ; % rgb \fill [colortwo] (0,0) circle(1) ; % cmyk \stoptikzpicture \setupcolors[cmyk=no] \starttikzpicture \fill [colorone] (0,0) circle(2) ; % rgb \fill [colortwo] (0,0) circle(1) ; % rgb \stoptikzpicture \stopTEXpage here i get a pdf file with rgb and cmyk. Maybe I have an old tikz and something changed (wouldn't be the first time). So let's forget about maintainers and ugly hacks, and identify what is the real problem. 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 - oeps.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: how to include an an svg file?
On 3/13/2024 9:16 AM, Henning Hraban Ramm wrote: Am 12.03.24 um 23:59 schrieb seyal zavira: You are correct. when i convert this svg to pdf via inkscape it works like a charm. But what is standard way of including an svg file with context if we want to inkscape render the images? \externalfigure[smile] without any other settings, but inkscape must be callable on the command line (which doesn’t work for me on MacOS any more, must investigate…). \startMPcode draw lmt_svg [ filename = "smile.svg"] \stopMPcode Now gives the attached but it took me a while to figure out what works. An inkscape export adds for instance something (globally applied) that is not in the svg file (which actually derived from tiger.svg as mentioned in the file). To be honest this is a horrible file and a good example of making things more complex than needed (probably common in wysiwyg applications), although we already had the machinery in the mp/pdf converter. The biggest issue here is that one has to put some constrants in place order to make it work in e.g. sumatra (mypdf) and acrobat (which here actually does weird erratic things when I play with another test). As with much complex svg, browsers also differ in interpretation o fsome features so it's hard to figure out what to do when there are conflicting demands. (Pointing to something that works tomorrow doesn't mean it worked when we tried to implement something yesterday.) For Hraben - who mentioned it - i also added support for group opacity and transformed shades. In the process I tried a few inkscape options (pdf export) but some produce faulty files (with missing stuff) so i guess we have a complex situation in general. That said, as long as one sticks to reliable and clean code (plain svg) it should mostly work out. Text is another matter because svg dropped glyph support so now everything has to go through font features which in turn means that if one uses svg as output format one has to specify every character with possible abuse of a substitution feature that accesses it. So that is no longer a real interesting option, unless of course one exports all text as curves, just to be sure. (I will extend general text suport but it will always be suboptimal but then, svg is not a long term archival format anyway.) No upload yet as i also want to do some cleanup, ps. For metapost lovers, here is some of the trickery used: \startMPpage[offset=1ts] draw image ( fill (unitsquare xscaled 10cm yscaled 4cm) withcolor svgcolor(0.5,0,0) ; registerluminositygroup ("test") ( fill (unitsquare scaled 2cm) shifted (1cm,1cm) withshademethod "circular" withshadecolors (.6,.1) ) ; applyluminositygroup ("test") ( fill (unitsquare scaled 2cm) shifted (1cm,1cm) withshademethod "circular" ) ; draw luminositygroup ( fill (unitsquare scaled 2cm) shifted (4cm,1cm) withshademethod "circular" withshadecolors (.6,.1) ) ( fill (unitsquare scaled 2cm) shifted (4cm,1cm) withshademethod "circular" ) ; draw luminosityshade ( (unitsquare scaled 2cm) shifted (7cm,1cm) ) ( withshademethod "circular" withshadecolors (.6,.1) ) ( withshademethod "circular" ) ; ) ; \stopMPpage Not that intuitive and a bit ugly deep down but it works (there was no need to extend mp btw as we already have graphic grouping in the engine). 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 - smile-test.pdf Description: Adobe PDF document luminosity.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: PDF, runner, and TikZ patches
On 3/15/2024 12:53 AM, Jim wrote: Max (et al), were you hoping the ConTeXt distribution would ship its own pgfutil-context.def, or were you hoping that someone could convince Henri to put the RGB change in? And, if anyone has the will to push this (or add it in to a ConTeXt distribution version), I'd still like the cmyk support, even if there is no ability to specify colour profiles: \def\pgfutil@emu@cmyk#1#2,#3,#4,#5\@nil { \pgfmathsetmacro{\@red@}{(1 - #2) * (1 - #5)}% \pgfmathsetmacro{\@green@}{(1 - #3) * (1 - #5)}% \pgfmathsetmacro{\@blue@}{(1 - #4) * (1 - #5)}% \expandafter\edef\csname\string\color@#1\endcsname {\noexpand\xcolor@ {}{}{rgb}{\@red@,\@green@,\@blue@}} } I don't see that it would hurt anything, even if it doesn't give complete cmyk support. We provide \pgf@context@registercolor \pgf@context@registergray \pgf@context@registerrgb \pgf@context@registercmyk in colo-ini that hook into the context color mechanism so be careful with patches. I'm not going to spend time on other solutions that can interfere with internals. (I wonder when the moment comes that we have to take a snapshot of tikz and stay with that.) 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: PDF, runner, and TikZ patches
On 3/15/2024 12:18 AM, Max Chernoff wrote: Hi all, I've had a few patches applied to my installation for a little while now, so I figured that I should send them in. There's a diff at the end of the email, and the modified files are attached [but rejected by the mailing list, so sent separately to Hans] * In the definition of "featurecreep()" in "lpdf-mis.lmt", "structures.pages.tobesaved[i].status" should be "[...].state" to match the definition of "pages.save" in "strc-pag.lua". ok, changed, i assume you tested it * For the "resultof" runner in "util-sbx.lmt", the current io.popen mode only works with Windows. See the definition of "l_checkmodep" in "liolib.c". i trust you on that (never run piped on linux, only on windows) * Some of the pgfplots 3D shaders appear to be broken, see https://tex.stackexchange.com/a/708121 . * The TikZ "RGB" colour model does not currently work properly. This is internally used by "\usepgfplotslibrary[colorbrewer]" among others. See https://github.com/pgf-tikz/pgf/pull/1130 . see mail by others Thanks, 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere
On 3/13/2024 12:26 PM, Mikael Sundqvist wrote: Hi, On Wed, Mar 13, 2024 at 11:37 AM Max Chernoff wrote: Hi Hans, On Tue, 2024-03-12 at 15:21 +0100, Hans Hagen wrote: the next upload will support the attached ... so no ugly hacky code needed "\texthere[inbetween]" looks perfect, thanks! The "\definebar[...][inlined]" doesn't look quite right though -- the issue that I'm having is that I can't figure out how to highlight across both sides of an \alignhere without any questionable hacks. Unless the new "inlined" does work across an \alignhere and I'm just not seeing it in the example. Thanks again, -- Max I can confirm that it works over \alignhere. Hans is doing some black magic, but I guess he did not want to show off by including the whole line. Indeed, no need to show of the obvious \definebar [mybar] [backgroundbar] [height=\strutht,depth=\strutdp,offset=.250ex,color=red] \definebar [yourbar] [backgroundbar] [height=\strutht,depth=\strutdp,offset=.125ex,color=blue] \definebar [ourbar] [backgroundbar] [height=\strutht,depth=\strutdp,offset=.125ex,color=green] \starttext \startTEXpage[width=4cm] \startformula a \alignhere= b + c \breakhere \mybar {d + \yourbar{e \alignhere=} f \breakhere g \alignhere \ourbar{=} h} + i \stopformula \stopTEXpage \stoptext Especially when it would not pass the rigourous accessibility check (esp wrt color) of your university, 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 - inter-001.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: how to include an an svg file?
On 3/12/2024 2:53 PM, seyal zavira wrote: thanks for your reply yes but i don't have problem with regular svgs but when svgs has gradient color it does not produce any color in output. you can see my svg in attachment. svg gets worse and worse (esp the inheritance model) ... anyway, i can sort of get the gradient but no stepwise gradient opacity (in pdf and i'm not going to emulate something) (it's not the most interesting stuff to work on unpaid) but ... i don't know if fixing this breaks something else 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere
On 3/12/2024 8:57 AM, Max Chernoff wrote: Hi all, Often I want to include a sentence/paragraph in the middle of a long multipart formula. With the old \startalign/\stopalign formulas, I could use \intertext{...} to do this, but this doesn't work with the new \alignhere/\breakhere formulas. I've managed to find a "solution" for this, although I'd prefer something a bit less hacky. Any ideas? Also, is there a way to highlight an equation across an \alignhere? Once again, I've found a "solution", but like before, it's pretty hacky. Example files are attached. the next upload will support the attached ... so no ugly hacky code needed 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 - inter-001.pdf Description: Adobe PDF document \definebar[mybar][inlined][offset=.25ex,color=red] \starttext \startformula a \alignhere= b + c \breakhere \mybar {d + e} \alignhere= f \breakhere g \alignhere= h + i \stopformula \page \samplefile{knuth} \startformula \text{something} + \text{really} + \text{really} + \text{long} \alignhere= \sqrt{x} \numberhere \texthere[inbetween]{\input{knuth}} d \alignhere= e + f \numberhere \breakhere g \alignhere= h + i \breakhere j \alignhere= k + l \stopformula \samplefile{knuth} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere
On 3/12/2024 8:57 AM, Max Chernoff wrote: Hi all, Often I want to include a sentence/paragraph in the middle of a long multipart formula. With the old \startalign/\stopalign formulas, I could use \intertext{...} to do this, but this doesn't work with the new \alignhere/\breakhere formulas. I've managed to find a "solution" for this, although I'd prefer something a bit less hacky. Any ideas? Also, is there a way to highlight an equation across an \alignhere? Once again, I've found a "solution", but like before, it's pretty hacky. Example files are attached. maybe \starttexdefinition protected newintertext #1 \leftparbox [global] { \vadjust pre \bgroup \forgetall \vskip.5\strutdp % needs to be more clever in the end \dontleavehmode\vtop\bgroup #1 \egroup \egroup } \breakhere \stoptexdefinition but i need to discuss it with Mikael as we might integrate something better and then it needs to be documented (in the upcoming manual) as well 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] update
Hi, Todays update has a fix for the compact mode slant interference (as explained by Wolfgang a few days ago). Hopefully that works out well. We (MS and HH) also managed to make curve detection more accurate (the decision routine that is responsible for straight lines in the MP output) so that extreme paths with control points way beyond reasonable still produce the right output (before we could get a wrong bbox due to clipping the curve in the backend). One can actually also force "always curve" with "withcurvature 1" (more variants might follow) but that is more or us to have a test option. Curvature detection is mostly a pdf efficiency feature and normally users should rely on the default to work okay. Other new mp features are relative and absolute points which makes it possible to define paths in a turtle graphics way (a bit like hlineto and vline in postscript), a native "--" operator (equivalent but somewehat more efficient on huge generated paths). The luametafun manual has a chapter on paths that describes some of this. Yet another new feature is "firstcontrol" and "secondcontrol" that is an addendum to controls that makes both control points the same when only one is given. Finally there is a fix in mp where some directions, think { dir 120 }, gave the wrong result due to sign swapping (so it was seen as { dir 200} or { dir -60 }) as side effect of negative zeros fed into tan2. This became obvious when MS reprocessed a graphic, as last year we switched from scsled (no bug) to double (long time bug exposed). (The bug is also present in LuaTeX double/binary mode but it will be fixed there too.) The rest is not (yet) worth mentioning, 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)
On 3/10/2024 11:48 AM, Wolfgang Schuster wrote: Hans Hagen via ntg-context schrieb am 10.03.2024 um 10:46: On 3/10/2024 9:32 AM, Pablo Rodriguez via ntg-context wrote: On 3/9/24 16:04, Wolfgang Schuster wrote: Pablo Rodriguez via ntg-context schrieb am 08.03.2024 um 19:39: [...] \enableexperiments[fonts.compact] Which seeems weird to me. Or at least, I thought I read that Hans enabled it by default in LMTX. AFAIR Hans uses the setting in his own documents. I have been using it for a while. I hope the issue with \glyphslant might be fixed to enable it again. Then my question is whether this was caused by simply enabling compact fonts or by doing it twice. The results happen when you use compact mode and is a result of \glyphslant which keeps the value of the italic style even when you switch back to the upright style. Many thanks for your explaination, using the low level commands \glyphscale \glyphxscale \glyphyscale \glyphslant \glyphweight directly can have side efects when at an outer level these are also set, so you need to accumulate, like \starttext test {\glyphscale 2000 test \glyphscale \numericscaled1.2\glyphscale test} test test {\glyphslant 500 test \glyphslant \numericscaled2.0\glyphslant test} test test {\glyphweight 100 test \glyphweight\numericscaled2.0\glyphweight test} test \stoptext The problem is that compact mode uses them to apply the slanted feature without any manual use of the commands from a user. \enableexperiments[fonts.compact] \definefontfamily[mainface][rm][TeX Gyre Termes] [it={style:regular, features:{default,slanted}}, sl={style:regular, features:{default,slanted}}] \setupbodyfont[mainface] \starttext \startstyle[style=italic]normal {\em emphasized} normal\stopstyle \stoptext The only way to mask the effect is to create a new fontfeature with the minimum slant value and apply it to the upright style. \definefontfeature [unslanted] [slant=0.001] \definefontfamily[mainface][rm][TeX Gyre Termes] [features={default,unslanted}, it={style:regular, features:{default,slanted}}, sl={style:regular, features:{default,slanted}}] ok, i'll fix that (build is down so no update) 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)
On 3/10/2024 9:32 AM, Pablo Rodriguez via ntg-context wrote: On 3/9/24 16:04, Wolfgang Schuster wrote: Pablo Rodriguez via ntg-context schrieb am 08.03.2024 um 19:39: [...] \enableexperiments[fonts.compact] Which seeems weird to me. Or at least, I thought I read that Hans enabled it by default in LMTX. AFAIR Hans uses the setting in his own documents. I have been using it for a while. I hope the issue with \glyphslant might be fixed to enable it again. Then my question is whether this was caused by simply enabling compact fonts or by doing it twice. The results happen when you use compact mode and is a result of \glyphslant which keeps the value of the italic style even when you switch back to the upright style. Many thanks for your explaination, using the low level commands \glyphscale \glyphxscale \glyphyscale \glyphslant \glyphweight directly can have side efects when at an outer level these are also set, so you need to accumulate, like \starttext test {\glyphscale 2000 test \glyphscale \numericscaled1.2\glyphscale test} test test {\glyphslant 500 test \glyphslant \numericscaled2.0\glyphslant test} test test {\glyphweight 100 test \glyphweight\numericscaled2.0\glyphweight test} test \stoptext which you will now wikify ... 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: How can I do this?
On 3/8/2024 6:36 PM, Henning Hraban Ramm wrote: Am 08.03.24 um 17:56 schrieb Otared Kavian: Hi Ursula, The reason for which you did not get the expected result is that you have « } » missing in your file, that is the closing brace after your italic command « {\it » at the end of your document. Moreover you did not have a \stoptext in your file, and a math command « \m » was not written correctly. Talking of math, I personnaly prefer to enclose in-line math between dollar signs $, that is writing « $\exists x \in H$ » instead of « \m{\exists x \in H} ». Well, better stay with the modern ConTeXt approach of \m{}. for regular inline math we just use \im{...} (which has an \dm{...} companion with displaystyle 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: additional font faces
On 3/8/2024 5:55 PM, Henning Hraban Ramm wrote: Hi, if I need an additional pair of upright and italic font faces, e.g. a Medium or Light version, would it make sense to define them like this: I'd just define a new typeface / bodyfont, using fo rinstance \starttypescript [sans] [AlegreyaMedium] and then use \switchtobodyfont[AlegreyaMedium]\sl or \AlegreyaMedium\sl which is also more efficient than adding more variants Hans % adapted from font-pre.mkxl \definefontalternative[md] \definefontalternative[mi] \definefontalternative[ms] \definealternativestyle [medium] [\md] [] \definealternativestyle [mediumitalic,italicmedium] [\mi] [] \definealternativestyle [mediumslanted,slantedmedium][\ms] [] \definealternativestyle [sansmedium] [\ss\md] [] \definealternativestyle [serifmedium] [\rm\md] [] \definealternativestyle [monomedium] [\tt\md] [] %\definealternativestyle [mediumface] [\mediumface] [] \unexpanded\def\normalmd{\let\fontalternative\md\font_helpers_synchronize_font} \unexpanded\def\normalmi{\let\fontalternative\mi\font_helpers_synchronize_font} \unexpanded\def\normalms{\let\fontalternative\ms\font_helpers_synchronize_font} \let\md\normalmd \let\mi\normalmi \let\ms\normalms \definehighlight[medium ] [command=no,style=medium] \definehighlight[mediumitalic ] [command=no,style=mediumitalic] \definehighlight[mediumslanted] [command=no,style=mediumslanted] Is that necessary? And is it enough? \starttypescript [sans] [alegreya] \definefontsynonym[AlegreyaSans-Regular][name:AlegreyaSans-Regular] \definefontsynonym[AlegreyaSans-Italic][name:AlegreyaSans-Italic] \definefontsynonym[AlegreyaSans-Caps][name:AlegreyaSansSC-Regular] \definefontsynonym[AlegreyaSans-ItalicCaps][name:AlegreyaSansSC-Italic] \definefontsynonym[AlegreyaSans-Medium][name:AlegreyaSans-Medium] \definefontsynonym[AlegreyaSans-MediumItalic][name:AlegreyaSans-MediumItalic] \definefontsynonym[AlegreyaSans-MediumCaps][name:AlegreyaSansSC-Medium] \definefontsynonym[AlegreyaSans-MediumItalicCaps][name:AlegreyaSansSC-MediumItalic] \definefontsynonym[AlegreyaSans-Bold][name:AlegreyaSans-Bold] \definefontsynonym[AlegreyaSans-BoldItalic][name:AlegreyaSans-BoldItalic] \definefontsynonym[AlegreyaSans-BoldCaps][name:AlegreyaSansSC-Bold] \definefontsynonym[AlegreyaSans-BoldItalicCaps][name:AlegreyaSansSC-BoldItalic] \stoptypescript \starttypescript [sans] [alegreya] [name] \definefontsynonym [Sans] [AlegreyaSans-Regular] [] \definefontsynonym [SansItalic] [AlegreyaSans-Italic] [] \definefontsynonym [SansSlanted] [AlegreyaSans-Italic] [] \definefontsynonym [SansMedium] [AlegreyaSans-Medium] [] \definefontsynonym [SansMediumItalic] [AlegreyaSans-MediumItalic][] \definefontsynonym [SansMediumSlanted][AlegreyaSans-MediumItalic][] \definefontsynonym [SansBold] [AlegreyaSans-Bold] [] \definefontsynonym [SansBoldItalic] [AlegreyaSans-BoldItalic] [] \definefontsynonym [SansBoldSlanted][AlegreyaSans-BoldItalic] [] \definefontsynonym [SansCaps] [AlegreyaSans-Caps] \stoptypescript ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ -- - 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Log entries about confusing level change
On 3/8/2024 3:38 AM, Rik Kabel wrote: Hello all, The following example produces two log entries that seem a bit odd. The log entries are: backend > bookmarks > confusing level change at level 3 around '1 body1' backend > bookmarks > confusing level change at level 3 around 'back1' and they refer to the first chapter of the bodymatter and the first chapter of the backmatter, respectively. The example: \setupinteraction [state=start] \placebookmarks [chapter] \starttext \startfrontmatter \startchapter [title=front1] \samplefile {knuth-gpt} \stopchapter \stopfrontmatter \startbodymatter \startchapter [title=body1] \samplefile {knuth-gpt} \stopchapter \stopbodymatter \startbackmatter \startchapter [title=back1] \samplefile {knuth-gpt} \stopchapter \stopbackmatter \stoptext Does the level change message suggest that something is missing in the document? normally harmless so i can add an extra check but bookmarks can be a pain when less structure is used (somewhat weird low level pdf stuff) 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Font version parse question
On 3/7/2024 7:36 PM, Rik Kabel wrote: Hello all, The font tweak file libertinus_math.lfg tests for a font version of *7.040*, but the result of the version parse is *7.040;RELEASE*, resulting in an error message. I do not know if this is the fault of the parser or of the font metadata. Changing the test in the .lfg file fixes the error, but that is not a long-term solution. The exact message I get in the log is: mathematics > tweak > 'LibertinusMath-Regular', size 10, math size 0, version 'Version, 7.040;RELEASE' found, version 'Version 7.040' expected This is not a high-priority issue for me -- I have nothing in this document that would benefit -- but others may appreciate a fix. Unless we have a crash it's just a warning, more for Mikael and me so that we know when to check. One cannot rely on a version being a number, so who knows what to test. Consistency, also within a font family is often an issue. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: imposition: getting to the last page of a booklet
On 3/6/2024 7:50 PM, Wolfgang Schuster wrote: The semicolon is a undocumented extension (I noticed it in the definition of \page[quadruple]) of \numexpr in Luametatex for the modulus operator. One of these days I have to write the pending section in th elow level manual and also explain this: \starttext \ifnum 10 = 11 wrong \else okay \fi \ifnum 10 != 11 okay \else wrong \fi \ifnum 10 !> 11 okay \else wrong \fi \ifnum 10 !< 11 wrong \else okay \fi \ifnum 10 ≤ 11 okay \else wrong \fi \ifnum 10 ≥ 11 wrong \else okay \fi \ifnum 10 ≰ 11 okay \else wrong \fi \ifnum 10 ≱ 11 wrong \else okay \fi \ifnum "F0 ∈ "F0 okay \else wrong \fi \ifnum "F0 ∉ "F0 wrong \else okay \fi \stoptext 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: missing metadata in LMTX
On 3/6/2024 11:18 AM, Marco Patzer wrote: On Tue, 5 Mar 2024 23:14:04 +0100 Wolfgang Schuster wrote: Here is the official solution: \startxmlsetups xml:meta \setupmetadata [author={\xmltext{#1}{/author}}, title={\xmltext{#1}{/title}}] \stopxmlsetups So now we have: \setupinteraction [title=FooBar] \setupdocument [metadata:title=FooBar] that just sets defaults for \setupinteraction so that they inherit from document \setupmetadata [title=FooBar] that's for those who go global Are any of those deprecated or the preferred way? I'm starting to get confused. even if we would use \setupmetadata we'd still have \setupinteraction because we remain compatible 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: issue mixing font features (LMTX & MkIV)
On 3/3/2024 11:54 AM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \definefontfeature[wider][extend=2] \definefontfamily[mainface][rm][TeX Gyre Pagella] [features={default, quality, wider}, it={style: regular, features:{default, slanted, quality}}, bf={style: regular, features:{default, boldened-30}}, bi={style: regular, features:{default, boldened-30, slanted}}] \setupbodyfont [mainface, 30pt] \starttext \startTEXpage[offset=1ex] a {\it a}\\ {\bf a} {\bi a} \stopTEXpage \stoptext With current latest (2024.02.27 09:21), LuaTeX gets boldened and slanted for regular (but the other fonts cannot inherit the wider feature and wider will not mix with boldened-30 [even when specified]). For some reason, LMTX from current latest cannot get slanted and boldened-30 (but it mixes the inherited wider feature in all fonts). This began to behave differently in latest from 2024.01.08 11:23 (which is my next version after the one from 2023.09.26 18:19). Could anyone confirm the issue? accumulating these effects is dependent on how the features that you use are defined in luametatex we have a bit more advanced mechanism (also relates to compact mode) because th eengine is a bit more clever just make sure that you don't add up features where one calcels the other, so use for instance: \definefontfeature[wide] [extend=2] \definefontfeature[wideslant][extend=2,slant=.2] \definefontfeature[widebold] [extend=2,weight=.1] \definefontfeature[wideboldslant][extend=2,weight=.1,slant=.2] \definefontfamily[mainface][rm][TeX Gyre Pagella] [tf={style:regular,features:{default,quality,wide}}, it={style:regular,features:{default,quality,wideslant}}, bf={style:regular,features:{default,quality,widebold}}, bi={style:regular,features:{default,quality,wideboldslant}}] \setupbodyfont [mainface,30pt] \starttext \startTEXpage[offset=1ex] a {\it a} {\bf a} {\bi a} \stopTEXpage \stoptext - 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: issues scaling glyphs of Twemoji Mozilla
On 3/2/2024 1:46 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \definefontfamily[mainface][rm][TeX Gyre Termes] \definefontfamily[mainface][cg][Twemoji Mozilla][features={color}] \setupbodyfont[mainface] \starttext \scale[width=30em]{a} \scale[width=30em]{\cg } \stoptext Using current latest from both MkIV and LMTX, I cannot scale the emoji flag. Latest font release can be directly download from https://github.com/mozilla/twemoji-colr/releases/latest/download/Twemoji.Mozilla.ttf. Am I missing something to scale the glyph properly? You're missing the fact that the font has an issue. I can add a workaround, assuming that (as often) issues become features. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: FreeBSD 13.2
On 2/26/2024 2:21 PM, Roger Mason wrote: Hello Hans, Hans Hagen writes: On 2/26/2024 12:22 PM, Roger Mason wrote: Looks like the unset TEXMF and TEXMFCNF envars are a problem. What should they be set to and where should they be set? fwiw, i'll do an update oen fo these days with the old bin what you coudl do is download the latest zip and unzip it in texmf-context and then take the ins from the garden build Please do not go to this trouble on my account. I have decided to give up on context. well, i put the older in in the latest anyway 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Japanese
On 2/26/2024 9:08 PM, Otared Kavian wrote: Hi all, Does anyone have a simple setup of fonts to write a small Japanese document (possibly with furagana) ? I am using MacOS and I have several Japanese fonts on the system. I have some old examples which do not typeset correctly now, maybe because they use the old module simplefonts and commands such as \setcjkmainfont and friends. Many thanks in advance: Otare there are some files "japanese-*" in the test suite; it boils down to a setting up a font and enabling script (because of specific spacing) 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: FreeBSD 13.2
On 2/26/2024 12:22 PM, Roger Mason wrote: Looks like the unset TEXMF and TEXMFCNF envars are a problem. What should they be set to and where should they be set? fwiw, i'll do an update oen fo these days with the old bin what you coudl do is download the latest zip and unzip it in texmf-context and then take the ins from the garden build 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: FreeBSD 13.2
On 2/24/2024 4:28 PM, Mojca Miklavec wrote: Dear Roger, On Sat, 24 Feb 2024 at 15:34, Roger Mason wrote: After unpacking, running the install scripts results in: ld-elf.so.1: /home/rmason/Software/Context/bin/mtxrun: Undefined symbol "__libc_start1@FBSD_1.7" I assume this is because mtxrun is compiled for FreeBSD 14.0. There were some troubles with our infrastructure which led Hans to build the binaries himself without paying extra attention to compatibility with older systems. Can freebsd 14 work with older bins? The previosu method of these hard coded version numbers was a pain as i have to adapt different scripts and the websit to newer versions so and i don't want that. (We could put more bins in the installer for a platform and then let the install.sh choose what bins to fetch but even then the question is how far do we go back in time.) You can find the binaries here: https://build.contextgarden.net/dl/luametatex/ but I hope that Hans will rebuild the installer in order to make the older systems functional again. Other than that, building luametatex is relatively straightforward with CMake. The sources can be found either inside ConTeXt or separately inside https://github.com/contextgarden/luametatex We could add a flag to the installer thaqt doesn't update the binaries but intead (advices) to build the bins but it assumes Cmake and gcc to be installed (we could cheat and use an existing cmake made make file). 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] new context option
Hi, As I needed to check some commands i added this: context --find="%\starttabulate" which will (should) give a list of lines/files in the documentation where this command is used. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: MetaPost lines in tables?
On 2/21/2024 7:47 PM, Henning Hraban Ramm wrote: Am 21.02.24 um 19:43 schrieb Wolfgang Schuster: … but it would be visible on a colored background. I’m sure you can show me a better way… \startuseMPgraphic{dottedborder} draw bottomboundary OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red"; setbounds currentpicture to OverlayBox; \stopuseMPgraphic Thank you! (I’m sure I already used that somewhere… Must document…) ok, new feature dedicated to Hraban ... who then of courese has to document it. \starttext \starttabulate \FL[1,2] % linefactor (old) dashfactor (new) \NC test \NC test and test and test and done \NC \NR \ML[1,1] \NC test \NC test and test and test and done \NC \NR \NC test \NC test and test and test and done \NC \NR \NC test \NC test and test and test and done \NC \NR \LL[1,10] \stoptabulate \framed [align=middle,topframe=dash,frame=off] {\samplefile{tufte}} \framed [align=middle, frame=dash, dashstep=.01hs, rulethickness=1pt] {\samplefile{tufte}} \framed [align=middle, frame=dash, dashstep=10pt, rulethickness=2pt, background=color, backgroundcolor=gray] {\samplefile{tufte}} \stoptext - 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: using an end of line as parameter
On 2/20/2024 12:26 PM, madiazm.eo...@gmail.com wrote: Thanks Hans, I supposed that lua would be more suitable, but unfortunately I still did not learn it (I hope in summer I have time to read the manual) The problem arises from the fact that for each line i will perform a different action and for \def\foo I need four arguments so that I can correctly format the lines. How can i get the result of string.splitlines (s) separated into four arguments to pass to the macro? then \foo would be \def\foo#1SEPARATOR#2SEPARATOR#3SEPARATOR#4 I now use: \starttext %now I use the dirty trick of writing an ñ at the end of line so that the macro detects each argument; but for each question I have to manually add it, which is tedious; therefore I look for a solution to detect lines automatically %the definition \def\tareaAbc #1ñ#2ñ#3ñ#4ñ{\item #1 \startitemgroup[lista1a] \item #2 \item #3 \item #4 \stopitemgroup} %in the document /startitemgropu[lista1a] %I manually open the first level of the list so the first argument -the question- gets numbered \tareaAbc In den Büchereien gibt es auch …ñ %the question; an item of first level … Kuchen.ñ %option a gets a new list of second level opened and argument 2 is the first item … Theater.ñ %option b another item … Workshops.ñ %option c last item and closes the second level list %some more macros with more questions and options /stopitemgroup %I manually close the first level list You have to provide more details about these lines. For instance, do you want to split on spaces? 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: using an end of line as parameter
On 2/19/2024 1:49 PM, Miguel Diaz wrote: Dear list, I want to format some language tests that different people are preparing. Each one uses different software and there are always problems in format that i want to solve. for a a/b/c questions I receive text that I will format to a list (comments are mine) In den Büchereien gibt es auch … %the question … Kuchen. %option a … Theater. %option b … Workshops. %option c I need to detect \par or whatever sign marks the newline character as an argument delimiter so that I dont have to paste hundreds of times braces for each argument. For the example, I use this macro definition (which does no work!) \long\def\prueba #1\par#2\par#3\par#4ñ{\framed[frame=off,width=0.8\textwidth,corner=round,offset=1em,align=flushleft]% {{\bf Beispiel}: #1\\ \qquad a) #2\\ \qquad b) {\bf #3}\\ \qquad c) #4 } I get: tex error on line 493 in file ./prueba.tex: The file ended when scanning an argument. the macro seems to read to the end of file not detecting \par; I know its the \par that causes the problem; I used ^^M also which I read is a sinonym for return but it also does not work. Help would be appreciated (my computer keyboard would appreciate it too...) better start thinking something: \starttext \def\foo#1{<<<#1>>>>\par} \startluacode local s = [[ line 1 line 2 line 3 line 4 ]] -- local s - io.loaddata("yourfile.txt") local lines = string.splitlines(s) for i=1,#lines do if lines[i] ~= "" then context.foo(lines[i]) end end \stopluacode \stoptext - 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: lmt_shade fails
On 2/19/2024 7:10 PM, Keith McKay wrote: Thanks for the reply Fabrice. Looks like something changed in the recent update. I'm sure Hans will pick it up. next upload (when mid cycles were introduced we lost an end one in some cases) 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Memory consumption in new upload
On 2/17/2024 10:50 PM, Shiv Shankar Dayal wrote: I assume you would have created typescripts for those fonts. Can you please add them to ConTeXt distribution, at least for the popular fonts? Many of those are covered by typescripts. Those that are not, are on my machine because we needed them (often long ago) for a project (these are commercial fonts, in most cases typeone and of such a collection actually a few were used then). There are also some commercial fonts that I got for free. Then there are fonts that I have to check because users had an issue (public ones, of different quality and useability). Of those 'trying to cover all of unicode with different fonts of the same design' I tested subsets. And of course the fonts that come with the operating system (basically all fonts that context can access during a run). We're not going to make typescripts for every combination as in practice for most documents one needs a single setup and therefore only a handful of lines of code (and likely use some typescript file for a math font). There's also the selectfont mechanism that uses heuristics to do the same. There are plenty of examples in the distribution and for a specific style that demands certain fonts one can also put the definitions in the style. On Sun, Feb 18, 2024 at 3:12 AM Shiv Shankar Dayal mailto:shivshankar.da...@gmail.com>> wrote: The only change I made was that I started using a 9pt modern font than a 10 pt modern font. My document decreased from 580+ pages to 500 pages after that. About your document, I assume you had a lot of Graphics because text only 180MB is too high. I have only few diagrams and my file size is only 3MB. On Sun, Feb 18, 2024 at 2:13 AM Hans Hagen mailto:j.ha...@xs4all.nl>> wrote: On 2/17/2024 6:17 PM, Shiv Shankar Dayal wrote: > Thanks for new upload. I see that memory consumption is much less than > previous version. So > once again, thanks a lot. > > I am curious about what has changed in recent upload, that memory > consumption is about 60% of earlier versions. it's hard to tell what exact consumpiton is becaue for instance when lua creates tables, they grow by factors two when then have to (maybe 5.5 is a bit less consuming) on the one hand luametatex is more efficient than luatex due to all kind of ímprovements' but some nodes are larger so that takes more memory, which is only noticed when one has lots of text on a page (or keeps boxes stuff around) anyway, not that much changed since the previous upload, so maybe you just stay below a threshold I recently generated a 180MB document with 2500 fonts + metapost outlines of them and that could bump mem usage (with empty cache) to 30 GB (less after fonts were cached) but normally we stay around 125 MB for a document. Anyway, tex mem consumption can often be neglected compared to other applications. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl> | www.pragma-pod.nl <http://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 <mailto:ntg-context@ntg.nl> / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl <https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl> webpage : https://www.pragma-ade.nl <https://www.pragma-ade.nl> / https://context.aanhet.net <https://context.aanhet.net> (mirror) archive : https://github.com/contextgarden/context <https://github.com/contextgarden/context> wiki : https://wiki.contextgarden.net <https://wiki.contextgarden.net> ___ -- Respect, Shiv Shankar Dayal -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : http
[NTG-context] Re: Memory consumption in new upload
On 2/17/2024 6:17 PM, Shiv Shankar Dayal wrote: Thanks for new upload. I see that memory consumption is much less than previous version. So once again, thanks a lot. I am curious about what has changed in recent upload, that memory consumption is about 60% of earlier versions. it's hard to tell what exact consumpiton is becaue for instance when lua creates tables, they grow by factors two when then have to (maybe 5.5 is a bit less consuming) on the one hand luametatex is more efficient than luatex due to all kind of ímprovements' but some nodes are larger so that takes more memory, which is only noticed when one has lots of text on a page (or keeps boxes stuff around) anyway, not that much changed since the previous upload, so maybe you just stay below a threshold I recently generated a 180MB document with 2500 fonts + metapost outlines of them and that could bump mem usage (with empty cache) to 30 GB (less after fonts were cached) but normally we stay around 125 MB for a document. Anyway, tex mem consumption can often be neglected compared to other applications. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: An announcement of my new book.
On 2/15/2024 8:25 PM, Tommaso Gordini wrote: Thanks everyone for the suggestions on the manuals. I knew the resource reported by Alain and, of course, that of Joaquín, whose translation into Italian I have completed, but not yet refined. However, I didn't know the file reported by Mikael, which I found to be an excellent tutorial to get started with. The documentation on ConTeXt is copious, and we know it: just look at the manuals on Contextgarden. But it is decidedly fragmented, and this disorientates the user. I believe, therefore, that what the community misses is a tutorial/reference manual/complete guide that comes /directly/ from the ConTeXt team (Hans, Wolfgang, etc). And, above all, that it is up to date: on Contextgarden many ‘valid’ manuals date back to many years ago, and the obsolescence of the software guides could make people say something like «well, stuff from years ago, I don't trust it». A manual in a single file that has, in short, the seal of officiality: the various resources in circulation are just as many excellent efforts by individuals, who however have put their own approach to ConTeXt into their work. Perhaps there is a more correct approach than others, more essential, which is worth knowing. I am speaking to you as a LaTeX user, and therefore I may have written a lot of nonsense in my message. I conclude by saying that, in the end, the ConTeXt team may not be interested in all this, and therefore our discussions are pure academic. :) As with latex it's not dev who have to write documentation, manuals, books ... so any addition is okay. There are only 24 hours in my day (maybe a few more in wolfgangs), 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: upload
On 2/15/2024 10:02 AM, luigi scarso wrote: On Wed, 14 Feb 2024 at 13:47, Hans Hagen wrote: Hi, as we're around texlive code freeze time we're also in upload mode - i uploaded a new lmtx - i also added linux and windows 32 bin (as it seems to have users) - we're now using lua 5.5 which has one restriction (was already announced a while ago): hm, I don't see lua 5.5 around ... perhaps Lua 5.4.5 ? it's beta stuff but luametatex is an good test for it as it used a lot of lua so it's s way to pay back for using lua 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] manuals
There's also: https://github.com/contextgarden/not-so-short-introduction-to-context 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: mtxrun.lua:10080: bad argument #9 to 'format'
On 2/14/2024 10:05 PM, Garulfo wrote: Hi, it seems that line 10066 in mtxrun.lua (now 10070) has not been updated for today's update. What is the command line to rebuild mtxrun locally without downloading update from internet ? (I only know "sh install.sh"...) can you copy the 'bad line' in the mail (there's also a mtxrun.lua in scripts/context/lua) 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: An announcement of my new book.
On 2/14/2024 8:37 PM, Joaquín Ataz López wrote: I join the thanks to the other members of the list. I think that good documentation is essential in any project, and, in particular, a low-level explanation of ConTeXt that is understandable without being an accomplished TeX programmer seems to me a great idea. As for TeX documentation, I don't know what the members of the list who know more than I do will think, but I think The TeXBook is a great book, very didactic. I also like (although at a different level) TeX By Topic, indeed these are must-haves 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Fwd: Re: Context lmtx for 32bit under LUBUNTU 18.04
On 2/14/2024 6:10 PM, Henning Hraban Ramm wrote: Sorry, I can’t help ATM. But Hans’ latest upload includes 32bt Linux binaries again. Indeed. I have to improvise a bit as the build is only partially working so some binaries i generate myself and currently we skip luatex (no big deal as most use luametatex anyway). 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] upload
Hi, as we're around texlive code freeze time we're also in upload mode - i uploaded a new lmtx - i also added linux and windows 32 bin (as it seems to have users) - we're now using lua 5.5 which has one restriction (was already announced a while ago): for i=1,10 in t do i = 2 * i end should now be: for i=1,10 in t do local i = 2 * i end as one cannot change the (local constant) i which actually is not that different from what metapost does. The good news is that voilating this is reported when a lua file is loaded so one can't get it unexspectedly. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \type ignores space between command and bracket
On 2/2/2024 11:16 AM, wolfgangbackes--- via ntg-context wrote: I have stumbeld across the same bug. Seems to be very elementary, but is still present after many years. Sigh. don't confuse bugs and features ... \starttext here a \type{\test is} done here a \type{\test [is]} done here a \type{\test {is}} done here a \type[compact=yes]{\test is} done here a \type[compact=yes]{\test [is]} done here a \type[compact=yes]{\test {is}} done here a \type[compact=all]{\test is} done here a \type[compact=all]{\test [is]} done here a \type[compact=all]{\test {is}} done \stoptext it helps to read a bit about how tex handles spaces esp after control sequences and when passing stuff in arguments ... then sit down and ponder possible solutions for a while ... 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: hyphenation question
On 2/2/2024 1:03 PM, Hans van der Meer via ntg-context wrote: In the 18th century documents I am transcribing often words are abbreviated as for example /voorschreeve/ becoming /voors:/ In the transcription it is usual to write this as /voors[chreeve]/ indicating to the reader how the abbreviation was interpreted. The problem then arises with hyphenation, because /voors[chreeve]/ in the example will not be hyphenated as if the []'s were absent. Which is what I would like to happen. Question: is it possible to realize this and how? Like this? \starttext \startexceptions voor-s[chree-ve] \stopexceptions \hsize1mm voors[chreeve] \stoptext - 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: textbackground spacing offset
On 1/31/2024 7:15 PM, Marco Patzer wrote: On Thu, 16 Nov 2023 13:52:05 +0100 Marco Patzer wrote: I'm having problems getting the textbackground spacing offset to work. Example: \setupframedtext [offset=overlay, width=max, depthcorrection=off] \setuptextbackground [location=paragraph, %% offset=overlay, %% does nothing %% backgroundoffset=overlay, %% does nothing %% depthcorrection=off, %% does nothing %% topoffset=3mm,%% works, but only for positive values background=, frame=on] \starttext \startframedtext \framed{Foo} \stopframedtext \starttextbackground \framed{Foo} \stoptextbackground \stoptext How do it get the same spacing as in the framedtext case? Is there a solution to this? Or an explanation why the spacing differs? these are fundamentally different mechanisms .. you can play with \inframed in the second case - 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: mtxrun.lua:10080: bad argument #9 to 'format'
On 1/29/2024 12:08 PM, Taco Hoekwater wrote: Hi, I changed line 10066 in mtxrun.lua to templates[i]="%-"..w.."s"..between from templates[i]=“% "..w..”i"..between and that fixed it. thanks, I also changed util-fmt.lua line 79 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] upload
Hi, I uploaded a new lmts: - important fix for empty page (pdf, recently introduced) - win32 installer fix - bsd installer fix 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code
On 1/24/2024 5:50 PM, Aditya Mahajan wrote: On Wed, 24 Jan 2024, Shiv Shankar Dayal wrote: Perhaps Aditya Mahajan can tell me how can I cache code snippets. Invoking VIM will have heavy penalty on highlighting the code otherwise. Have you tried the vim module: https://github.com/adityam/filter/blob/dev/vim-README.md Caching is enabled out of the box, so you don't need to configure anything. Other than that, how can I cache Metafun images so that they are not recomputed on every processing of file. There used to a command for caching metafun images in MkII, but I don't know if that is really needed in LMTX. In most cases, metapost processing does not have a significant processing delay. if images are the same one can use the reuseMPgraphic or uniqueMPgraphic features .. plenty of examples can be found, but as Aditya poined out mp is quite fast (but reuse saves on file size) 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Using plain TeX commands in ConTeXt
On 1/24/2024 2:55 PM, Shiv Shankar Dayal wrote: Dear List, Can we use plain TeX commands which are available in LuaMetaTeX in an arbitrary manner or are there any restrictions? what do you mean with arbitrary plain tex commands - 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: After Compiling the Context test, there was no PDF.
On 1/24/2024 9:55 AM, Ursula Hermann wrote: Dear List, I am sorry, but once again me: I downloaded the last upload from Hans yesterday, I downloaded context-win64, and tried the test today . you're using windows 32 so you need to use the 32 mswin installer http://lmtx.pragma-ade.nl/install-lmtx/context-mswin.zip - 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: OpenBSD install failed
On 1/24/2024 2:00 AM, Damien Thiriet via ntg-context wrote: Dear Hans, can you test with OpenBSD|openbsd) case "$CPU" in i*86) PLATFORM="openbsd" ;; amd64) PLATFORM="openbsd$-amd64" ;; *) instead? I tested it, with and without the typo at openbds$-amd64 Having fixed it to OpenBSD|openbsd) case "$CPU" in i*86) PLATFORM="openbsd" ;; amd64) PLATFORM="openbsd-amd64" ;; *) I could install the binaries and compile the basic test doc with \input tufte ok, i'll fix that $ 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: upload
On 1/20/2024 10:32 AM, Ursula Hermann wrote: 32 bits Windows download does not work, because 404 report. i uploaded a win32 installer (for now we only keep 32 bit win but once all users are on 64 bit ...) the current upload is as usual work in progress 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Named characters
On 1/15/2024 7:57 PM, Thomas A. Schmitz wrote: Hi all, not a complaint, just a question (for Hans and Wolfgang, I guess): in recent versions of lmtx, Greek named characters (constructs such as \greekdasiatonos) don't work any more. Which means I have to adapt some of my older macros. Is this an oversight or did they get axed? I assumed that most moved on to utf so ... when i looked at these definitions there were plenty greek, cyrillic, etc that were just there because in mkii we had to follow the 'name' route and it's a waste of memory and hash entries. For now I kept the latin but it is tempting to ditch them too. We could of course make a module with named ones, 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: OpenBSD install failed
On 1/23/2024 12:34 AM, Damien Thiriet via ntg-context wrote: Hello, I tried to install OpenBSD 7.4 binaries but failed. What I did: download the zip from pragma unpack it in /usr/local/context chmod 744 install.sh ./install.sh After running it, there is no file in /usr/local/context/tex/texmf-openbsd7.4-amd64/ I searched the mailing list archive and after reading that post from Mojca https://www.mail-archive.com/ntg-context@ntg.nl/msg92131.html I took a look at mtxrun.lua Don't know if this is the issue, but here is grep bsd /usr/local/context/bin/mtxrun.lua output: elseif name=="freebsd" then bits,platform=64,"freebsd-amd64" bits,platform=32,"freebsd" elseif name=="kfreebsd" then bits,platform=64,"kfreebsd-amd64" bits,platform=32,"kfreebsd-i386" can you test with OpenBSD|openbsd) case "$CPU" in i*86) PLATFORM="openbsd" ;; amd64) PLATFORM="openbsd$-amd64" ;; *) instead? ----- 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: context version 20240118 ("Registerhaltigkeit")
On 1/22/2024 10:47 AM, Thomas Meyer wrote: Hi Hans, maybe you understand the question mark now, you are part of it. Unfortunately, I haven't received a reply to my last e-mail from January 18. No I don't. Are you sayign that you want an instant reply every time? I assume you realize that we're talking about volunteers here and that answering is askign users and developers to allocate free time to answer them and as we all have jobs it's not like we can always answer immediately. Maybe only those whose questions are more serious, more interesting or whatever will get an answer. Depends. I guess that when folk on this list assume a question to be answered they move on to a next one. Also, the only way to get an answer fast is to provide a good small example that exposes the issue. I do not understand what you mean with "as follow up on the keyword thread we decided to treat bad values to equivalent to 'no'"! Which values are bad in this context? Did you read Wolfgangs answers? We support "yes" but not "yes " etc etc. We just added a bit more rigorous test. With the new ConTeXt version, "grid" no longer works for me! Too bad. Let's see what Wolfgang says as he tested your mwe. Should my attempt to use ConTeXt end here? hm 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: cont-new.mkiv and \everymathematics
On 1/20/2024 7:49 PM, Rogers, Michael K wrote: Hi all, In writing class notes, I frequently make one-letter macros for formatted symbols, such \v and \w for vectors. Generally speaking, one-letter names for function/macros/variables is frowned upon in programming, but I find this localized use very convenient. In cont-new.mkiv, one finds definitions of \t and \w (via \let) appended to \everymathematics, which overwrites my definition of \w every time TeX enters math mode. I can fix this by appending my definition to \everymathematics. The inefficiency seems minor, and I can live with it. I have a question and a couple of points: 1. Is there a better way than adding the definition to \everymathematics? 2. I don’t think these definitions should be in ConTeXt. Let users add them if they wish. Or add a ‘useshortcuts’ option to \setupmathematics. 3. \t and \w are undocumented, \mathword is undocumented, and it took me a while to track down the bug it created for me. In particular, they overwrote my definition only in math mode, and “\show\w” did not work in math mode. Frustrating. I could add a wikipage, I suppose, but I’m not proud of the extent of my knowledge: “\mathword{word} typesets “word” in math mode in a normal text font, somewhat like \text{word}, and \w is an abbreviation of it that is added to \everymathematics on startup.” adding to \everymathematics can work fine as long as you're the last one adding when you overload built in commands, \enabledirectives[overloadmode=error] % or warning can give you some protection 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: upload
On 1/20/2024 10:32 AM, Ursula Hermann wrote: 32 bits Windows download does not work, because 404 report. 32 bit windows has been dropped for now, i could generate native win32 bins but they are less performing that mingw crosscompiled but all this is more manual work than using the garden build I might add it when the garden build is up and running which might happen one of these days. So, how many 32 bit bin users are out there? And for how long? Any linux 32 users? 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: upload
On 1/19/2024 6:34 PM, Pablo Rodriguez via ntg-context wrote: On 1/18/24 20:43, Denis Maier via ntg-context wrote: *Von:*Alain Delmotte *Gesendet:* Donnerstag, 18. Januar 2024 20:04 *An:* ntg-context@ntg.nl *Betreff:* [NTG-context] Re: upload [...] When I go to https://www.pragma-ade.nl, I get an 404 Not Found message, so I can't download the new upload !! Works here. Hi Denis, I get a 404 error for both https://www.pragma-ade.nl/install.htm and https://www.pragma-ade.com/install.htm. I can update my existing installed version, but I wouldn’t be able to install a brand new distribution. Do you reach any of the urls included in my first paragraph? Many thanks for your help, can you try again - 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why LuaMetaTex is so slow?
On 1/19/2024 7:13 PM, Bruce Horrocks wrote: On 19 Jan 2024, at 09:31, Hans Hagen wrote: On 1/18/2024 11:15 PM, Bruce Horrocks wrote: On 18 Jan 2024, at 18:56, Shiv Shankar Dayal wrote: I understand that why it is slow, but the problem is that the difference is too high. My book has lots of math, so perhaps that is the reason. Option 1: Buy or borrow a faster computer. You'll get your desired speed-up far faster than waiting for Hans to make changes, even assuming there is something that can be changed. I'd recommend a Mac M3 :-) As tex is a single core process (ok, the os might delegate some file handling to other cores) it benefits from jump in core speed. I use a 2017 laptop with a reasonable fast intel xeon. I have a few docks spread round with different resolution monitors (1920x1200, 2560×1440, 4096×2160) and performance also depends on the connected monitor. I'd be curious to know how much these new processors impact performance over time because the ages of dohbling performance every year are past. I mentioned the Mac M3 because it's not the cores that make the difference but the speed of the SSD. So reading the source and writing out the result, plus writing/reading any intermediate files is astonishingly fast on the Mac. Also the RAM is on the same die as the chip so RAM access speeds are high. Even if the app is single-threaded, the speed increases are significant - in fact especially when the app is single is threaded. :-) File caching helps a lot indeed. Just compare context --make after a reboot with the second or third time after that. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why LuaMetaTex is so slow?
On 1/19/2024 11:00 AM, Henning Hraban Ramm wrote: Am 19.01.24 um 10:31 schrieb Hans Hagen: (that said: luametatex runs fine on my mobile phone) What’s the smallest/oldest device someone tried LMTX on? (We were joking about “Hans’ thermostate and Alan’s fridge“…) Would it run on some 8 bit homecomputer? (I’d guess the RAM is too limited, and loading from datasette would need hours…) Just curious. The smallest i have here is a https://en.wikipedia.org/wiki/RCA_1802 which actually was a very nicely designed thing (also powers the hubble); processors never became cleaner. Now, as the kit I used only had 512 bytes ram (later 2K or so) it really learns one how to program efficiently (thihk of writing a simple game, save and load from cassette player, etc in that space; dynamic adaptive functions and such) and you know where I'm coming from'(later pascal and modula). That said: luametatex has a smaller memory footprint than luatex although nodes are way bigger but even that won't make it run well on an 8 bit processor, assuming it can address 32 bit mem. Context mkii started on 4.7 Mhz intel (386) so now we're 1000 times faster but performance gain is not linear. After all, tex has to compete with other applications running at the same time (browsers, remote clients, media apps, web polling apps, zoom, etc.) so it's kin dof amazing that it actually performs okay. What boosted performance is for instance ssd's. What might boost is ddr5 memory but that has to catch up with ddr4 first. What also boosted luametatex is cpu cache. I remember when taco and I moved to the math part we noticed a drop in performance, until machines got updated with larger cache. We'd just crossed some magic threshold. Actually, I kind of assume that we're stuck with cpu performance but nevertheless luametatex became faster. It helps to develop on an older machine and not on a yearly updated one as that obscures matters. (Not that I'd not like a faster machine, but that comes at a steep price.) Hans ps. In the tranmsition from pdftex to luatex to luametatex one should not underestimate Taco's effort of going from basically unreadable and useless C output by web2c (pascal -> c) to what became the luatex C code base (with embedded original documentation). From that we added more functionality gradually over a decade till luametatex spun off, which then lead to quite a bit of refactoring again (but trying to maintain the spirit of how tex is programmed). - 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why LuaMetaTex is so slow?
On 1/18/2024 11:15 PM, Bruce Horrocks wrote: On 18 Jan 2024, at 18:56, Shiv Shankar Dayal wrote: I understand that why it is slow, but the problem is that the difference is too high. My book has lots of math, so perhaps that is the reason. Option 1: Buy or borrow a faster computer. You'll get your desired speed-up far faster than waiting for Hans to make changes, even assuming there is something that can be changed. I'd recommend a Mac M3 :-) As tex is a single core process (ok, the os might delegate some file handling to other cores) it benefits from jump in core speed. I use a 2017 laptop with a reasonable fast intel xeon. I have a few docks spread round with different resolution monitors (1920x1200, 2560×1440, 4096×2160) and performance also depends on the connected monitor. I'd be curious to know how much these new processors impact performance over time because the ages of dohbling performance every year are past. There are several factors that impact performance: tex engine : quite a bit faster in luametatex mp engine : quite a bit faster in luametatex lua engine : not much we can do about but inefficient macros and usage can offset any gain in engine. One thing to keep in mind is that tex is an interpreter and all gets tokenized which is more costly in a 32 bit engine than in an 8 bit one (like pdftex). And although luametatex is more efficient than luatex that gets offset by more features that come at a price, but we still win. It helps a bit to know what tex does and what macros add to that. Simple timing operations is useless as in practice we have less cache hits than with a simple loop test: tex is jumping all over memory. Bottlenecks are often noe where one expects them. Anyway, if one can choose: go for a few high perfotmance cores over dozens of so called efficient cores. (that said: luametatex runs fine on my mobile phone) Option 2: Split your book into a project with each chapter, or even part of a chapter as a separate component and compile only the chapter you are working on. Set up a nighttime (or lunchtime) run to regenerate the entire book while you're away from the computer and speed doesn't matter. Indeed. That's the natural way to deal with large documents. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: LuaMetaTeX code
On 1/19/2024 9:31 AM, Shiv Shankar Dayal wrote: I see code like # define luametatex_version 210 # define luametatex_revision 10 # define luametatex_release 10 # define luametatex_version_string "2.10.10" starting with C99 these become unnecessary. Rather they should be like const int luametatex_version=210; const char* luametatex_version_string="2.10.10"; These ensure type-safety in the code and are good coding practice. Good coding practice discussions are wasted on me (you don't want me to look at your tex code -) The versioning is abit special in te xdue to the fact thet some numbers en dup in registers and others as token list (string). I have considered changing that but it would also break some 'testing for tex version' so for now we have to accept this mix of tex/etex/pdftex inheritance. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: LuaMetaTeX code
On 1/19/2024 9:26 AM, Shiv Shankar Dayal wrote: Dear Hans, I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not good coding practice. These potions of code which have goto should be refactored. I am a C programmer, but I know very little of TeX. If you can point me towards where should I start for TeX(perhaps TeX Book or TeX for the Impatient), I can help with refactoring of code to make is more efficient/easier. Luametatex evolves out of traditional tex so we have/keep some and although i grew up in the 'anti goto' times (pascal) there are plenty cases where i see no problem. Occasionaly I clean up such bits (when it makes sense). And I'm not going to enter coding practice discussions. Forget about refactoring ... there has already be done a lot of that and we want to stay sort of close to the original (also due to doicumentation). I know the code quite wel now and refactoring is for me counter productive. These are projects running for decades and engines need to be stable so changes come slow. You can compare the luanmetatex source to luatex and pdftex to see how we proiceed. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why LuaMetaTex is so slow?
On 1/19/2024 1:33 AM, Aditya Mahajan wrote: \starttext \dorecurse{5000}{\ReadFile{knuth}} \stoptext I'll send you the PDFs offlist. lmtx defaults to 'modern' so you need to \setupbodyfont[modern] for mkiv 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why LuaMetaTex is so slow?
On 1/19/2024 12:34 AM, Aditya Mahajan wrote: On Thu, 18 Jan 2024, Hans Hagen wrote: Of course we'll never be as fast as (pure) plain tex (no layers added) or latex (which often is advocated as faster than context). I was curious, so did a quick experiment: typeset \input knuth 500 times. Here are the results: pdflatex: 547 pages/sec lualatex: 308 pages/sec opentype or type 1 ? MKIV: 130 pages/sec LMTX: 147 pages/sec that is weird as lmtx is always faster here (we loose some 15% on the backend compared to luatex, maybe even more, but we gain back quite a bit elsewhere for various reasons) Interestingly, pdflatex, lualatex, and MkIV all generated pdf with 1112 pages, while LMTX generated a pdf with 1250 pages. Both MkIV and LMTX take the same time to run (8.5 sec) but LMTX generates more pages so it is faster. puzzling Of course, this is a meaningless experiment from a practical point of view as a 1000 page document will be more complex than just text. % engine=pdftex 1.2 % engine=luatmetatex 1.6 % engine=luatex 1.8 % engine=xetex 2.4 \starttext \dorecurse{500} { \input knuth \par } \stoptext 125 pages, so how does your test file look 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why LuaMetaTex is so slow?
On 1/18/2024 7:56 PM, Shiv Shankar Dayal wrote: In comparison to LaTeX with LuaHBTeX, ConTeXt with LuaMetaTeX is lightning fast. pdfTeX is 8bit, and Knuth’s plain TeX is very low level – for a fairer comparison, try the TeXbook on LuaMetaTeX (I don’t know if “plain” works though). I understand that why it is slow, but the problem is that the difference is too high. My book has lots of math, so perhaps that is the reason. You can run the texbook with \tracingall and see what actually happens. The texbook uses plain tex (very lightweight) with a dedicated style (also lightweight). On the contrary context uses layers of abstraction, a more complex font, math, structure, page etc etc etc sytstem. In fact, plain tex had to be as it is because otherwise it would take ages to process teh texbook. On a pc one could see the page numbers crawl so in the end wr're quite okay nowadays. If you run context with \tracingall you'll see that more goes on. For me 40 pps sounds not that bad. If you use only text you can get to 500 pps but that's not realistic. Maybe your style is suboptimal. Also, open type fonts, opentype math, unicode, color, etc etc comes at a price. And, compared to pdftex, in most cases luametatex is faster on documents of average complexity. If you also use xml and/or metapost you migh tbe dragged down to a few pages per second while lmtx doesn't suffer much. Anyway, if you think it can be made faster you can always post code to this list that identifies bottlenecks. Of course we'll never be as fast as (pure) plain tex (no layers added) or latex (which often is advocated as faster than context). 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: upload
On 1/18/2024 3:27 PM, Otared Kavian wrote: Dear Dalyoung, dear Mikael, I installed anew the whole LMTX tree and now everything is working fine. I don’t know whether this is related or not, somehow in my previous tree I had a directory (or folder in the MacOS language) named « texmf-osx-64 » instead « texmf-osx-arm64 » and this apparently had consequences. In any case everything works fine now. Thanks to Hans, Mikael and all the people on this list! concerning the prime, use $x\prime$ and not $x^\prime$ as you might want $x^2\prime$ some day in the first case it's really a prime, in the second case a prime symbol in a superscript; in lmtx we have for each nucleus a presubscript, presuperscript, subscript, superscript and primescript (plus index ones) 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: context version 20240118
On 1/18/2024 12:59 PM, Thomas Meyer wrote: What is going on? Yesterday I got a perfect on-grid-written document! But today, with the newest context-version (20240118) all changed for the worse. as follow up on the keyword thread we decided to treat bad values to equivalent to 'no' I may not get a reply to this e-mail either! ? 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: [ \copypages ]
On 1/17/2024 10:20 PM, vm via ntg-context wrote: Is there a (hidden) option that allows for changing the font color of external included pdfs yes but experimental and not yet documented 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] upload
Hi, I uploaded a new version (there is some work in progress but it probably doesn't affect anyone). 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: How to obtain older versions of LMTX?
On 1/17/2024 11:13 PM, Otared Kavian wrote: Hi Gavin, Thanks for your reply. Does TeX Live contain LuaMetaTeX (LMTX)? That is because I need LMTX to typeset a presentation for which most of the content is ready, but using features from LMTX… You can try to fetch https://github.com/contextgarden/context as that is still the old one (it should be possible to get by push date but i'm not fluent in git). Make a copy of your tex tree and copy teh donloaded files over it and see if a format can be made. Anyway, I'lll see if I can update one of these days. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Spacing problem in formula
On 1/15/2024 8:00 AM, Shiv Shankar Dayal wrote: Thanks a lot Mikael. in addition: in context lmtx {} are grouping symbols not (ordinary) empty atoms On Mon, Jan 15, 2024 at 12:24 PM Mikael Sundqvist <mailto:mic...@gmail.com>> wrote: Hi, ConTeXt supports prescripts: \startTEXpage[offset=1DK] \m{1 - {}^nC_2\tan^2\theta + {}^nC_4 } \m{1 - C_2^^n \tan^2\theta + C_4^^n } \stopTEXpage If you want them below, use double _. /Mikael On Mon, Jan 15, 2024 at 7:45 AM Shiv Shankar Dayal mailto:shivshankar.da...@gmail.com>> wrote: > > Suppose I want to typeset the formula: 1 - {}^nC_2\tan^2\theta + {}^nC_4 then it appears as if n is power of - and +. The same formula in LaTeX comes out nicely. Is there something I need to change? > > -- > Respect, > Shiv Shankar Dayal > ___ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl <https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl> > webpage : https://www.pragma-ade.nl <https://www.pragma-ade.nl> / https://context.aanhet.net <https://context.aanhet.net> (mirror) > archive : https://github.com/contextgarden/context <https://github.com/contextgarden/context> > wiki : https://wiki.contextgarden.net <https://wiki.contextgarden.net> > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl <https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl> webpage : https://www.pragma-ade.nl <https://www.pragma-ade.nl> / https://context.aanhet.net <https://context.aanhet.net> (mirror) archive : https://github.com/contextgarden/context <https://github.com/contextgarden/context> wiki : https://wiki.contextgarden.net <https://wiki.contextgarden.net> ___ -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ -- - 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: font error in float placement?
Hi, to index a nil value (field 'embed') fixed in next upload (this merge upgrade is a bit work in progress) 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Metapost docs
On 1/11/2024 4:54 PM, Shiv Shankar Dayal wrote: Dear Gavin, I am aware of these resources. My question is about docs of those Metapost libs which are in the distribution in Metapost directory. If something is not in the metafun, luametafun or another manual, then you should not use it as it's likely some low level helper then. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Chemnitz, Leipzig, Call for Poster
On 1/10/2024 8:00 AM, juh via ntg-context wrote: Dear Hraban, Am Sun, Jan 07, 2024 at 09:59:14AM +0100 schrieb Henning Hraban Ramm: I’d like to have a poster that shows off ConTeXt/MetaFun features. Do you have suggestions or (even better) would you like to create it? It would be nice to have for further events (last year I presented ConTeXt at FrOSCon and CCCamp and lacked a poster). I just submitted a talk about how we use Markdown, Pandoc and ConTeXt at Hostsharing eG, so maybe we'll meet in Chemnitz. A poster would be nice. ConTeXt/MetaFun are overwhelmingly flexible and powerful. It is hard to come up with a good idea. Who is targeted? ConTeXt is interesting for people that want to integrate a typesetting system in a publishing environment, because ConTeXt does not stand in your way as LaTeX often do and has many programming features (lua, xml ...) or typeset very customized layouts. These two target groups are very different. Integratable building blocks for a complex publishing system or programmable layout machine – sorry, I am just brainstorming, but I like the idea of a poster. maybe what you could do is collect statements like these (users saying how they use / percieve it) and put that on a poster 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Fwd: Re: x mark symbol and general symbol guide
On 1/9/2024 8:31 PM, Gerion Entrup wrote: My system awesome font is version 6 but isn't the one bundled with ConTeXt version 5 (FontAwesome.otf)? This one: tex/texmf/fonts/data/fonticons/fontawesome/FontAwesome.otf: OpenType font data I would assume that ConTeXt is using the bundled file by default. It's not our hobby to keep up with font versions and changing names so we depend on users to signal that. Also, with fonts you never know what updated fonts will break. In a next upload we'll define a list of names [5-9] so that we're more future proof. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why the way key-value argument is called affected the document's output?
On 1/8/2024 11:05 PM, 1114...@gmail.com wrote: Hi, I was cleaning and formatting my context file and then when I compiled it, the output I got introduced extra vertical spacings at the section headings that weren't there in the previous compilations. I had to spend enormous amount of time trying to fix it so to emulate my previous outputs. Turns out the problem was how I called one of the key-value argument in the document. I really wanna know the reason why it did influenced the output? Provided below is the minimal source code (and it is producing different outputs, meaning the vertical spacings are not same, on my device running the version released in the September and also tested with the latest release.) """ %% differences in outputs, for how "grid=yes" is called. %% Type 1. %\setuplayout[grid=yes] Here you set the grid variable to "yes". %% Type 2. %\setuplayout[ %grid=yes %] Here you set the grid variable to "yes " so a trailing space. \setuphead[section][grid=low] %% needed to observe the output difference \starttext \title{Alpha} \subsection{Beta} \input{knuth} \stoptext So this is ok: \setupfoo [a=A, b=B] \setupfoo [a=A, b=B, ] I'm not aware of funmdamental changes in the parse, apart from that in many setup commands one can now do this: \setupfoo [A=\this[works], B=\that[doestoo]] as nested brackets are handled. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] update
Hi, With the build farm still down I now use an alternative build, that is, I run a compile script on s bunch of machines and hope for the best. In the process I decided to drop 32 bit installers (users can generate bins themselves if needed). I also drop bsd version and just use the latest. For OSX I use a retired macbook air that Hans vd Meer sent me that has an old operating system but new enough so that its xcode can make intel and arm binaries. The linux binaries have teh problem that they depend on glibc versions and I'm assuming a reasonable up to date system so I use opensuse leap (which is not even that new with it comes to glibc but we use it on servers here). texmf-win64 : laptop (linux subsystem on windows) texmf-windows-arm64 : laptop (native visual studio) texmf-linux-64 : linux-opensuse-leap (latest leap 15) texmf-linux-aarch64 : raspberrypi (latest debian) texmf-linuxmusl-64 : linux-alpine-64 (whatever) texmf-osx-64: airbook/118/hvdm(older xcode) texmf-osx-arm64 : airbook/118/hvdm(older xcode) texmf-freebsd-amd64 : openbsd-amd64-14(latest) texmf-openbsd-amd64 : openbsd-amd64-74(latest) If your platform doesn't work you can download the texmf.zip, context-texmf.zip and installation.pdf and start from there: create the tree, compile from source, move the binaries and it should just work. I have no clue if the uploaded files are working but let's see ... (some paths have been renamed) 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Metapost docs
On 1/8/2024 1:50 AM, Shiv Shankar Dayal wrote: I see many libraries for Metapost in Context source. Where are these documented? I see Metafun manual as well, but I do not find all the included libraries described. i'm not sure what you mean with library ... can you give an example? 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Solaris 11 SPARC Support [SEC=OFFICIAL]
On 1/5/2024 12:54 AM, Michael Wigston via ntg-context wrote: Hi, Would you consider supporting Solaris 11 on SPARC? Alternatively if you could provide documentation how to build Context on "SunOS sun4v" hardware would also be beneficial. I have compiled luametatex, but getting below error when trying to create cache and not sure if this is a compatibility issue. bin/custom# ./mtxrun --generate startup error : no format file given, quitting You can create a tex tree with: http://lmtx.pragma-ade.nl/install-lmtx/installation.pdf http://lmtx.pragma-ade.nl/install-lmtx/texmf.zip http://lmtx.pragma-ade.nl/install-lmtx/texmf-context.zip and then populate /tex/texmf-solaris/bin and proceed as described in the manual. Or you can install on another machine and replace the bins there by yours. Basically 'support' means a tree where the binary resorts, 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: 2024
On 1/1/2024 3:33 PM, vm via ntg-context wrote: On 01/01/2024 13:28, Hans Hagen wrote: Of course it screams metapost but tex and lua are also involved. See it as compensation for the lack of an end-of-year update. The last page of the result has a bit of explanation. Beautiful indeed ! (And thank you for all the good work) Is the puzzle generator somewhere hidden to be found within the context module tree? It's not that much code but I need to add a keyword interface. It's also something we might play with a little at this years meeting so ... (I added a gray scale option for tyhose without color printer.) Here's a big one (the xmas card): http://www.pragma-ade.nl/ctx-group-2023.pdf 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] 2024
Hi, As a side effect (spin off) of this years xmas card we have a new years gimmick: https://www.pragma-ade.nl/2023 Of course it screams metapost but tex and lua are also involved. See it as compensation for the lack of an end-of-year update. The last page of the result has a bit of explanation. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: MetaFun path joiners && and &&&& do not like single point paths
On 12/31/2023 8:06 AM, Mikael Sundqvist wrote: \startMPpage path p[], q ; p1 = fullcircle scaled 3cm ; p2 = fullcircle scaled 2cm shifted (3cm,0) ; p3 = (3cm,2cm) ; p4 = fullcircle ; q = p[1] for i = 2 upto 3: if (length(p[i]) == 0): &&& else: && fi p[i] endfor && cycle ; eofill q withcolor 0.9 ; draw p1 withpen pencircle scaled 2pt withcolor .7 ; draw p2 withpen pencircle scaled 2pt withcolor .7 ; draw p3 withpen pencircle scaled 2pt withcolor .7 ; draw q withcolor red ; draw fullcircle scaled 6cm shifted (1.25cm,0) ; \stopMPpage maybe this is a bit more beautiful then q = for i = 1 upto 3 : if length(p[i]) == 0 : % todo: a fast nolength (p[i] -- p[i] shifted 5(eps,eps)) else: p[i] fi && endfor cycle ; (i'm not sure if we should change the implementation, probably not unless we have &&&&& -- actually we could have proper keywords which makes it less clumsy. Or 'recycle' that does the ugly eps job when we have a zero length path but we can move that over the year boundary.) 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Status of Asymptote
On 12/30/2023 8:04 PM, Shiv Shankar Dayal wrote: Hi all, It would be nice to either support Metapost 3D or Asymptote. Right now I generate images separately and embed them in PDF using externalfigure command which works but I have to maintain all the graphics separately. next year we will pick up 3 (2.5, projections) in mp (either native or in macros) ... there will be no support for asymptote beyond what we have now 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Hyphenation for Indonesian language
On 12/29/2023 9:09 PM, Arthur Rosendahl wrote: Hi Muhammad, On Sat, Dec 30, 2023 at 01:08:24AM +0700, Muhammad Rizqi Siregar wrote: I'd like to ask if ConTeXt LMTX has hyphenation for Indonesian language or a way to enable it. I think Babel package in LaTeX has some pattern files for the language, although I am not sure whether they can be borrowed to work with ConTeXt or not. Yes, ConTeXt can use the same patterns as LaTeX. Hans: they’re in the same repository as all the other ones, BCP47 code ‘id’. ok, i enabled them in mtx-patterns.lua ad will include them next upload Btw, Tomas Hala is currently working on (among some other languages) Indonesian with his students (labels etc) so next month that will likely show up. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Seeking advice for module that draws globes
On 12/18/2023 5:22 PM, Gavin wrote: Hi Hans, On Dec 18, 2023, at 3:12 AM, Hans Hagen via ntg-context wrote: about names: how about t-luageo.lmt t-luageo.mpxl so that one knows what comes with the module (we do the same with s-* modules) "t-luageo.lmt" is fine, but "t-luageo.mpxl" breaks the module. I think the line \startMPdefinitions loadmodule "luageo" ; \stopMPdefinitions finds “mp-luageo” but not “t-luageo”. Changing the line to "loadmodule “t-luageo” does not work either. so how about mp-t-luageo and you can add the example to the end of the module Done. On Dec 18, 2023, at 3:08 AM, Hans Hagen via ntg-context wrote: Also, we do have a strange artifact, at least when I run this code. There is a line running across Brazil: i'm not sure where that comes from (you can try &&&) I will use &&& in my upcoming module, t-discoworld. (Drawn with eofill, for maximum grooviness.) Is there a place I can read about disconnected paths, &&&&, and &&&? These are totally unfamiliar to me. at some point in the luametafun manual and they are probabaly mentioned in some docs that describe development it's anyway something introduced last year, so kind of new 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Seeking advice for module that draws globes
On 12/17/2023 11:22 PM, Gavin via ntg-context wrote: Hello ConTeXters, I wrote a little ConTeXt module for drawing globes. I would love some advice on how to improve it and share it. The code is quite short (about 250 lines). Most of the work is done by Lua, which reads the data files and calculates paths. These paths are passed to MetaFun, which draws the globe. about names: how about t-luageo.lmt t-luageo.mpxl so that one knows what comes with the module (we do the same with s-* modules) and you can add the example to the end of the module \continueifinputfile{t-luageo.mkxl} \starttext exaple code \stoptext and then process the module to get the example 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Seeking advice for module that draws globes
On 12/18/2023 4:49 AM, Gavin wrote: Hi Hans, Thanks for all the suggestions! I am going through them carefully. - in mp you can do this vardef theglobe(expr lat, lon) = for i = 1 upto lua.mp.makeglobe(lat, lon): (lua.mp.getglobepath(i)) &&&& endfor cycle enddef ; Does "&&&&" allow a disconnected path? I haven’t seen "&&&&" or a disconnected path before. Also, we do have a strange artifact, at least when I run this code. There is a line running across Brazil: I only got the line for (23,0), not for other latitude and longitude. I’m not sure what caused that. The code for cutting and mending paths that cross the horizon is tricky. I’m not sure how it will interact with "&&&&" and “cycle" connecting everything. i'm not sure where that comes from (you can try &&&) 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Seeking advice for module that draws globes
On 12/17/2023 11:22 PM, Gavin via ntg-context wrote: Hello ConTeXters, I wrote a little ConTeXt module for drawing globes. I would love some advice on how to improve it and share it. The code is quite short (about 250 lines). Most of the work is done by Lua, which reads the data files and calculates paths. These paths are passed to MetaFun, which draws the globe. Just some quiks remarks ... - you use the right strategy (tex/lua/mp) - in mp you can do this vardef theglobe(expr lat, lon) = for i = 1 upto lua.mp.makeglobe(lat, lon): (lua.mp.getglobepath(i)) &&&& endfor cycle enddef ; and then: \startMPpage GlobeDiameter = 10cm ; fill fullcircle scaled GlobeDiameter withcolor .9white ; path p ; p := theglobe(23, 0) scaled .5GlobeDiameter ; draw p withpen pencircle scaled .2mm withcolor blue withtransparency (1,.5) ; fill p withcolor red withtransparency (1,.5) ; draw fullcircle scaled GlobeDiameter withcolor black ; \stopMPpage i use transparency to demo that a single path has advantages; you'll also notice that the runtime is actually at the mp end. - in your lua code do this local cosd = math.cosd local sind = math.sind local sqrt = math.sqrt - also, use "MP.makeglobe" in the mp code and at the lua end function MP.makeglobe"" as that is the user namespace. I'll mail you the lua file with some suggestions. When all is stable I can spend a few hours on optimizing if needed. I am a novice at both Lua and MetaPost. I’m also new to Git and have never shared anything of substance with the ConTeXt community. (This barely counts as substantive, but I figure it’s best to start small.) I’m sure many of you could find opportunities for improvement with even a quick glance at the code. I welcome anything, from advice on performance to suggestions about the license. My most pressing questions are these: 1. How do I avoid redrawing diagrams with every typeset? The globe above takes about 0.7s, which is not bad, but it adds up in a book with many diagrams. see previous mail 2. How do I organize this according to TDS for sharing? I know what TDS is and why it’s important, but that’s about it! 3. Should I be creating a namespace for this module, or launching a separate MetaFun instance? I have a general sense of what “namespace” and “instance” mean is this context, but I don’t know the consequences or the how-to. I’d like to share this module, even though the potential demand is tiny, at best. I’m going through the Module Writing Guidelines (https://wiki.contextgarden.net/Modules#Module_writing_guidelines), but there is a lot that I don’t understand in those instructions. Questions 2 and 3 above relate to the instructions that are most mysterious to me. I think I can figure most of the others out. I have been using ConTeXt for several years to write a high school physics textbook (along with the problem sets, tests, equations sheets, etc.). I wrote this module because I needed globes in some diagrams. I found an old MetaPost tool, mp-geo, that seemed to have the right ingredients, but I couldn’t get it to work, so I wrote my own tool using the data files from mp-geo. Hans and others on the list gave me valuable advice for these globes a couple years ago (and gave other valuable advice on all sorts of things before and since). Many diagrams in my physics book use TikZ and pgfplots. I'd like to convert everything to MetaFun. I think the best way will be writing a few more modules for things like graphs (including polar and 3D plots), simple circuits, simple Feynman diagrams, etc. I’m hoping that these would be useful to the ConTeXt community. The luageo module has the basic design I’d like to use for the others: Lua for data handling and calculations, producing paths that are drawn by MetaFun. With some mentoring from the generous ConTeXt community, I’m hoping we can provide MetaFun alternatives to some of the TikZ libraries. next year Mikael S and I are going to look into 3D (and projections) as we can only work on math when we have a parallel metafun pet project. I have an alpha version of luagraph by Alan Braslau, which was helpful in designing luageo. Working on luagraph is my next project. Gavin ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ -- -
[NTG-context] Re: Seeking advice for module that draws globes
On 12/17/2023 11:22 PM, Gavin via ntg-context wrote: 1. How do I avoid redrawing diagrams with every typeset? The globe above takes about 0.7s, which is not bad, but it adds up in a book with many diagrams. \startbuffer[demo] \usemodule [luageo] \startMPpage GlobeDiameter = 10cm ; fill fullcircle scaled GlobeDiameter withcolor .9white ; % Fill a circle with the water color. drawglobe(23, 0) scaled GlobeDiameter withcolor .75white ;% Draw the land. draw fullcircle scaled GlobeDiameter withcolor black ;% Add a border, if you want. \stopMPpage \stopbuffer \typesetbuffer[demo] 2. How do I organize this according to TDS for sharing? I know what TDS is and why it’s important, but that’s about it! Hraban will guide you here. 3. Should I be creating a namespace for this module, or launching a separate MetaFun instance? I have a general sense of what “namespace” and “instance” mean is this context, but I don’t know the consequences or the how-to. If the code is robust there is no need for an instance. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: error with definestartstop and startmode
On 12/16/2023 9:17 AM, Peter Münster wrote: Hi, I get an "runaway error" with the following example: --8<---cut here---start->8--- \definestartstop[H][color=blue, before={\startmode[h]}, after={\stopmode}] \starttext test \startH TEST \stopH \stoptext --8<---cut here---end--->8--- How could I create such start-stop pair please? doesn't work because \stopmode is a delimiter when shipped \usemodule[abbreviations-logos] \defineblock [H] [before=\startcolor[blue],after=\stopcolor] \keepblocks[H] \starttext test \beginH TEST \endH test \stoptext 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: regular online meet-up
On 12/13/2023 11:56 AM, Henning Hraban Ramm wrote: Am 13.12.23 um 11:45 schrieb Hans Hagen: On 12/13/2023 10:50 AM, Henning Hraban Ramm wrote: Reminder: This is tonight! I’m looking forward to hear more about the latest developments! oh, some non-disclosure as not-yet-in-install stuff ... secrets for the attendants Do we have to sign an NDA? i delegate that to the moderator: checking for spies 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: regular online meet-up
On 12/13/2023 10:50 AM, Henning Hraban Ramm wrote: Reminder: This is tonight! I’m looking forward to hear more about the latest developments! oh, some non-disclosure as not-yet-in-install stuff ... secrets for the attendants 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Score sums and references
On 12/13/2023 4:05 AM, Jairo A. del Rio wrote: Hi, dear list. Is there a proper "ConTeXt way" to do the following? \integerdef\lmao=0 \starttext Sum: \in[trick] % 10 from the result below +1\advance\lmao\plusone +2\advance\lmao\plustwo +3\advance\lmao\plusthree +4\advance\lmao\plusfour \normalexpanded{\reference[trick]{\the\lmao}} % 10 printed above \stoptext I want the result of a sum (either via Lua or TeX) to be printed before summands in text, but without the mess of reference options such as interaction, etc. Thank you in advance and sorry for any inconvenience. \integerdef\DSlmao=0 \starttext Sum: \datasetvariable{test-1}{1}{whatever} \startlines +1\advance\DSlmao\plusone +2\advance\DSlmao\plustwo +3\advance\DSlmao\plusthree +4\advance\DSlmao\plusfour \stoplines \normalexpanded{\setdataset[test-1][whatever=\the\DSlmao]} \stoptext - 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)
On 12/9/2023 4:33 PM, Aditya Mahajan wrote: On Sat, 9 Dec 2023, Wolfgang Schuster wrote: \starttext \startlines \type{\frac{1}{3}}: \m{\frac{1}{3}} \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} \type{\sfrac{1}{3}}: \m{\sfrac{1}{3}} \type{\frac{1}{3}}: \m{\frac{1}{3}} \type{\dfrac{1}{3}}: \m{\dfrac{1}{3}} \type{\cfrac{1}{3}}: \m{\cfrac{1}{3}} \type{\vfrac{1}{3}}: \m{\vfrac{1}{3}} \type{\hfrac{1}{3}}: \m{\hfrac{1}{3}} \stoplines \stoptext Or, for inline math, $\sqrt{1/3}$. radicals are somewhat special to deal with: - multidimensional delimiter - vertical spacing inside - horizontal spacing oustside - anchoring degrees - left and right radicals - more consistent rules (char based) - size dependent additional spacing (avoid clash) - normalize size across formula - lack of granularity in variants sizes by now we have dealt with all of that (some not in the current release), think of additional control in the engine, compensation for insufficient opentype math features, companion fonts with more sizes there will always be suboptimal cases but the average is ok (we put radical - character kerning on hold because it is a lot of definitions) and we don't want to add hard to fight heuristics so to inline: in most cases the solution that Adirya suggests will work out okay with respect toline spacing 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: mtx-synctex.lua question
On 12/8/2023 7:51 PM, Jim wrote: Hi Hans (and anyone else interested in synctex), 282a284,285 locate( 0, s) if fi ~= 0 then tl = s ; goto done end locate( 0,-s) if fi ~= 0 then tl = s ; goto done end and then wrote the following quick and dirty shell script to create log files for comparison: ok Admittedly, with the other two directions added in, a more extensive test (a total of a bit under 14 minutes CPU time on a Ryzen 4700U) showed the new version is about 0.5% slower, so there is a very minor downside. (I'd happily spend the extra matches for the minuscule amount of CPU time, but others may not.) the .5% precen tis no big deal, also because this script is not that time critical (the code could be made a bit faster anyway) so i'll add the few lines so those 14 minutes, was that N times a file or 1 time a huge file? 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: mtx-synctex.lua question
On 12/7/2023 7:23 PM, Jim wrote: Hi, In mtx-synctex.lua, inside local function findlocation(filename,page,xpos,ypos,tolerance) there is the following code: for s=1,tolerance,max(tolerance//10,1) do locate( s, 0) if fi ~= 0 then tl = s ; goto done end locate(-s, 0) if fi ~= 0 then tl = s ; goto done end locate( s, s) if fi ~= 0 then tl = s ; goto done end locate( s,-s) if fi ~= 0 then tl = s ; goto done end locate(-s, s) if fi ~= 0 then tl = s ; goto done end locate(-s,-s) if fi ~= 0 then tl = s ; goto done end end Is the omission of the locate(0, s) ... and locate(0, -s) ... cases intentional, or is that an oversight? If intentional, can someone explain the rationale to me? it's too long ago to remember the reason ... did you test with and without? 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Buffer and \input content as input for \processtokens, etc.
On 12/6/2023 8:26 PM, Jairo A. del Rio wrote: Hi, list! My question is just like that: how do I pass buffers or \input content to \processtokens. What I have done so far: \tolerant\protected\def\foo#={\ifparameter#1\or\oof{#1}\fi} \protected\def\oof#1{<#1>} \startbuffer[ofo] % Output: Ths not a anymore! Th{i{s {is} not a {question} anymore! \stopbuffer \starttext \processtokens\foo\foo\relax\space{Th{i}s {is} not a {question} anymore!} % Neither \inlinebuffer nor \rawbuffer work in the example above \stoptext I didn't try to decipher this (you probably need expansion someplace), I've also tried a variant of the mechanism described in OPmac trick described here <https://petr.olsak.net/opmac-tricks-e.html#etoks> to process content token by token, but it only works with \normalinput. Any suggestions or guidance? Thank you in advance. \starttext % \doloopovermatch % {(.-)(\letterpercent b\letterleftbrace\letterrightbrace)(.-)} % {Th{i}s {is} not a {que{s}tion} anymore!} % {#1<#2>#3} \startluacode interfaces.implement { name = "WeirdCommand", -- arguments = "string", arguments = "detokened", public= true, actions = function(s) s = string.gsub(s,".",{ ["{"] = "<", ["}"] = ">",}) context(s) end } \stopluacode \WeirdCommand {Th{i}s {is} not a {que{s}tion} anymore!} \stoptext 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Inline math spacing
On 12/4/2023 2:42 PM, Alexandre Christe wrote: Hi Hans, Thanks for your answer. It helps a lot. Would there be a way to only add space when inline math is not followed by punctuation, i.e., when inline math is followed by a space? A. Christe Le 4 déc. 2023 à 14:08 +0100, Hans Hagen , a écrit : \setupmathematics[textdistance=.25em plus .1em minus .1em] Hm, I can make it optional (engine feature then) but will discuss it with Mikael first. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: externalfigure crashed
On 12/4/2023 5:38 PM, Pablo Rodriguez via ntg-context wrote: On 11/24/23 18:16, Hans Hagen via ntg-context wrote: […] will do for now ... i can't upload a new installer .. pending the built; the advantage is that i can do some experiments that would otherwise break the current version (making compact font mode very close to normal, pdf signing […] Sorry, Hans, if I am missing the point. Does the above mean that ConTeXt will be able to sign PDF documents with digital certificates? Well, that's what singing is, right? The problem is actually less in the signing than in the certificates themselves. Basically one can sign (with some certificate) and then validate. % sign-001.tex \setupinteraction[state=start] \definefield[signature][signed] \defineoverlay[signature][my signature] \starttext \startTEXpage[offset=1ts,frame=on,framecolor=darkblue] sign: \inframed [background=signature,framecolor=darkred] {\fieldbody[signature][width=3cm,option=hidden]} \stopTEXpage \stoptext after neing processed: mtxrun --script pdf --sign --certificate=sign-001.pem --password=test sign-001 (--library) and: mtxrun --script pdf --validate --certificate=sign-001.pem --password=test sign-001 (--library) etc. works here. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Inline math spacing
On 12/4/2023 6:43 AM, Alexandre Christe wrote: Hi, Here’s a MWE: \setupinterlinespace[line=3ex] \definefontfeature[default][default][lnum=yes,tnum=yes] \usetypescriptfile[alegreya_libertinus] \setupbodyfont[alegreya-light,ss,10pt] \setupmathematics[autopunctuation={all}] % math definitions \enablemathautospacing % more global % \enablemathautofencing % more global \enablemathautonumbers % more global % \autofences % more local \usemodule[ipsum] \starttext \ipsum \stoptext And I attach the two files to setup the font. no math ... anyway \showglyphs \dorecurse{100}{test \im{\frac{#1}{3}} test } \setupmathematics[textdistance=.25em plus .1em minus .1em] \dorecurse{100}{test \im{\frac{#1}{3}} test } will give more space but it's mostly optical that the math related spacing looks doferent from regular spaces. - 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Inline math spacing
On 12/3/2023 10:31 PM, Alexandre Christe wrote: Dear list, I’m facing some strange spacing with inline maths. Sometimes the space is ok (like around the first two fractions), but sometimes it is way too little. Do I miss to configure something? your spacing is little between words too .. hard to tell without MWE 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: externalfigure crashed
On 12/2/2023 4:57 PM, Fabrice Couvreur wrote: Hi Hans, I have the same problem and definitely need to use \externalfigure[] this weekend. In which file should this patch be added ? Thanks. cont-new.mkxl - 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___