Debian Codegraph @

texmf-dist/doc/latex/circ/cidoc.tex

raw
1 %%
2 %% This is file `cidoc.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% circ.dtx (with options: `docsty')
8 %% CIRC is a LaTeX package to typeset circuit and optics diagrams.
9 %% Copyright (C) 1997,1998,2003 Sebastian Tannert and Andreas Tille
10 %%
11 %% This program is free software; you can redistribute it and/or modify
12 %% it under the terms of the GNU General Public License as published by
13 %% the Free Software Foundation; either version 2 of the License, or
14 %% (at your option) any later version.
15 %%
16 %% This program is distributed in the hope that it will be useful,
17 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
18 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 %% GNU General Public License for more details.
20 %%
21 %% You should have received a copy of the GNU General Public License
22 %% along with this program; if not, write to the Free Software
23 %% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 %%
25 %% For error reports concerning UNCHANGED versions of this file no
26 %% more than one year old, see CIRC.DVI after installation.
27 %% If installation fails search thru this file for 'bug'.
28 \chardef\backslash="5C
29 \catcode`\|=12
30 \parindent 2mm
31 \lineskip 0pt
32 \advance\textwidth by 39.4pt
33
34 \def\lpin#1{\shift -1.1 0 \put{\tlap{\llap{\tt#1$\rfloor$}\vss}}}
35 \def\bpin#1{\shift 0 -1.5 \put{\blap{\llap{\tt#1\hss}}}}
36 \def\tpin#1{\shift 0 1.5 \put{\tlap{\llap{\tt#1\hss}}}}
37 \def\rpin#1{\shift 1.1 0 \put{\tlap{\rlap{$\lfloor$\tt#1}\vss}}}
38
39 \def\cdef#1 #2 #3#4 #5 {\noindent
40 \hbox{\vbox to 3cm{\vskip 2mm
41 {\hsize 4.3cm \footnotesize #5\par}
42 \vfill
43 \hbox to 4.5cm{\hfill
44 \begin{circuit}0 \csname #1\endcsname{n} {text} r \end{circuit}
45 \hfill}\vfill
46 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
47 \fbox{$\mathcal{SXY}$}\quad}
48 \vskip 2mm
49 \hrule width 4.5cm height .1pt}%
50 \vrule width.1pt height 3cm depth 0pt}\linebreak[1]}
51
52 \def\cwdef#1 #2 #3 {\noindent
53 \hbox{\vbox to 3cm{\vskip 2mm
54 {\hsize 4.3cm \footnotesize #3\par}
55 \vfill
56 \hbox to 4.5cm{\hfill
57 \begin{circuit}0 \csname #1\endcsname 6 r \end{circuit}
58 \hfill}\vfill
59 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
60 \fbox{$\mathcal{LI}$}\quad}
61 \vskip 2mm
62 \hrule width 4.5cm height .1pt}%
63 \vrule width.1pt height 3cm depth 0pt}\linebreak[1]}
64
65 \def\cwwdef#1 #2 {\noindent
66 \hbox{\vbox to 3cm{\vskip 2mm
67 {\hsize 4.3cm \footnotesize #2\par}
68 \vfill
69 \hbox to 4.5cm{\hfill
70 \begin{circuit}0 \csname #1\endcsname {text} 6 r \end{circuit}
71 \hfill}\vfill
72 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
73 \fbox{$\mathcal{LB}$}\quad}
74 \vskip 2mm
75 \hrule width 4.5cm height .1pt}%
76 \vrule width.1pt height 3cm depth 0pt}\linebreak[1]}
77
78 \def\NgateIIO#1 #2#3 #4 #5 {\noindent
79 \hbox{\vbox to 3cm{\vskip 2mm
80 {\hsize 4.3cm \footnotesize #5\par}
81 \vfill
82 \hbox to 4.5cm{\hfill
83 \begin{circuit}0 \csname #1\endcsname{n} {text} : a b c
84 \atpin{#1nI1} \lpin{I1} \atpin{#1nI2} \lpin{I2} \atpin{#1nO} \rpin{O}
85 \end{circuit}
86 \hfill}\vfill
87 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
88 \fbox{$\mathcal{GII}$}\quad}
89 \vskip 2mm
90 \hrule width 4.5cm height .1pt}%
91 \vrule width.1pt height 3cm depth 0pt}\linebreak[1]}
92
93 \def\gateIIO#1 #2#3 #4#5 #6 #7 #8 {\noindent
94 \hbox{\vbox to 3.8cm{\vskip 2mm
95 {\hsize 4.8cm \footnotesize #8\par}
96 \vfill
97 \hbox to 5cm{\hfill
98 \begin{circuit}0 \csname #1\endcsname{n} {text} : a b c
99 \atpin{#1n#5} \lpin{#5} \atpin{#1n#7} \lpin{#7} \atpin{#1n#6} \rpin{#6}
100 \end{circuit}
101 \hfill}\vfill
102 \hbox to 5cm{~~{\tt\backslash#1}\quad\hfill
103 \fbox{$\mathcal{GII}$}\quad}
104 \vskip 2mm
105 \hrule width 5cm height .1pt}%
106 \vrule width.1pt height 3.8cm depth 0pt}\linebreak[1]}
107
108 \def\NgateIO#1 #2#3 #4 #5 {\noindent
109 \hbox{\vbox to 3cm{\vskip 2mm
110 {\hsize 4.3cm \footnotesize #5\par}
111 \vfill
112 \hbox to 4.5cm{\hfill
113 \begin{circuit}0 \csname #1\endcsname{n} {text} : a b
114 \atpin{#1nI} \lpin{I} \atpin{#1nI} \atpin{#1nO} \rpin{O}
115 \end{circuit}
116 \hfill}\vfill
117 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
118 \fbox{$\mathcal{GI}$}\quad}
119 \vskip 2mm
120 \hrule width 4.5cm height .1pt}%
121 \vrule width.1pt height 3cm depth 0pt}\linebreak[1]}
122
123 \def\cdefiv#1 #2 #3#4 #5 #6 #7 {\noindent
124 \hbox{\vbox to 3cm{\vskip 2mm
125 {\hsize 4.3cm \footnotesize #7\par}
126 \vfill
127 \hbox to 4.5cm{\hfill
128 \begin{circuit}0 \csname #1\endcsname{n} {text} #5 r
129 \atpin {#1n#5} \lpin{#5}
130 \atpin {#1n#6} \rpin{#6}
131 \end{circuit}
132 \hfill}\vfill
133 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
134 \fbox{$\mathcal{SX}$}\quad}
135 \vskip 2mm
136 \hrule width 4.5cm height .1pt}%
137 \vrule width.1pt height 3cm depth 0pt}\linebreak[1]}
138
139 \def\cdefivNL#1 #2#3 #4 #5 #6 {\noindent
140 \hbox{\vbox to 3cm{\vskip 2mm
141 {\hsize 4.3cm \footnotesize #6\par}
142 \vfill
143 \hbox to 4.5cm{\hfill
144 \begin{circuit}0 \csname #1\endcsname{n} {text} #5 r
145 \atpin {#1n#4} \lpin{#4}
146 \atpin {#1n#5} \rpin{#5}
147 \end{circuit}
148 \hfill}\vfill
149 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
150 \fbox{$\mathcal{SX}$}\quad}
151 \vskip 2mm
152 \hrule width 4.5cm height .1pt}%
153 \vrule width.1pt height 3cm depth 0pt}\linebreak[1]}
154
155 \def\cdefiviv#1 #2 #3#4 #5 #6 #7 {\noindent
156 \hbox{\vbox to 3cm{\vskip 2mm
157 {\hsize4.3cm \footnotesize #7\par}%
158 \vfill
159 \hbox to 4.5cm{\hfill
160 \begin{circuit}0 \csname #1\endcsname{n} {text} #5 r
161 \atpin {#1n#5} \lpin{#5}
162 \atpin {#1n#6} \rpin{#6}
163 \end{circuit}
164 \hfill}\vfill
165 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
166 \fbox{$\mathcal{SO}$}\quad}
167 \vskip 2mm
168 \hrule width 4.5cm height .1pt}%
169 \vrule width.1pt height 3cm depth 0pt}\linebreak[1]}
170
171 \def\cdefivivNL#1 #2#3 #4 #5 #6 {\noindent
172 \hbox{\vbox to 3cm{\vskip 2mm
173 {\hsize4.3cm \footnotesize #6\par}%
174 \vfill
175 \hbox to 4.5cm{\hfill
176 \begin{circuit}0 \csname #1\endcsname{n} {text} #5 r
177 \atpin {#1n#4} \lpin{#4}
178 \atpin {#1n#5} \rpin{#5}
179 \end{circuit}
180 \hfill}\vfill
181 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
182 \fbox{$\mathcal{SO}$}\quad}
183 \vskip 2mm
184 \hrule width 4.5cm height .1pt}%
185 \vrule width.1pt height 3cm depth 0pt}\linebreak[1]}
186
187 \def\cdefo#1 #2 {\noindent
188 \hbox{\vbox to 3cm{\vskip 2mm
189 {\hsize 4.3cm \footnotesize #2\par}
190 \vfill
191 \hbox to 4.5cm{\hfill
192 \begin{circuit}0 \csname #1\endcsname{n} \end{circuit}
193 \hfill}\vfill
194 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
195 \fbox{$\mathcal{OP}$}\quad}
196 \vskip 2mm
197 \hrule width 4.5cm height .1pt}%
198 \vrule width.1pt height 3cm depth 0pt}\linebreak[1]}
199
200 \def\optionline#1 {\vskip3mm
201 {\large Symbols provided by the option \fbox{\tt#1.def}}\\[3mm]}
202
203 \def\bbdef#1 #2#3 #4 {\noindent
204 \hbox{\vbox to 4.5cm{\vskip 2mm
205 {\hsize 4.3cm \footnotesize #4\par}
206 \vfill
207 \hbox to 4.5cm{\hfill
208 \begin{circuit}0 \csname #1\endcsname n {text} : a b c d
209 \atpin{#1nP1} \lpin{P1}
210 \atpin{#1nP2} \bpin{P2}
211 \atpin{#1nP4} \tpin{P4}
212 \atpin{#1nP3} \rpin{P3}
213 \end{circuit}
214 \hfill}\vfill
215 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
216 \fbox{$\mathcal{BXT}$}\quad}
217 \vskip 2mm
218 \hrule width 4.5cm height .1pt}%
219 \vrule width.1pt height 4.5cm depth 0pt}\linebreak[1]}
220
221 \def\bbdefNeT#1 #2#3 #4 #5 {\noindent
222 \hbox{\vbox to 4.5cm{\vskip 2mm
223 {\hsize 4.3cm \footnotesize #5\par}
224 \vfill
225 \hbox to 4.5cm{\hfill
226 \begin{circuit}0 \csname #1\endcsname n : a b c d
227 \atpin{#1nP1} \lpin{P1}
228 \atpin{#1nP3} \rpin{P3}
229 \atpin{#1nP2} \bpin{P2}
230 \atpin{#1nP4} \tpin{P4}
231 \end{circuit}
232 \hfill}\vfill
233 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
234 \fbox{$\mathcal{BX}$}\quad}
235 \vskip 2mm
236 \hrule width 4.5cm height .1pt}%
237 \vrule width.1pt height 4.5cm depth 0pt}\linebreak[1]}
238
239 \def\bbdefNeTii#1 #2#3 #4 #5 {\noindent
240 \hbox{\vbox to 4.5cm{\vskip 2mm
241 {\hsize 4.3cm \footnotesize #5\par}
242 \vfill
243 \hbox to 4.5cm{\hfill
244 \begin{circuit}0 \csname #1\endcsname n : a b c d h
245 \atpin{#1nP1} \lpin{P1}
246 \atpin{#1nP3} \rpin{P3}
247 \atpin{#1nP2} \bpin{P2}
248 \atpin{#1nP4} \tpin{P4}
249 \end{circuit}
250 \hfill}\vfill
251 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
252 \fbox{$\mathcal{BX}$}\quad}
253 \vskip 2mm
254 \hrule width 4.5cm height .1pt}%
255 \vrule width.1pt height 4.5cm depth 0pt}\linebreak[1]}
256
257 \def\sbdef#1 #2#3 #4 #5 {\noindent
258 \hbox{\vbox to 4.5cm{\vskip 2mm
259 {\hsize 4.3cm \footnotesize #5\par}
260 \vfill
261 \hbox to 4.5cm{\hfill
262 \begin{circuit}0 \csname #1\endcsname n : a b c d h
263 \atpin{#1nP1} \lpin{P1}
264 \atpin{#1nP3} \rpin{P3}
265 \atpin{#1nP2} \bpin{P2}
266 \atpin{#1nP4} \tpin{P4}
267 \end{circuit}
268 \hfill}\vfill
269 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
270 \fbox{$\mathcal{BX}$}\quad}
271 \vskip 2mm
272 \hrule width 4.5cm height .1pt}%
273 \vrule width.1pt height 4.5cm depth 0pt}\linebreak[1]}
274
275 \def\textdef#1 #2 {\noindent
276 \hbox{\vbox to 3cm{\vskip 2mm
277 {\hsize 4.3cm \footnotesize #2\par}
278 \vfill
279 \hbox to 4.5cm{\hfill
280 \begin{circuit}0
281 \at 0 0 \P1 \at 6 0 \P2
282 \csname #1\endcsname {text} from P1 to P2 \end{circuit}
283 \hfill}\vfill
284 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
285 \fbox{$\mathcal{TXT}$}\quad}
286 \vskip 2mm
287 \hrule width 4.5cm height .1pt}%
288 \vrule width.1pt height 3cm depth 0pt}\linebreak[1]}
289
290 \def\cdefviii#1 #2 #3#4 #5 #6 #7 #8 {\noindent
291 \hbox{\vbox to 3cm{\vskip 2mm
292 {\hsize4.3cm \footnotesize #8\par}%
293 \vfill
294 \hbox to 4.5cm{\hfill
295 \begin{circuit}0 \csname #1\endcsname{n} {text} : l
296 \atpin {#1n#5} \rpin{#5}
297 \atpin {#1n#6} \lpin{#6}
298 \atpin {#1n#7} \rpin{#7}
299 \end{circuit}
300 \hfill}\vfill
301 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
302 \fbox{$\mathcal{S\mathrm{3}P}$}\quad}
303 \vskip 2mm
304 \hrule width 4.5cm height .1pt}%
305 \vrule width.1pt height 3cm depth 0pt}\linebreak[1]}
306
307 \def\Ccirc#1 #2 #3#4{\noindent
308 \def\Clpin##1{\atpin{#1n##1} \lpin{##1} }
309 \def\Crpin##1{\atpin{#1n##1} \rpin{##1} }
310 \hbox{\vbox to 4.5cm{\vskip 2mm
311 {\hsize 4.3cm \footnotesize #3\par}
312 \vfill
313 \hbox to 4.5cm{\hfill
314 \begin{circuit}0 \csname #1\endcsname n {text} #2 {} #4
315 \end{circuit}
316 \hfill}\vfill
317 \hbox to 4.5cm{~~{\tt\backslash#1}\quad\hfill
318 \fbox{$\mathcal{IC}$}\quad}
319 \vskip 2mm
320 \hrule width 4.5cm height .1pt}%
321 \vrule width.1pt height 4.5cm depth 0pt}\linebreak[1]}
322 \endinput
323 %%
324 %% End of file `cidoc.tex'.