[NTG-context] circuitikz meters

Hans Hagen j.hagen at xs4all.nl
Tue Oct 1 20:10:24 CEST 2019


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 at 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
-----------------------------------------------------------------


More information about the ntg-context mailing list