\documentstyle[a4,bezier]{article} \input{eltex1} \input{eltex2} \begin{document} \section{The instructions for the using the macro eltex 2.0} This is the version 2.0 of the macro \verb?eltex? for the drawing the circuit diagrams in \LaTeX . Here is the several differences on the comparison with the previous version. In the version 2.0 are the circuit symbols accordingly IEC 617-1 to 11. Here is the helpful grid for the easier placing of the circuit symbols and also the commands for the circuit symbols are different then in the previous version. Old and new version are not compatible. The reason for it is that in the praxis the commands had many parameters and the labels with the fixed coordinates mostly had to be placed in the different place in the drawing. The new macro contains some frequently used symbols "two times" with the shorter and longer leads. This is time saving when you draw the circuit diagram. When you have only small area there is also the symbol with shorter lead. The circuit symbols were created on the actual use for the making the education materials in the communication technics, circuit theory and electronics area. The size of macro is 100kB. Not to occupy many RAM during the compilation, the circuit symbols are distributed into several files eltex1 ... eltex7 accordingly the area of interest. So you can use only several files and not all files. This principle of the drawing the circuit diagrams is not comfortable, it would be better to create some interactive graphical editor with the saving the (eltex) commands to the file. \section{The description of the commands} \subsection{Basic} This circuit symbols are contained in macro \verb?\eltex1? \\ \noindent \verb?\grid{x}{y}? The command creates the grid with the step 10mm. x - width of the picture in cm, y - height of the picture in cm, only natural number. \subsubsection{Sources} \verb?\hsourcev? Ideal voltage source horizontally oriented. \noindent \verb?\hhsourcev? Ideal voltage source with reduced leads horizontally oriented. \noindent \verb?\vsourcev? Ideal voltage source vertically oriented. \noindent \verb?\vvsourcev? Ideal voltage source with reduced leads vertically oriented. \noindent \verb?\dsourcev{x}? Ideal voltage source diagonally oriented, x - letter U - up oriented, D - down oriented. \noindent \verb?\hsourcec? Ideal current source horizontally oriented. \noindent \verb?\hhsourcec? Ideal current source with reduced leads horizontally oriented. \noindent \verb?\vsourcec? Ideal current source vertically oriented. \noindent \verb?\vvsourcec? Ideal current source with reduced leads vertically oriented. \noindent \verb?\dsourcec{x}? Ideal current source diagonally oriented, x - letter U - up oriented, D - down oriented. \subsubsection{Resistors} \verb?\hrez{n}? Resistor horizontally oriented. Number n determines the type of the resistor. 0 - basic symbol 1 to 6 variable value resistor, 7 - nonlinear dependent resistor, \noindent \verb?\hhrez{n}? Resistor with reduced leads horizontally oriented. \noindent \verb?\vrez{n}? Resistor vertically oriented. \noindent \verb?\vvrez{n}? Resistor with reduced leads vertically oriented. \noindent \verb?\drez{x}{n}? Resistor diagonally oriented x - letter U - up oriented, D - down oriented, n - number - type of the symbol, \noindent \verb?\ddrez{x}{n}? Resistor with reduced leads diagonally oriented. \subsubsection{Capacitors} \verb?\hcap{n}? Capacitor horizontally oriented. Number n type of the symbol. 0 - basic symbol 1, 4 variable capacitor \noindent \verb?\hhcap{n}? Capacitor with reduced leads horizontally oriented. \noindent \verb?\vcap{n}? Capacitor horizontally oriented. \noindent \verb?\vvcap{n}? Capacitor with reduced leads vertically oriented. \noindent \verb?\dcap{x}{n}? Capacitor diagonally oriented. x letter - U up oriented, D down oriented, n number - type of the symbol. \subsubsection{Inductors} \verb?\hturn{x}{n}? Two turns horizontally oriented, x - letter - U position up oriented, D down, n = 0 basic symbol, n = 1 variable inductor. \noindent \verb?\vturn{x}{n}? Two turns vertically oriented, x - letter - L position left oriented, R right, n = 0 basic symbol, n = 1 variable inductor. \noindent \verb?\hind{x}{n}? Inductor horizontally oriented, x - letter - U position up, D down, n = 0 basic symbol, n = 1 variable inductor. \noindent \verb?\hhind{x}{n}? Inductor with reduced leads horizontally oriented. \noindent \verb?\vind{x}{n}? Inductor vertically oriented, x - letter - L left position, R right, n = 0 basic symbol, n = 1 variable inductor. \noindent \verb?\vvind{x}{n}? Inductor with reduced leads vertically oriented. \noindent \verb?\dind{x}{y}{n}? Inductor diagonally oriented, Bezier macro must be selected, x - letter - U symbol up oriented, D down, y - letter - L turns left oriented, R right, n = 0 basic symbol, n = 1 variable inductor. \subsubsection{Cores} \verb?\hcore{n}{x}? Core horizontally oriented, x - letter - core type I iron F ferrite, n - natural number - length of the symbol in mm for (I) case, or member of the dashed lines for (F) case. \noindent \verb?\vcore{n}{x}? Core vertically oriented. \noindent \verb?\dcore{x}{n}{y}? Core diagonally oriented, x - letter - U symbol up, D symbol down, n - natural number - length of the symbol for (I) case, or number of the dashed lines for (F) case, y - core type I iron F ferrite. \noindent \verb?\simb{n}? Symbols of the mutual orientation of winding, n number 1 $\bullet$, 2 = $\Box$, 3 = $\triangle $. \subsubsection{Switches} \verb?\hswitch{n}? Switch horizontally oriented, n=0 switched on, 1 off. \noindent \verb?\vswitch{n}? Switch vertically oriented, n=0 switched on, 1 off. \noindent \verb?\hoswitch{x}{n}? Overswitch horizontally oriented x - letter - R right, L left, n=0 switched on, 1 off. \noindent \verb?\voswitch{x}{n}? Overswitch vertically oriented , x - letter - symbol U up, D down, n=0 switched on, 1 off. \subsubsection{Basic symbols} \verb?\node? connection of the leads. \noindent \verb?\pin? terminal \noindent \verb?\hwire{n}? wire in horizontal position, n length of the symbol in mm. \noindent \verb?\vwire{n}? wire in vertical position, n length of the symbol in mm. \noindent \verb?\dwire{x}{n}? wire in the diagonal position, x letter - position U up , D down, n length of the symbol. \noindent \verb?\cloop{x}{y}? Symbol for the simple loop (mesh), x letter- R clockwise orientation, L anticlockwise, y - text- label of the loop. \noindent \verb?\earth{x}? Earth, x - letter - position D down, U up, L left, R right. \noindent \verb?\chassis{x}? Chassis, x - letter - position D down, U up, L left, R right. \noindent \verb?\hmeasure{x}? Measuring instrument indicating horizontally oriented, x - text - symbol of the measured quantity. \noindent \verb?\hhmeasure{x}? Measuring instrument indicating horizontally oriented, reduced leads. \noindent \verb?\vmeasure{x}? Measuring instrument indicating vertically oriented, \noindent \verb?\vvmeasure{x}? Measuring instrument indicating vertically oriented, reduced leads. \noindent \verb?\osc{x}? Oscilloscope, x - letter - I indicating, R recording. \subsection{Semiconductors} This circuit symbols are contained in macro \verb?\eltex2? \\ \noindent \verb?\graetz{x}? Diode bridge rectifier, x - letter - R plus pole right, L plus pole left. \noindent \verb?\hdiode{x}{y}? Diode horizontally oriented, x - letter - R cathode right, L cathode left, y - letter - C varicap, Z Zener diode, E Esaki diode, S Shottky diode, D LED, P photodiode, L laser diode, blanc letter - basic symbol, \noindent \verb?\vdiode{x}{y}? Diode vertically oriented, x - letter - U cathode up, D cathode down, y - letter - type of the diode. \noindent \verb?\ddiode{x}{y}? Diode diagonally oriented, x - letter - U symbol up, D down, y - letter - U cathode up, D down. \noindent \verb?\htriac{x}? Triac horizontally oriented, x - letter - gate A left down, B left up, C right down, D right up. \noindent \verb?\vtriac{x}? Triac vertically oriented, x - letter - gate A left down, B left up, C right down, D right up. \noindent \verb?\hthyristor{x}{y}? Thyristor horizontally oriented, x - letter - R cathode right, L left, y - gate A left down, B left up, C right down, D right up. \noindent \verb?\vthyristor{x}{y}? Thyristor vertically oriented, x - letter - U cathode up, D down, y - gate A left down, B left up, C right down, D right up. \noindent \verb?\dthyristor{x}{y}{z}? Thyristor diagonally oriented, x - letter - symbol U up, D down, y - U cathode up D down, z -gate A left down, B left up, C right down, D right up. \noindent \verb?\hdiac? Diac horizontally oriented. \noindent \verb?\vdiac? Diac vertically oriented. \noindent \verb?\opto{x}? Optocoupler horizontally oriented, x - letter - R transistor right, L left. \noindent \verb?\opamp{x}{y}? Operational amplifier, x - letter - output R right, L left, U up, D down, y - inverting input U up, D down, R right, L left. \noindent \verb?\ota{x}{y}{z}? Operational transconductance amplifier, x - letter - output R right, L left, U up, D down, y - inverting input U up, D down, R right, L left, z - letter Y OTA with linearising diodes, blanc - without diodes. \noindent \verb?\bota{x}{y}{z}? Balanced output transconductance amplifier, (x z y as in OTA) \noindent \verb?\bjt{x}{y}{z}{v}? Bipolar junction transistor, x - type of the conductivity N npn, P pnp, y - collector emitter R right, L left, U up, D down, z - emitter position R right, L left, U up, D down, v - symbol in the circle N no, Y yes. \noindent \verb?\jfet{x}{y}{z}{v}? JFET, x - letter - channel N or P, y - letter - position drain source R right, L left , U up, D down, z - letter - position source R right, L left, U up, D down, v - letter - circle Y yes, N (or blanc) no. \noindent \verb?\mos{x}{y}{z}{v}{w}{r}? MOS transistor, x - letter - channel N or P, y - letter - position drain source R right, L left , U up, D down, z - letter - position source R right, L left, U up, D down, v - letter - mode E enhancement, D depletion, w - number of the gates 1 or 2, r - letter - circle Y yes, N (or blanc) no. \noindent \verb?\ujt{x}{y}{z}{v}? unijunction transistor (twobase diode), x - letter - emitter N or P, y - letter - circuit symbol position B1 B2, R right, L left , U up, D down, z - letter - position B1 - R right, L left, U up, D down, v - letter - circle Y yes, N (or blanc) no. \noindent \verb?\hall? Hall's generator \noindent \verb?\hmag? Magnistor horizontally. \noindent \verb?\vmag? Magnistor vertically. \noindent \verb?\hptc? Thermistor PTC horizontally. \noindent \verb?\vptc? Thermistor PTC vertically. \noindent \verb?\hntc? Thermistor NTC horizontally. \noindent \verb?\vntc? Thermistor NTC vertically. \noindent \verb?\hvar? Varistor horizontally. \noindent \verb?\var? Varistor vertically. \noindent \verb?\hprez? Photoresistor horizontally. \noindent \verb?\vprez? Photoresistor vertically. \noindent \verb?\hpelt? Peltier's cell horizontally. \subsection{Special circuits} This circuit symbols are contained in macro \verb?\eltex3? \\ \noindent \verb?\deltaload? Load in the delta configuration. \noindent \verb?\starload? Load in the star configuration. \noindent \verb?\starsource? Sources in the star configuration. \noindent \verb?\neta \netb \netc \netd \nete? Elementary twoports configurations. \noindent \verb?\inet? I network. \noindent \verb?\gneta \gnetb? Gamma network. \noindent \verb?\lneta \lnetb? L network. \noindent \verb?\pineta \pinetb? $\pi$ network. \noindent \verb?\tneta \tnetb? T network. \noindent \verb?\xnet{n}? X network, n - number - 1 general impedances, 2 symmetrical X network. \noindent \verb?\bhnet? Bridget H network. \noindent \verb?\hnet? H network. \noindent \verb?\btnet? Bridget T network. \noindent \verb?\ttnet? Double T network. \noindent \verb?\gyrator? Gyrator. \noindent \verb?\unistor{x}? Unistor, x - letter - orientation R right, L left, U up, D down. \noindent \verb?\flow{x}? Closed loop in the flowgraphs, x - letter - loop orientation U up, D down. \subsection{Electron tubes} This circuit symbols are contained in macro \verb?\eltex4? \\ \noindent \verb?\diode{x}{y}? Diode, x - letter - filament Y yes, N (or blanc) no, y - letter - equipotential cathode Y yes, N (or blanc) no. \noindent \verb?\triode{x}{y}? Triode, x - letter - filament Y yes, N (or blanc) no, y - letter - equipotential cathode Y yes, N (or blanc) no. \noindent \verb?\tetrode{x}{y}? Tetrode, x - letter - filament Y yes, N (or blanc) no, y - letter - equipotential cathode Y yes, N (or blanc) no. \noindent \verb?\pentode{x}{y}{z}? Pentode, x - letter - filament Y yes, N (or blanc) no, y - letter - equipotential cathode Y yes, N (or blanc) no, z - letter - suppressor grid and cathode connection Y yes, N (or blanc) no. \noindent \verb?\heptode{x}{y}{z}? Heptode, x - letter - filament Y yes, N (or blanc) no, y - letter - equipotential cathode Y yes, N (or blanc) no, z - letter - cathode and suppressor grid and screen grids g2 and g4 connection Y yes, N (or blanc) no. \subsection{Other basic circuit symbols} This circuit symbols are contained in macro \verb?\eltex5? \\ \noindent \verb?\hfuse? Fuse horizontally. \noindent \verb?\vfuse? Fuse vertically. \noindent \verb?\hrelay? Relay horizontally. \noindent \verb?\vrelay? Relay vertically. \noindent \verb?\hlight? Light source general (bulb) horizontally. \noindent \verb?\vlight? Light source general (bulb) vertically. \noindent \verb?\bell? Bell horizontally. \noindent \verb?\buzzer? Buzzer horizontally. \noindent \verb?\siren? Siren horizontally. \noindent \verb?\microphone{x}? Microphone, x - letter - R right oriented, L left. \noindent \verb?\earphone{x}? Eatrphone, x - letter - R right oriented, L left. \noindent \verb?\loudspeaker{x}? Loudspeaker, x - letter - R right oriented, L left. \noindent \verb?\hcrystal? Quartz crystall horizontally. \noindent \verb?\vcrystal? Crystall vertically. \noindent \verb?\hgap? Spark gap horizontally. \noindent \verb?\vgap? Spark gap vertically. \noindent \verb?\antenna{n}? Antenna, n - number - 0 transmitting, 1 receiving, 2 transmission and reception alternatively, 3 transmission and reception instantaneously. \noindent \verb?\dipole{n}? Dipole, n - number - 0 single dipole, 1 folded dipole. \noindent \verb?\loopant? Loop antenna. \noindent \verb?\cell{x}{y}? Galvanic cell horizontally or vertically, x - letter - plus pole R right, L left, U up, D down, y - letter - Y photocell, N (or blanc) galvanic cell. \noindent \verb?\hglow? Glow lamp horizontally. \noindent \verb?\vglow? Glow lamp vertically. \noindent \verb?\hdlamp? Discharge lamp horizontally. \noindent \verb?\vdlamp? Discharge lamp vertically. \noindent \verb?\hflamp? Fluorescent lamp horizontally. \noindent \verb?\vflamp? Fluorescent lamp vertically. \noindent \verb?\sensor{x}? Sensor of the quantity, output in the left. x - text - symbol of the quantity e. g. $\vartheta$ temperature. \noindent \verb?\head{n}? converter head, output on the left. n - number -1 mechanical stereo receiving, 2 magnetic mono receiving, 3 magnetic mono recording, 4 magnetic mono cleaning, 5 magnetic mono combined, 6 optical receiving. \subsection{Block symbols} This circuit symbols are contained in macro \verb?\eltex6? \\ \noindent \verb?\ptran? Transformer \noindent \verb?\fgen{n}? Wave generator, n - number - 1 sine-wave, 2 square-wave, 3 sine-wave with variable frequency. \noindent \verb?\delay? Delay line \noindent \verb?\amplifier{x}? Amplifier, x - letter - orientation R right, L left. \noindent \verb?\filter{n}? Frequency filter, n - number - 1 low pass, 2 high pass, 3 band pass, 4 band stop. \noindent \verb?\compressor? Compressor. \noindent \verb?\expander? Expander. \noindent \verb?\deemphase? Filter deemphase. \noindent \verb?\preemphase? Filter preemphase. \noindent \verb?\artline? Artificial line. \noindent \verb?\converter? Converter. \noindent \verb?\corrector{n}? Corrector, n - number - 1 amplitude distortion corrector, 2 phase corrector, 3 group delay corrector. \noindent \verb?\limiter? Limiter. \noindent \verb?\balance? Balance. \noindent \verb?\termin{n}? Termination set, n - number - 1 with balancing network, other number - without balancing network. \noindent \verb?\hybrid? Hybrid transformer. \noindent \verb?\modulator? Modulator. \noindent \verb?\atenuator? Attenuator. \noindent \verb?\carrier{n}? Carrier frequency, n - number - 1 carrier, 2 partially supressed carrier, 3 supressed carrier. \noindent \verb?\freq{n}? Frequency, n - number - 1 pilot frequency, 2 signalling frequency. 3 measuring frequency. \noindent \verb?\pilot{n}? Pilot frequency, n - 1 basic group, 2 super group, 3 master group, 4 super master group. \noindent \verb?\band{n}? Frequency band, n - 1 frequency noninverted, 2 band ad 1 phase inverted, 3 frequency inverted, 4 band ad 3 phase inverted. \noindent \verb?\ltran{x}{n}? Light transmitter, x - letter - light transmission R right, L left, n - number - light - 1 coherent, other number - uncoherent. \noindent \verb?\lrec{x}{n}? Light receiver, x - letter - light reception R right, L left, n - number - light 1 coherent, other number - uncoherent. \noindent \verb?\fibre{x}? Optical fibre, x - letter - S single mode step refraction index, M multi mode step refraction index, blank letter - general optical fibre. \noindent \verb?\threephase{x}? Three phase source, x - letter - D delta, S star. \noindent \verb?\rgraetz? Bridge rectifier. \noindent \verb?\trafo{x}? Single phase transformer, x - letter - position H horizontally, V vertically. \noindent \verb?\engine{n}? Engine, n - number - 0 direct current, 1 single phase, 3 three phase , 4 linear, 5 stepping. \noindent \verb?\gener{n}? Generator, n - number - 0 direct current, 1 single phase, 3 three phase. \subsection{Logical circuit} This circuit symbols are contained in macro \verb?\eltex7? \\ \noindent \noindent \verb?\andnand{n}{m}{x}? Logical gate AND, n - number - number of inputs 2 two inputs, 3 three inputs, m - number - type of the gate 0 basic, 1 power, 2 basic with open collector, 3 power with open collector, x - letter - I inverted output, N noninverted output. \noindent \verb?\ornor{n}{m}{x}? Logical gate OR, n - number - number of inputs 2 two inputs, 3 three inputs, m - number - type of the gate 0 basic, 1 power, 2 basic with open collector, 3 power with open collector, x - letter - I inverted output, N noninverted output. \noindent \verb?\invert{m}{x}? Inverter, m - number - type of the gate 0 basic, 1 power, 2 basic with open collector, 3 power with open collector, x - letter - I inverted output, N noninverted output. \section{Using of the commands} It is necessary to select the macro \verb?eltex? a \verb?bezier? In the case of "old" \LaTeX 2.09 there are the commands: \begin{verbatim} \documentstyle[a4,bezier]{article} \input{eltex1} % if you need also \input{eltex2} ..... \input{eltex7} \begin{document} \begin{figure} \begin{center} \begin{picture}(100,80)(0,0) % picture size 100 x 80 mm \grid{10}{8} % grid with the step 10 mm % mesh is numbered in mm % to make easy the orientation % After finishing the picture % you can cancel this command \put(30,30){\dind{U}{R}{1}} \end{picture} \end{center} \caption{\it Circuit diagram.} \label{fig:agic1} \end{figure} here is any text \end{document} \end{verbatim} In the case of \LaTeX 2e is used only different heading of the document. \section{Example} \begin{verbatim} \begin{figure} \begin{center} \begin{picture}(100,80)(0,0) \grid{10}{8} \put(40,40){\mos{N}{R}{D}{D}{2}{Y}} \put(10,40){\hcap{0}} \put(40,10){\vrez{0}} \put(40,40){\vrez{1}} \put(30,10){\vrez{0}} \put(30,40){\vrez{0}} \put(60,10){\vrez{0}} \put(70,10){\vcap{0}} \put(60,45){\vvind{R}{0}} \put(70,50){\vturn{L}{0}} \put(65,50){\vcore{3}{F}} \put(60,10){\chassis{D}} \put(60,65){\vwire{5}} \put(60,70){\hwire{30}} \put(60,40){\hwire{10}} \put(10,10){\hwire{80}} \put(70,50){\hwire{10}} \put(70,56){\hwire{10}} \put(10,70){\hwire{30}} \put(30,10){\node} \put(40,10){\node} \put(60,10){\node} \put(70,10){\node} \put(30,40){\node} \put(40,43.5){\node} \put(60,40){\node} \put(30,70){\node} \put(90.5,10){\pin} \put(80.5,50){\pin} \put(80.5,56){\pin} \put(90.5,70){\pin} \put(9,10){\pin} \put(9,70){\pin} \put(9,40){\pin} \put(20,45){$C_{1}$} \put(20,55){$R_{1}$} \put(20,25){$R_{2}$} \put(45,62){$R_{3}$} \put(45,25){$R_{4}$} \put(53,25){$R_{5}$} \put(75,25){$C_{2}$} \put(90,75){$+U_{CC}$} \put(9,75){$\pm U_{r}$} \end{picture} \end{center} \caption{\it Circuit diagram.} \label{fig:agic1} \end{figure} \end{verbatim} \begin{figure} \begin{center} \begin{picture}(100,80)(0,0) \grid{10}{8} \put(40,40){\mos{N}{R}{D}{D}{2}{Y}} \put(10,40){\hcap{0}} \put(40,10){\vrez{0}} \put(40,40){\vrez{1}} \put(30,10){\vrez{0}} \put(30,40){\vrez{0}} \put(60,10){\vrez{0}} \put(70,10){\vcap{0}} \put(60,45){\vvind{R}{0}} \put(70,50){\vturn{L}{0}} \put(65,50){\vcore{3}{F}} \put(60,10){\chassis{D}} \put(60,65){\vwire{5}} \put(60,70){\hwire{30}} \put(60,40){\hwire{10}} \put(10,10){\hwire{80}} \put(70,50){\hwire{10}} \put(70,56){\hwire{10}} \put(10,70){\hwire{30}} \put(30,10){\node} \put(40,10){\node} \put(60,10){\node} \put(70,10){\node} \put(30,40){\node} \put(40,43.5){\node} \put(60,40){\node} \put(30,70){\node} \put(90.5,10){\pin} \put(80.5,50){\pin} \put(80.5,56){\pin} \put(90.5,70){\pin} \put(9,10){\pin} \put(9,70){\pin} \put(9,40){\pin} \put(20,45){$C_{1}$} \put(20,55){$R_{1}$} \put(20,25){$R_{2}$} \put(45,62){$R_{3}$} \put(45,25){$R_{4}$} \put(53,25){$R_{5}$} \put(75,25){$C_{2}$} \put(90,75){$+U_{CC}$} \put(9,75){$\pm U_{r}$} \end{picture} \end{center} \caption{\it Circuit diagram.} \label{fig:agic1} \end{figure} \end{document}