\documentclass{文章} \usepackage{circuitikz} \usetikzlibrary{定位}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{circuitikz}
\setlength\PreviewBorder{1em}
\begin{document}
\begin{center}
\begin{circuitikz}[node distance = 8mm and 16mm]
\draw (0,0) node (nmos1) [nmos, xscale=-1, label=left:M1] {}
node (nmos2) [nmos,right=of nmos1,label=right:M2] {};
\end{circuitikz}
\end{center}
\end{document}
答案1
出于格式化目的,我将其作为答案输入。以下是 nmos 的(可调整)默认设置。
\ctikzset{tripoles/nmos/width=.7}
\ctikzset{tripoles/nmos/gate height=.35}
\ctikzset{tripoles/nmos/base height=.5}
\ctikzset{tripoles/nmos/conn height=0}
\ctikzset{tripoles/nmos/height=1.1}
\ctikzset{tripoles/nmos/base width=.5}
\ctikzset{tripoles/nmos/gate width=.62}
\ctikzset{tripoles/nmos/bodydiode scale=.3}
\ctikzset{tripoles/nmos/bodydiode distance=.3}
\ctikzset{tripoles/nmos/bodydiode conn=.6}
\ctikzset{tripoles/nmos/curr direction=1}