微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

CircuiTikZ:如何指定组件公差

如何解决CircuiTikZ:如何指定组件公差

我有一个使用 50 欧姆电阻的示意图。我想指定该电阻器的容差必须低于 1%。我需要如何指定它?下面是我的 LaTeX 代码。 现在容差与我的电阻在同一条线上。我希望它低于电阻值。

\documentclass{report}
\usepackage{circuitikz}
\usepackage{siunitx}

\begin{document}
    \begin{circuitikz}
        \draw(0,0) node[vcc] (Vcc){5V} to[R,l_=$R_{sense}$,a^=$\SI{50}{\ohm} < \SI{1}{\percent}$] ++(0,-2) node[ground] (gnd) {};
    \end{circuitikz}
\end{document}

谢谢

解决方法

快速破解:

\documentclass{report}
\usepackage{circuitikz}
\usepackage{siunitx}

\begin{document}
    \begin{circuitikz}
        \draw(0,0) node[vcc] (Vcc){5V} to[R,l_=$R_{\text{sense}}$,a^=\parbox{1cm}{\centering$\SI{50}{\ohm}$\linebreak$< \SI{1}{\percent}$}] ++(0,-2) node[ground] (gnd) {};
    \end{circuitikz}
\end{document}

enter image description here

不相关:请不要对 sense 等多字母单词使用数学模式,这会弄乱字距调整。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。