summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/eltex/eltex4.tex
blob: 9aae23293a31c7bde0c361998f03aa47328ef115 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
%%%%electron tubes(diode, triode, pentode, heptode)%%%
%cathode
\newcommand{\cathode}{
\put(0,0){\oval(6,6)[t]}
\put(-3,-4){\line(0,1){4}}
}
%focus
\newcommand{\focus}{
\put(0,0){\oval(3,3)[t]}
\put(-1.5,0){\line(0,-1){4}}
\put(1.5,0){\line(0,-1){4}}
}
%grids in valve
\newcommand{\gr}[1]{
\multiput(0,0)(0,2.5){#1}{\multiput(0,0)(3,0){3}{\line(1,0){2}}}
}
%anode
\newcommand{\anode}{
\put(0,0){\line(1,0){5}}
\put(2.5,0){\line(0,1){5}}
 }
%connection
\newcommand{\conn}[1]{
\ifnum#1=1            %right
  \put(0,0){\line(1,2){2}}
  \put(2,4){\line(0,1){6}}
  \put(2,10){\line(-1,0){1}}
\fi
\ifnum#1=2            %right
  \put(-1.5,0){\line(1,0){1.5}}
  \put(0,0){\line(1,2){2}}
  \put(2,4){\line(0,1){6}}
  \put(2,10){\line(-1,0){1}}
\fi
\ifnum#1=3            %right
  \put(0,0){\line(1,2){2}}
  \put(2,4){\line(0,1){11}}
  \put(2,15){\line(-1,0){1}}
  \multiput(-8,7.5)(0,5){2}{\line(1,0){1}}
  \put(-8,7.5){\line(0,1){5}}
\fi
\ifnum#1=4            %right
  \put(-1.5,0){\line(1,0){1.5}}
  \put(0,0){\line(1,2){2}}
  \put(2,4){\line(0,1){11}}
  \put(2,15){\line(-1,0){1}}
  \multiput(-8,7.5)(0,5){2}{\line(1,0){1}}
  \put(-8,7.5){\line(0,1){5}}
\fi
 }
%tube outline
\newcommand{\tout}[1]{
\ifnum#1=1
  \put(0,5){\oval(12,12)[b]}
  \put(0,5){\oval(12,15)[t]}
\fi
\ifnum#1=2
  \put(0,5){\oval(12,12)[b]}
  \put(0,8){\oval(12,15)[t]}
  \put(-6,5){\line(0,1){6}}
  \put(6,5){\line(0,1){6}}
\fi
\ifnum#1=3
  \put(0,5){\oval(12,12)[b]}
  \put(0,13){\oval(12,15)[t]}
  \put(-6,5){\line(0,1){11}}
  \put(6,5){\line(0,1){11}}
\fi
}
%%%heptode%%%%%
\newcommand{\heptode}[3]{
\ifx#1Y
  \put(0,2){\focus}
    \put(0,2){\focus}
    \ifx#2Y \else  \ifx#3Y   %connection focus-grid
  \put(3,2){\conn{4}}
    \fi \fi
\fi
\ifx#2Y
  \put(0,2){\cathode}
\fi
  \put(-4,7){\gr{5}}
  \put(-2.5,19.5){\anode}
\ifx#3Y                   %connection cathode-grid, g2-g4
  \put(3,2){\conn{3}}
\fi
  \put(0,1){\tout{3}}
}
%%%tetrode%%%%%%
\newcommand{\tetrode}[2]{
\ifx#1Y
  \put(0,2){\focus}
\fi
\ifx#2Y
  \put(0,2){\cathode}
\fi
  \put(-4,7){\gr{2}}
  \put(-2.5,14.5){\anode}
  \put(0,1){\tout{2}}
}
%%%pentode%%%%%%
\newcommand{\pentode}[3]{
\ifx#1Y
  \put(0,2){\focus}
    \ifx#2Y \else  \ifx#3Y   %connection focus-grid
  \put(3,2){\conn{2}}
    \fi \fi
\fi
\ifx#2Y
  \put(0,2){\cathode}
\fi
    \ifx#3Y                   %connection cathode-grid
  \put(3,2){\conn{1}}
    \fi
  \put(-4,7){\gr{3}}
  \put(-2.5,14.5){\anode}
  \put(0,1){\tout{2}}
}
%%%triode%%%%%%
\newcommand{\triode}[2]{
\ifx#1Y
  \put(0,2){\focus}
\fi
\ifx#2Y
  \put(0,2){\cathode}
\fi
  \put(-4,7){\gr{1}}
  \put(-2.5,10){\anode}
  \put(0,1){\tout{1}}
}
%%%diode%%%%%%
\newcommand{\diode}[2]{
\ifx#1Y
  \put(0,2){\focus}
\fi
\ifx#2Y
  \put(0,2){\cathode}
\fi
  \put(-2.5,10){\anode}
  \put(0,1){\tout{1}}
}
\endinput