[NTG-context] Units for volts and Ohms
Hi, As I was testing circuitikz, I realized that the following don't work: \unit{1V} \unit{100 kΩ} In phys-dim.lmt, we need to change line 467: v = "volt", to V = "volt", and perhaps add (not sure if lua allows utf variable names) Ω = "ohm", Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] tikz + lmtx
On Fri, 28 Apr 2023, Aditya Mahajan via ntg-context wrote: > On Fri, 28 Apr 2023, Ulrike Fischer via ntg-context wrote: > > > Am Fri, 28 Apr 2023 01:01:23 -0400 (EDT) schrieb Aditya Mahajan via > > ntg-context: > > > > > Circuitikz still doesn't work. Even loading the module fails. > > > > It works for me on texlive 2023 with your new module file. > > Thanks for testing. I'll double check what was going wrong with my circuitikz > tests. A 5 year old circuitikz module in $TEXMFHOME, which was interfering! Everything appears to be working now at my end as well. @Hans, could we add the m-tikz.mkxl file that I sent to the distribution. Thanks, Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] define math function with \, inside
Hi Mikael, On Mon, May 01, 2023 at 05:48:40PM +0200, Mikael Sundqvist via ntg-context wrote: > [...] > This works here (but maybe there should be a simpler way): > > \definemathfunction > [argmax] > [mathlimits=auto] > > \setupmathlabeltext > [en] > [argmax=arg\sixperemspace max] > [...] That was exactly what I was looking for. It is working perfectly. Thanks a lot! With this knowledge finding additional information in the wiki is much easier: :) 1. https://wiki.contextgarden.net/Command/_setuplabeltext 2. https://wiki.contextgarden.net/Command/_labeltext Stefan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] define math function with \, inside
Hi, On Mon, May 1, 2023 at 5:27 PM Stefan Haller via ntg-context wrote: > > Hi all, > > I wanted to define a custom math function (similar to log etc.) for > argmax. However, I wanted to have a small space between "arg" and "max" > and limits should work properly. I am using a up-to-date LMTX installation. > > Without the first constraint it's easy: > > > % old way: > > \definemathcommand[argmax][limop]{\mfunction[argmax]} > > % new way, discoverd by looking into math-def.mkxl > > \definemathfunction[argmax] > > However, both methods do not work if I want to have "arg\,max" printed > (error about \endcsname missing). With mkiv the first method works and > can also be found in the wiki[1]. > > What's the current way to define such a custom math function? > > Thanks! > Stefan > > [1]: https://wiki.contextgarden.net/Math/functions This works here (but maybe there should be a simpler way): \definemathfunction [argmax] [mathlimits=auto] \setupmathlabeltext [en] [argmax=arg\sixperemspace max] \startTEXpage[offset=1ts] \im{ \argmax_{a\in A} f(a) } \blank[big] \dm{ \argmax_{a\in A} f(a) } \stopTEXpage /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] define math function with \, inside
Hi all, I wanted to define a custom math function (similar to log etc.) for argmax. However, I wanted to have a small space between "arg" and "max" and limits should work properly. I am using a up-to-date LMTX installation. Without the first constraint it's easy: > % old way: > \definemathcommand[argmax][limop]{\mfunction[argmax]} > % new way, discoverd by looking into math-def.mkxl > \definemathfunction[argmax] However, both methods do not work if I want to have "arg\,max" printed (error about \endcsname missing). With mkiv the first method works and can also be found in the wiki[1]. What's the current way to define such a custom math function? Thanks! Stefan [1]: https://wiki.contextgarden.net/Math/functions ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Linebreaking in Japanese in ConTeXt
Am 30.04.23 um 12:42 schrieb Wolfgang Schuster via ntg-context: \startmode [JA] \setscript [nihongo] \mainlanguage [ja] \stopmode Shouldn’t that be \startmode[*ja], i.e. make it depend on the current language using the system mode? Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] no recent message listed in the web interface
On 4/30/23 23:17, Jean-Pierre Delange via ntg-context wrote: > That’ what I trad : > > *Starting:* /Sun Jan 1 10:21:44 CET 2023/ > *Ending:* /Tue Apr 11 15:13:54 CEST 2023/ Many thanks for your reply, Jean-Pierre. Now it is clear that the web interface is missing new messages. Many thanks for your help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] cannot generate format file with current latest
On 4/30/23 20:17, Hans Hagen via ntg-context wrote: > On 4/30/2023 3:19 PM, Pablo Rodriguez via ntg-context wrote: >> […] >> When I try to create the format file with "context --make --all", I get >> the following error message: >> […] >> token call, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index >> a nil value (global 'posit') stack traceback: > > you're running the wrong binary Many thanks for your reply, Hans. I’m afraid I had to update the binaries manually. After that, everything was fine. Many thanks for your help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___