Circuitikz con etiquetas en el lado derecho

Circuitikz con etiquetas en el lado derecho

Estoy intentando poner todos los valores de los componentes en el lado derecho del circuito. He visto soluciones con el uso de nodos de etiquetas en circuitoikz, pero prefiero separar los dos.

Sólo se me ocurrió lo siguiente. Necesito colocar las etiquetas en la parte superior o en el centro verticalmente al lado del circuito.

\documentclass{article}
\usepackage{amsmath}
\usepackage{circuitikz}

\begin{document}

\begin{table}[h]
\centering
\begin{tabular}{|c|c|}
\begin{circuitikz}[european]
\draw (0,0)
    node[tlground]{} % The ground
    to[V, v^<=$U_0$] (0,2) % The voltage source
    to[C, l=$C_1$] (2,2) % The capacitor
    to[R=$R_B$] (2,5); % The resistor
\draw
    (4,2) node[npn, tr circle] (Q1) {} % The transistor
    (Q1.base) to[short] (2,2) % The short
    (Q1.collector) to[R=$R_C$] (4,5) % The resistor
    (4,3) to[short] (5,3) % The short
    node[label={[font=\footnotesize]right:$V_{out}$}] {}
    (Q1.emitter) to[short] (4,0) % The short
    node[tlground]{};
\draw (0,5)
    node[label={[font=\footnotesize]left:$+V_{cc}$}] {}
    to[short] (5,5);
\end{circuitikz}

&

% Add labels for component values on the right side
\begin{tabular}[t]{l}
    $R_1 = 1\text{k}\Omega$\\
    $C_1 = 10\mu\text{F}$\\
    $L_1 = 100\text{mH}$
\end{tabular}
\end{tabular}
\end{table}

\end{document}

ingrese la descripción de la imagen aquí

Respuesta1

Ah, lo tengo. Lo que normalmente hago es elegir un elemento en el dibujo del circuito, nombrarlo (nombrando el nodo o el elemento) y luego alinear la tabla con la línea base de ese elemento. Por ejemplo, a continuación, la tabla está alineada con el nodo +V_CC:

\documentclass{article}
\usepackage{amsmath}
\usepackage{circuitikz}

\begin{document}

\begin{table}[h]
\centering
\begin{tabular}{|c|c|}
\begin{circuitikz}[european, baseline=(REF.base)]
\draw (0,0)
    node[tlground]{} % The ground
    to[V, v^<=$U_0$] (0,2) % The voltage source
    to[C, l=$C_1$] (2,2) % The capacitor
    to[R=$R_B$] (2,5); % The resistor
\draw
    (4,2) node[npn, tr circle] (Q1) {} % The transistor
    (Q1.base) to[short] (2,2) % The short
    (Q1.collector) to[R=$R_C$] (4,5) % The resistor
    (4,3) to[short] (5,3) % The short
    node[label={[font=\footnotesize]right:$V_{out}$}] {}
    (Q1.emitter) to[short] (4,0) % The short
    node[tlground]{};
\draw (0,5)
    node[label={[font=\footnotesize]left:$+V_{cc}$}](REF) {}
    to[short] (5,5);
\end{circuitikz}

&

% Add labels for component values on the right side
\begin{tabular}[t]{l}
    $R_1 = 1\text{k}\Omega$\\
    $C_1 = 10\mu\text{F}$\\
    $L_1 = 100\text{mH}$
\end{tabular}
\end{tabular}
\end{table}

\end{document}

ingrese la descripción de la imagen aquí

O, por ejemplo, con la etiqueta R_C:

\documentclass{article}
\usepackage{amsmath}
\usepackage{circuitikz}

\begin{document}

\begin{table}[h]
\centering
\begin{tabular}{|c|c|}
\begin{circuitikz}[european, baseline=(REFlabel.base)]
\draw (0,0)
    node[tlground]{} % The ground
    to[V, v^<=$U_0$] (0,2) % The voltage source
    to[C, l=$C_1$] (2,2) % The capacitor
    to[R=$R_B$] (2,5); % The resistor
\draw
    (4,2) node[npn, tr circle] (Q1) {} % The transistor
    (Q1.base) to[short] (2,2) % The short
    (Q1.collector) to[R=$R_C$, name=REF] (4,5) % The resistor
    (4,3) to[short] (5,3) % The short
    node[label={[font=\footnotesize]right:$V_{out}$}] {}
    (Q1.emitter) to[short] (4,0) % The short
    node[tlground]{};
\draw (0,5)
    node[label={[font=\footnotesize]left:$+V_{cc}$}] {}
    to[short] (5,5);
\end{circuitikz}

&

% Add labels for component values on the right side
\begin{tabular}[t]{l}
    $R_1 = 1\text{k}\Omega$\\
    $C_1 = 10\mu\text{F}$\\
    $L_1 = 100\text{mH}$
\end{tabular}
\end{tabular}
\end{table}

\end{document}

ingrese la descripción de la imagen aquí

Por cierto: recomiendo encarecidamente utilizar el siunitxpaquete para unidades de medida. Ese μ en microfaradio deberíanoestar en modo matematicas...

información relacionada