Re: [NTG-context] How to extend an existing macro to take optional parameters?

2023-03-14 Thread Bruce Horrocks via ntg-context
> On 14 Mar 2023, at 02:08, Alan Braslau via ntg-context > wrote: > > Designating "optional" parameters within [...] is a LaTeX notion. > ConTeXt handles parameters differently. > > Alan Thanks Alan but I've never used LaTeX so I've no idea what the philosophical differences are. I wanted

Re: [NTG-context] How to extend an existing macro to take optional parameters?

2023-03-14 Thread Bruce Horrocks via ntg-context
> On 13 Mar 2023, at 21:39, Hans Hagen via ntg-context > wrote: > > On 3/12/2023 2:24 PM, Bruce Horrocks via ntg-context wrote: >> I have an existing macro that I'd like to extend. >> The current definition is \define[3]\mycommand{...} which I'd like to extend >> to take an optional 4th

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Gavin via ntg-context
On Mar 14, 2023, at 3:32 PM, Hans Hagen via ntg-context wrote: > On 3/14/2023 7:14 PM, Alan Braslau via ntg-context wrote: >> On Tue, 14 Mar 2023 12:03:23 -0600 >> Gavin wrote: >>> I’d really like one of the acceptable forms to be the form prescribed >>> by Le Système international d'unités >

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Hans Hagen via ntg-context
On 3/14/2023 7:14 PM, Alan Braslau via ntg-context wrote: On Tue, 14 Mar 2023 12:03:23 -0600 Gavin wrote: I’d really like one of the acceptable forms to be the form prescribed by Le Système international d'unités Maybe the french title is one of the reasons for the USA not picking up on

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Hans Hagen via ntg-context
On 3/14/2023 7:03 PM, Gavin via ntg-context wrote: I’d like to better understand how the \unit{} command works and why those choices were made. Some of the choices seem to be “asking for troubles,” but perhaps they are essential for some users. I wonder if Alan was using context when the

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Alan Braslau via ntg-context
On Tue, 14 Mar 2023 12:03:23 -0600 Gavin wrote: > I’d really like one of the acceptable forms to be the form prescribed > by Le Système international d'unités I believe that this point is essential, regardless of history of use of the \unit{} command. Non-standard use of units can be

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Gavin via ntg-context
On Mar 14, 2023, at 10:08 AM, Alan Braslau via ntg-context wrote: > Right now, \unit{1 mm-1} and \unit{1 m m-1} give the same result: > inverse millimeters (whereas the second should be m•m^{-1}…) > > Alan Alan, I’d like to better understand how the \unit{} command works and why those

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Hans Hagen via ntg-context
On 3/14/2023 5:33 PM, Gavin via ntg-context wrote: Hi Alan, Hans, and List, On Mar 13, 2023, at 8:10 PM, Alan Braslau via ntg-context wrote: On Mon, 13 Mar 2023 15:55:50 -0600 Gavin via ntg-context wrote: you can look at phys-dim and see plenty of short and long keys and making all case

[NTG-context] natural table oddities

2023-03-14 Thread Henning Hraban Ramm via ntg-context
Working on the documentation for “natural tables” I stumbled upon a few oddities/problems. I’d like to know if there are misunderstandings on my part or if the behavior is intentional. BTW enattab.pdf is missing in the LMTX distribution. ## Options * before/after/inbetween values don’t

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Gavin via ntg-context
I wrote > Perhaps we could use a \registershortcut command that does not get the > “lower" treatment. without seeing that Hans had already read my mind and provided: \registerunitshortcut [unit] [C=coulomb] That should work great. Thanks! Gavin

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Gavin via ntg-context
Hi Alan, Hans, and List, > On Mar 13, 2023, at 8:10 PM, Alan Braslau via ntg-context > wrote: > On Mon, 13 Mar 2023 15:55:50 -0600 Gavin via ntg-context > wrote: >>> you can look at phys-dim and see plenty of short and long keys and >>> making all case insensitive is asking for troubles >>

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Alan Braslau via ntg-context
On Tue, 14 Mar 2023 15:36:37 +0100 Hans Hagen via ntg-context wrote: > > Indeed, I would like to make NONE of them case insensitive. But > > currently, when I register an upper case key (C=coulomb) it messes > > up the lower case prefix (“cm" gets typeset as C•m). I was > > expecting the parser

Re: [NTG-context] extra lines in PDF annotations

2023-03-14 Thread Pablo Rodriguez via ntg-context
On 3/13/23 22:32, Hans Hagen via ntg-context wrote: >> [...] >> I hope EOLs are fine now. > dunno ... no full example so ... Sorry, Hans, the full example reads: \startbuffer[text] \stopbuffer \savebuffer[text][sample-text.xml, prefix=no] \setupinteraction[state=start]

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Hans Hagen via ntg-context
On 3/13/2023 10:55 PM, Gavin wrote: On Mar 13, 2023, at 3:44 PM, Hans Hagen via ntg-context wrote: On 3/9/2023 2:04 PM, Gavin via ntg-context wrote: \startformula \unit{3 meter} \qquad \unit{6 Meter} \qquad \unit{3 mEtEr} \qquad \stopformula Units with lowercase prefixes (c, k,