summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/schule/doc/schule-schaltplan.tex
blob: 44072a7abb0515c06e0ae1ab3c7c516edd82b541 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
\documentclass[a4paper]{scrartcl}
\usepackage[utf8]{inputenc}
\input{etc.tex}
\begin{document}
 \section*{Schaltpläne mit dem Paket \texttt{circuitikz} erstellen}
  \begin{lstlisting}[gobble=4,basicstyle=\footnotesize,caption={}]
		\begin{circuitikz}
		 \draw
			(0,0)--(1,0) to[european resistor,l=$47$\,k$\Omega$] (3,0)--(5,0)
				to[C, l=$470$\,$\mu$F] (7,0) -- (8,0)
			(4.5,0) to[short, -*] (4.5,0) -- (4.5, -2)
			(4.5,-2) -- (5,-2) to[voltmeter, l=$U_C$] (7,-2) -- (7.5,-2)
			(7.5, -2) to[short, -*] (7.5,0)
			(8,1) node[spdt, rotate=90] (Ums) {}
			(Ums) node[right=0.4cm] {$WS$}
			(Ums.out 1) node[left] {1}
			(Ums.out 2) node[right] {2}
			(0,0) |- (2,4) to[closing switch, l=$S$] (3,4) to[battery1, l=$U$] 
				(5,4) -| (Ums.out 2)
			(Ums.in) -- (8,0)
			(Ums.out 1) |- (0,2) to[short, -*] (0,2)
		 ;
		\end{circuitikz}
	\end{lstlisting}
  \vspace{0.6cm}
  \hrule width \textwidth
  \vspace{1cm}
	\begin{circuitikz}[scale=0.8] \draw
		(0,0) -- (1,0) to[european resistor, l=$47$\,k$\Omega$] (3,0) -- (5,0)
		to[C, l=$470$\,$\mu$F] (7,0) -- (8,0)
		(4.5,0) to[short, -*] (4.5,0) -- (4.5, -2)
		(4.5,-2) -- (5,-2) to[voltmeter, l=$U_C$] (7,-2) -- (7.5,-2)
		(7.5, -2) to[short, -*] (7.5,0)
		(8,1) node[spdt, rotate=90] (Ums) {}
		(Ums) node[right=0.4cm] {$WS$}
		(Ums.out 1) node[left] {1}
		(Ums.out 2) node[right] {2}
		(0,0) |- (2,4) to[closing switch, l=$S$] (3,4) to[battery1, l=$U$] (5,4) -| (Ums.out 2)
		(Ums.in) -- (8,0)
		(Ums.out 1) |- (0,2) to[short, -*] (0,2)
	;
	\end{circuitikz}
\end{document}