obsidian-tikzjax
obsidian-tikzjax copied to clipboard
Circuitikz: Variable Resistor wiper not supported?
I encountered the issue, that variable components wiper anchor do not seem to be known by tikzjax. My minimal example is:
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) node[vcc](vdd1){} to[vR,mirror,invert,name=P] ++(0,-2) node[ground]{};
\draw (P.wiper) to[C] ++(2,0);
\end{circuitikz}
\end{document}
For reference I tried it, by compiling it as standalone with my standard latex tools:
\documentclass[border=1mm]{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) node[vcc](vdd1){} to[vR,mirror,invert,name=P] ++(0,-2) node[ground]{};
\draw (P.wiper) to[C] ++(2,0);
\end{circuitikz}
\end{document}
and get
Just as expected.
I get the following logs in the console:
a7ff8e9f-0720-4890-8feb-c5e5560231ce:1 \usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) node[vcc](vdd1){} to[vR,mirror,invert,name=P] ++(0,-2) node[ground]{};
\draw (P.wiper) to[C] ++(2,0);
\end{circuitikz}
\end{document}
VM261:1 This is e-TeX, Version 3.14159265-2.6 (preloaded format=latex 2022.5.1)
VM261:1 **entering extended mode
VM261:1 (input.tex
VM261:1 LaTeX2e <2020-02-02> patch level 2
VM261:1 ("circuitikz.sty" (tikzlibrarycalc.code.tex) (pgflibraryarrows.meta.code.tex)
VM261:1 (tikzlibrarybending.code.tex (pgfmodulebending.code.tex
VM261:1 (pgfmodulenonlineartransformations.code.tex) (pgflibrarycurvilinear.code.tex)))
VM261:1 (pgfcirc.defines.tex) (pgfcircutils.tex) (pgfcircshapes.tex)
VM261:1 (pgfcircmonopoles.tex) (pgfcircbipoles.tex) (pgfcirctripoles.tex)
VM261:1 (pgfcircquadpoles.tex) (pgfcircmultipoles.tex) (pgfcirclabel.tex)
VM261:1 (pgfcircvoltage.tex) (pgfcirccurrent.tex) (pgfcircflow.tex) (pgfcircpath.tex)
VM261:1 Package circuitikz Warning: You did not specify one of the voltage directions:
VM261:1 (circuitikz) oldvoltagedirection, nooldvoltagedirection,
VM261:1 (circuitikz) RPvoltages or EFvoltages
VM261:1 (circuitikz) Default directions may have changed,
VM261:1 (circuitikz) please check the manual.
VM261:1 ) ("input.aux") ABD: EveryShipout initializing macros
VM261:1 ! Package PGF Math Error: Unknown function `wiper' (in 'wiper').
VM261:1 See the PGF Math package documentation for explanation.
VM261:1 Type H <return> for immediate help.
VM261:1 ...
VM261:1
VM261:1 l.5 \draw (P.wiper)
VM261:1 to[C] ++(2,0);
VM261:1 ? Type <return> to proceed, S to scroll future error messages,
VM261:1 R to run without stopping, Q to run quietly,
VM261:1 I to insert something, E to edit your file,
VM261:1 1 or ... or 9 to ignore the next 1 to 9 tokens of input,
VM261:1 H for help, X to quit.
VM261:1 ?
VM261:1 ! Emergency stop.
VM261:1 ...
VM261:1
VM261:1 l.5 \draw (P.wiper)
VM261:1 to[C] ++(2,0);
VM261:1 Error: Could not find file input.dvi
at Lq (a7ff8e9f-0720-4890-8feb-c5e5560231ce:1:6858290)
at texify (a7ff8e9f-0720-4890-8feb-c5e5560231ce:1:6874263)
img-not-found.png:1 GET app://invalid.site/img-not-found.png net::ERR_FILE_NOT_FOUND
As you see it fails at the reference to (P.wiper), but I do not understand why. I am sorry, that I am not more helpful, but I have no Idea where the issue could be.