![如何标记和说明 circuitikz 环境](https://linux22.com/image/429026/%E5%A6%82%E4%BD%95%E6%A0%87%E8%AE%B0%E5%92%8C%E8%AF%B4%E6%98%8E%20circuitikz%20%E7%8E%AF%E5%A2%83.png)
我一直在寻找一种方法来标记和说明我的circuitikz
环境,但似乎找不到。有什么帮助吗?
这是我的 MWE:
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx, circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to [short, *-, l=$\mathrm{n^1_e}$(i)] (1,0)
to [short] (1,-0.4)
to [short] (0.3,-0.4)
to [R, l_=$\mathrm{G_{ii}/2}$] (0.3,-2)
to [short] (1.7,-2)
to [C, l_=$\mathrm{C_{ii}/2}$] (1.7,-0.4)
to [short] (1,-0.4);
\draw (1,-2) node[ground]{} (1,-0.4);
\draw (1,0)
to [R, l=$\mathrm{R_{ii}}$(i)] (3,0)
to [short] (3.3,0)
to [L, l=$\mathrm{L_{ii}}$(i)] (4.3,0);
\end{circuitikz}
\end{document}
答案1
我最终自己找到了答案。我将我的放在circuitikz
一个figure
环境中:)
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx, circuitikz}
\begin{document}
\begin{figure}
\begin{circuitikz}
\draw (0,0) to [short, *-, l=$\mathrm{n^1_e}$(i)] (1,0)
to [short] (1,-0.4)
to [short] (0.3,-0.4)
to [R, l_=$\mathrm{G_{ii}/2}$] (0.3,-2)
to [short] (1.7,-2)
to [C, l_=$\mathrm{C_{ii}/2}$] (1.7,-0.4)
to [short] (1,-0.4);
\draw (1,-2) node[ground]{} (1,-0.4);
\draw (1,0)
to [R, l=$\mathrm{R_{ii}}$(i)] (3,0)
to [short] (3.3,0)
to [L, l=$\mathrm{L_{ii}}$(i)] (4.3,0);
\end{circuitikz}
\caption{I did it by myself!!!}
\label{I solved my own problem, lol}
\end{figure}
\end{document}