From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Martin Althoff <martin.althoff@yahoo.com>
Subject: Re: circuitikz meters
Date: Tue, 1 Oct 2019 20:10:24 +0200 [thread overview]
Message-ID: <7b538c31-f097-cc03-ea8f-3704beae4e94@xs4all.nl> (raw)
In-Reply-To: <4c8174355e96e0600b7d93111a278240c2a803b2.camel@yahoo.com>
On 10/1/2019 7:42 PM, Martin Althoff wrote:
> Thanks for that Henri. I didn't expect a simple thing like that. As I had some similar
> "glitches" before, I'll have a look through the module.
If there are more such commands we can add them to the tikz module
loader. Just collect them.
> All the best, Martin
>
> On Tue, 2019-10-01 at 14:03 +1300, Henri Menke wrote:
>> Circuitikz uses \textbf inside, which is a LaTeX macro. Unfortunately, this is
>> hardcoded within the ammeter and voltmeter nodes, so you can't easily change
>> it. Instead you can simply provide a macro that does the correct thing.
>>
>> \usemodule[circuitikz]
>> \let\textbf\bold % <---
>> \starttext
>> \starttikzpicture
>> \draw (0,0)to[ammeter, t=A, i=$i$] ++(3,0);
>> \draw (0,4) to[rmeter, t=V, v>=$v$] ++(3,0) ;
>> \draw (0,2) to[voltmeter, l=$U$] (++3,2);
>> \stoptikzpicture
>> \stoptext
>>
>> Cheers, Henri
>>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2019-10-01 18:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-30 16:07 Martin Althoff
2019-10-01 1:03 ` Henri Menke
2019-10-01 17:42 ` Martin Althoff
2019-10-01 18:10 ` Hans Hagen [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=7b538c31-f097-cc03-ea8f-3704beae4e94@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=martin.althoff@yahoo.com \
--cc=ntg-context@ntg.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).