* [NTG-context] Units for volts and Ohms
@ 2023-05-02 6:09 Aditya Mahajan via ntg-context
2023-05-04 8:05 ` Hans Hagen via ntg-context
0 siblings, 1 reply; 2+ messages in thread
From: Aditya Mahajan via ntg-context @ 2023-05-02 6:09 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Aditya Mahajan
[-- Attachment #1: Type: text/plain, Size: 291 bytes --]
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
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [NTG-context] Units for volts and Ohms
2023-05-02 6:09 [NTG-context] Units for volts and Ohms Aditya Mahajan via ntg-context
@ 2023-05-04 8:05 ` Hans Hagen via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen via ntg-context @ 2023-05-04 8:05 UTC (permalink / raw)
To: ntg-context; +Cc: Hans Hagen
On 5/2/2023 8:09 AM, Aditya Mahajan via ntg-context wrote:
> 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",
Ha, that's easy to test, right? So I won't answer this one.
(instead you can ["Ω"] = "ohm")
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://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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-04 8:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-02 6:09 [NTG-context] Units for volts and Ohms Aditya Mahajan via ntg-context
2023-05-04 8:05 ` Hans Hagen via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox