ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: Re: [NTG-context] Units for volts and Ohms
Date: Thu, 4 May 2023 10:05:55 +0200	[thread overview]
Message-ID: <1691c760-03fe-27c9-e6f2-9915ebeaa468@freedom.nl> (raw)
In-Reply-To: <52po4qn1-2np7-6r76-2q67-o5r93620o0p6@hzvpu.rqh>

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
___________________________________________________________________________________

      reply	other threads:[~2023-05-04  8:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-02  6:09 Aditya Mahajan via ntg-context
2023-05-04  8:05 ` Hans Hagen via ntg-context [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1691c760-03fe-27c9-e6f2-9915ebeaa468@freedom.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@freedom.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).