%% 
%%  The LaTeX Graphics Companion, 2ed (first printing May 2007)
%% 
%%  Example 8-6-9 on page 582.
%% 
%%  Copyright (C) 2007 Michel Goossens, Frank Mittelbach, Denis Roegel, Sebastian Rahtz, Herbert Vo\ss 
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 

\documentclass{ttctexa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{348.0pt}
\StartShownPreambleCommands
\usepackage[basic,box,gate,ic,optics]{circ}
\StopShownPreambleCommands
\begin{document}
\begin{circuit}{0}
\.1 \- 1 r \nl\cc\R1 {R} r
\frompin .1 \- 3 l \- 2 d \nl\R9 {2R} d
\- 10 d \.7
\frompin .7 \- 3 l \cc\U0 {} - u
\frompin .1 \- 2 d \nl\cc\R2 {2\,R} d \nl\SW1 {} s U
\frompin SW1c \vtopin U0+ \.8
\frompin SW1o \vtopin U0- \.9
\frompin R1r \- 1 r
\.3 \- 1 r \nl\cc\R5 {R} r
\frompin .3 \- 2 d \nl\cc\R6 {2\,R} d \nl\SW3 {} s u
\frompin SW3c \vtopin U0- \.12
\frompin SW3o \vtopin U0+ \.13
\frompin R5r \- 1 r
\.4 \- 2 r \nl\cc\R7 {R$_1$= 2R} r
\frompin .4 \- 2 d \nl\cc\R8 {2\,R} d \nl\SW4 {} s U
\frompin SW4c \vtopin U0+ \htopin U0+
\frompin SW4o \vtopin U0- \.15
\frompin R7r \- 1 r \nl\whatI1 {I} s r
\- 1 r \.5 \- 1 r \nl\OV1 {} - {} {} {}
\frompin .5 \- 3 u \centerto OV1 \nl\cc\R10 {R$_2$} r
\frompin R10l \htopin .5
\atpin OV1O \.6 \vtopin R10r \htopin R10r
\frompin .6 \- 1 r \connection1 {$U_a$} c r
\frompin OV1+ \- 1 l \- 3 d \nl\cc\R11 {R$_3$} d
\frompin R11b \vtopin .7 \.8 \GND1 \frompin .7 \htopin .8
\end{circuit}
\end{document}
