| 1 |
%% |
| 2 |
%% This is file `cidiod.mf', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% circ.dtx (with options: `csydiod') |
| 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 |
input csym; |
| 29 |
designsize:=1lLE#; |
| 30 |
|
| 31 |
def diode = % "uberarbeiten |
| 32 |
numeric pl; |
| 33 |
pl:=.5(did_lt-did_wd); |
| 34 |
z0=(0,0); |
| 35 |
z1=z0+(pl,0); |
| 36 |
z2=z1+(did_wd,0); |
| 37 |
z3=z2+(pl,0); |
| 38 |
z4-z5=z6-z7=(0,did_ht); |
| 39 |
z1=.5[z4,z5]; |
| 40 |
z2=.5[z6,z7]; |
| 41 |
z8=z4+(did_zlt,0); |
| 42 |
z9=z0+(0,thy_ht); |
| 43 |
|
| 44 |
z10=.35[z5,z7]; |
| 45 |
z11=z10-(.5Dcap_spc,0); |
| 46 |
z12=z10+(.5Dcap_spc,0); |
| 47 |
y13=y15; y14=y16; |
| 48 |
x13=x14; x15=x16; |
| 49 |
y13-y14=Dcap_ht; |
| 50 |
z11=.5[z13,z14]; |
| 51 |
z12=.5[z15,z16]; |
| 52 |
z17=z11-(Dcap_wd,0); |
| 53 |
z18=z12+(Dcap_wd,0); |
| 54 |
|
| 55 |
pickup pensquare scaled normalline; |
| 56 |
draw z0--z3; |
| 57 |
draw z4--z5; |
| 58 |
draw z1--z6--z7--cycle; |
| 59 |
enddef; |
| 60 |
|
| 61 |
def Dcap = |
| 62 |
pickup pensquare scaled normalline; |
| 63 |
draw z17--z11; |
| 64 |
draw z13--z14; |
| 65 |
draw z15--z16; |
| 66 |
draw z12--z18; |
| 67 |
enddef; |
| 68 |
|
| 69 |
def led_arrows = % "uberarbeiten |
| 70 |
numeric pl; |
| 71 |
numeric x[],y[]; |
| 72 |
transform arr_a,arr_b; |
| 73 |
pickup pencircle scaled thickline; |
| 74 |
pl:=.5(did_lt-did_wd); |
| 75 |
z0=(0,0); |
| 76 |
z4=z0+(pl,0); |
| 77 |
z1=z0+(led_lt,0); |
| 78 |
(z1-z2)=(led_wd,0) rotated led_phi; |
| 79 |
(z1-z3)=(led_wd,0) rotated -led_phi; |
| 80 |
arr_a:=identity rotated led_psi shifted |
| 81 |
(z4+(led_spx+.5led_spc*cosd(led_psi),led_spy-.5led_spc*sind(led_psi))); |
| 82 |
arr_b:=identity rotated led_psi shifted |
| 83 |
(z4+(led_spx-.5led_spc*cosd(led_psi),led_spy+.5led_spc*sind(led_psi))); |
| 84 |
draw (z0--z1) transformed arr_a; |
| 85 |
draw (z0--z1) transformed arr_b; |
| 86 |
fill (z2--z1--z3--cycle) transformed arr_a; |
| 87 |
fill (z2--z1--z3--cycle) transformed arr_b; |
| 88 |
enddef; |
| 89 |
|
| 90 |
"Diode"; |
| 91 |
fourchars(0)(diode)(z3)(.5did_ht#,did_lt#,.5did_ht#); |
| 92 |
|
| 93 |
"Z-Diode"; |
| 94 |
fourchars(4)(diode; draw z4--z8)(z3)(.5did_ht#,did_lt#,.5did_ht#); |
| 95 |
|
| 96 |
"LED"; |
| 97 |
fourfourchars(8)(diode; lightarrows(.5[z1,z6]+(0,.5lLE),120))(z3) |
| 98 |
(.5did_ht#+.5led_spy#+led_lt#*sind(led_psi),did_lt#,.5did_ht#); |
| 99 |
|
| 100 |
"Kapazit"&ditto&"atsdiode"; |
| 101 |
fourchars(16)(diode; Dcap)(z3)(.5did_ht#,did_lt#,.65did_ht#); |
| 102 |
|
| 103 |
"Thyristor"; |
| 104 |
|
| 105 |
end; |
| 106 |
%% |
| 107 |
%% |
| 108 |
%% End of file `cidiod.mf'. |