1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17\usemodule[m][tikz]
18
19\startmodule[circuitikz]
20
21\usetikzlibrary[calc]
22\usetikzlibrary[arrows.meta]
23\usetikzlibrary[bending]
24\usetikzlibrary[fpu]
25
26\tikzinputfile{pgfcirc.defines.tex}
27\tikzinputfile{pgfcircutils.tex}
28\tikzinputfile{pgfcircpath.tex}
29
30\tikzinputfile{pgfcircshapes.tex}
31\tikzinputfile{pgfcircmonopoles.tex}
32\tikzinputfile{pgfcircbipoles.tex}
33\tikzinputfile{pgfcirctripoles.tex}
34\tikzinputfile{pgfcircquadpoles.tex}
35\tikzinputfile{pgfcircmultipoles.tex}
36
37\tikzinputfile{pgfcirclabel.tex}
38\tikzinputfile{pgfcircvoltage.tex}
39\tikzinputfile{pgfcirccurrent.tex}
40\tikzinputfile{pgfcircflow.tex}
41
42\ifdefined\pgfcircversion \else \def\pgfcircversion {0.0.0} \fi
43\ifdefined\pgfcircversiondate \else \def\pgfcircversiondate {10100101} \fi
44
45
46
47\setupmodule
48 [current=european,
49 voltage=european,
50 resistor=american,
51 inductor=cute,
52 logic=american,
53
54 arrowmos=false]
55
56
57
58\processaction
59 [\currentmoduleparameter{voltage}]
60 [european=>\ctikzset{voltage=european},
61 american=>\ctikzset{voltage=american}]
62
63\processaction
64 [\currentmoduleparameter{current}]
65 [european=>\ctikzset{current=european},
66 american=>\ctikzset{current=american}]
67
68\processaction
69 [\currentmoduleparameter{label}]
70 [straight=>\ctikzset{labelalign=straight},
71 align=>\ctikzset{labelalign=rotate},
72 smart=>\ctikzset{labelalign=smart}]
73
74\processaction
75 [\currentmoduleparameter{resistor}]
76 [european=>\ctikzset{resistor=european},
77 american=>\ctikzset{resistor=american}]
78
79\processaction
80 [\currentmoduleparameter{inductor}]
81 [european=>\ctikzset{inductor=european},
82 american=>\ctikzset{inductor=american},
83 cute=>\ctikzset{inductor=cute}]
84
85\processaction
86 [\currentmoduleparameter{diode}]
87 [ full=>\ctikzset{diode=full},
88 empty=>\ctikzset{diode=empty}]
89
90\processaction
91 [\currentmoduleparameter{logic}]
92 [european=>\ctikzset{logic ports=european},
93 american=>\ctikzset{logic ports=american}]
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120\unprotect
121
122\processaction
123 [\currentmoduleparameter{arrowmos}]
124 [true=>\pgf@circuit@mos@arrowstrue,
125 false=>\pgf@circuit@mos@arrowsfalse]
126
127\protect
128
129\ctikzset{tripolesop ampfont.initial=\switchtobodyfont[small]}
130
131\aliased\let\stopcircuitikz\relax
132
133
134
135
136\permanent\protected\def\startcircuitikz{\starttikzpicture}
137\permanent\protected\def\stopcircuitikz {\stoptikzpicture}
138
139\stopmodule
140
141\endinput
142 |