` '
SVG Circuit_macros examples, Version XXXHome > Examples > dpvThis file shows diagrams in .svg format produced without the use of LaTeX or equivalent. The diagrams have been selected and adapted from the Circuit_macros examples in order to test the svg output of dpic. Generating svg line art is straightforward but formatting text is not because TeX, LaTeX, and related word processors do not produce svg directly. Either less-sophisticated text formatting must be employed for svg or an intermediate format such as pdf can be produced, followed by an additional processing step to convert to svg. Two possibilities for the latter are dvisvgm and pdf2svg. However, many circuit and similar diagrams intended for the web do not require sophisticated labels; the examples shown below might be representative. Click on the link to view the source of each diagram. There are other issues:
cfig(ResistorsDPV, Resistors`,' showing some variations and the ebox) cfig(CapacitorsDPV, Capacitors) cfig(InductorsDPV, Inductors) cfig(DiodesDPV, Diodes: appending a m4tt`'K to the second argument draws an open arrowhead) cfig(EmarrowsDPV, Radiation arrows) cfig(VariableDPV, Arrows and marks for showing variability) cfig(SourcesDPV, Sources and source-like elements) cfig(AmpTableDPV, Macros m4tt`'amp`,' delay`,' and m4tt`'integrator) cfig(FusesDPV, Macros m4tt`'fuse`,' m4tt`'cbreaker`,' and m4tt`'breaker) cfig(ArrestersDPV, The m4tt`'arrester macro) cfig(MoreTableDPV, Additional two-terminal elements) cfig(GroundsDPV, Ground symbols) cfig(SwitchesDPV, The switch macros; m4tt`'switch(`,'`,'`,'L|B|D,attribs) is a wrapper for m4tt`'lswitch`,' m4tt`'bswitch`,' and m4tt`'dswitch) cfig(AntennasDPV, Antenna symbols) cfig(OpampDPV, The opamp) cfig(AudioDPV, Audio elements) cfig(XformDPV, Some variations of the transformer element`,' drawing direction down) cfig(NPDTDPV, Double throw with the m4tt`'NPDT macro) cfig(ContactDPV, A non-exhaustive sampling of m4tt`'contact macro variations) cfig(ContactsDPV, The m4tt`'contacts macro) cfig(relaycoilDPV, The m4tt`'relaycoil macro) cfig(RelayDPV, Some variants of m4tt`'relay) cfig(JackDPV, The m4tt`'jack and m4tt`'plug macros) cfig(ConnDPV, The m4tt`'tstrip`,' ccoax`,' tconn`,' and m4tt`'tbox macros) cfig(PconnDPV, The m4tt`'pconnex macro) cfig(cbresistorDPV, Color-coded through-hole resistors) cfig(EVplugsDPV, Electric vehicle charging plug patterns make extensive use of key=value pairs to set options) cfig(HeadersDPV, The m4tt`'Header macro) cfig(ConnectorsDPV, Some integrated circuits and connectors with simple geometry and lists of labels) cfig(ChipsDPV, IC outlines) cfig(fetDPV, FETs`,' showing programmable components and example customizations) cfig(ujtDPV, UJT examples) cfig(thyristorDPV, Thyristor examples. The thyristor is a 3- or 4-terminal composite element) cfig(BipDPV, Bipolar transistors (drawing direction: up)) cfig(TgateDPV, The m4tt`'tgate and m4tt`'ptrans elements) cfig(NportDPV, The m4tt`'nport and m4tt`'nterm macros) cfig(NLGDPV, Some customizations of m4tt`'nport) cfig(WindingsDPV, The macro m4tt`'winding(L|R`,'diam`,'pitch`,'turns`,'core wid`,'core color)) cfig(Spec555DPV, A 555 timer example) cfig(ex01DPV, Two simple labeled circuits) cfig(ex02DPV, Elements at obtuse angles) cfig(OptoisoDPV, Optical isolator: a circuit with right or left orientation) cfig(MixerDPV, A balanced mixer`,' using m4tt`'mosfet and a custom transformer) cfig(PushPullDPV, A push-pull mixer`,' showing FETs with multiple gates) cfig(QuantumDPV, A quantum circuit) cfig(SixpoleDPV, A six-pole filter) cfig(ex18DPV, Precision half-wave rectifier and a tunnel diode circuit (illustrating m4tt`'opamp`,' diode`,' resistor`,' ground`,' and labels)) cfig(ex10DPV, Non-planar graph and bistable circuit (illustrating the m4tt`'crossover macro and colored elements)) cfig(ThreeDPV, Three-phase oscillator) cfig(MCDPV, A three-phase switched AC-AC converter and a DC-DC converter) cfig(ex12DPV, A CMOS NAND gate`,' a test circuit`,' and an XMOSFET example) cfig(pwrsupplyDPV, An elementary power supply circuit with colored elements`,' and a multiple-winding transformer with 3-phase rectifier) cfig(TTLnandDPV, TTL NAND gate illustrating a transistor with multiple emitters) cfig(I2LDPV, Gate circuit and equivalent embedded components illustrating multiple collectors) cfig(SchottkyDPV, A 4-input NAND circuit illustrating the m4tt`'S (Schottky) option of m4tt`'bi_trans) cfig(ex11DPV, Transistor radio audio chain) cfig(ex04DPV, Labels on non-manhattan elements) cfig(CsourceDPV, Realization of a controlled source (illustrating stacked element labels)) cfig(DriveDPV, Synchronous machine driven by variable-speed drive and rectifier) cfig(ex16DPV, A rate 1/2 binary convolutional coder and its state diagram) cfig(ex03DPV, Digital filter) cfig(MotorControlDPV, Motor control connections) cfig(RectifiersDPV, Rectifier circuits and waveforms) cfig(HeathkitDPV, The power supply of a Heathkit AR-15 (Now`,' that was a receiver!) with custom transformer and other elements`,' drawn on a grid (partially shown) to aid in placement) cfig(lcctDPV, A digital circuit of moderate size`,' redrawn from M. P. Maclenan and G. M. Burns`,' "An Approach to Drawing Circuit Diagrams for Text Books`,'" Tugboat (12)1`,' March 1991`,' pp. 66-69) cfig(TubediagsDPV, Electron-tube diagrams: a few bottom-view base diagrams`,' a generic triode test circuit`,' and a 25-watt audio amplifier adapted from F. Langford-Smith`,' Radiotron Designers Handbook`,' fourth edition`,' Harrison`,' NJ: Radio Corporation of America`,' 1952) cfig(LT3757DPV, LT3757 controller) cfig(UNODPV, An Arduino UNO circuit adapted and redrawn) cfig(sfgDPV, Signal-flow graphs) cfig(LogicDPV, Basic logic gates) cfig(ex08DPV, General-purpose latch: a small logic circuit) cfig(DecoderDPV, Decoder logic`,' constructed using the m4tt`'for_ macro) cfig(ex21DPV, Some flip-flops) cfig(MultiplexerDPV, Multiplexer) cfig(DemultiplexerDPV, Demultiplexer) cfig(ShiftRDPV, A 5-bit shift register drawn using a custom flip-flop) cfig(AdderDPV, A full adder and a cascade of n-bit adders) cfig(CanLogicDPV, A way of automatically drawing two-layer logic diagrams) cfig(AlogixDPV, The m4tt`'Autologix(`'Boolean expression; Boolean expression... `,' options) macro automatically draws Boolean expressions in function notation. The function tree is drawn`,' then a row or column of inputs`,' then the connections. The default result is on the left`,' a custom element at the top`,' and a tree of gates only is shown on the right.) cfig(ABlogixDPV, The m4tt`'Autologix macro can draw inputs on the left but the added drawing complexity may require hand tuning with second-argument options: m4tt`'L puts the inputs on the left`,' m4tt`'R reverses their order`,' m4tt`'V scans the input arguments in reverse order`,' and m4tt`'offset=`'value displaces the array of inputs) cfig(XORDPV, Realizations of the XOR function using m4tt`'Autologix) cfig(EEPDPV, Part of a single-line diagram of a power distribution system using draft elements) cfig(ex05DPV, Use of m4tt`'darrow and m4tt`'Darc) cfig(GrayCodeDPV, Gray code 10-bit encoder disk pattern`,' and a crossbar switch) cfig(controlDPV, Control-system block diagrams) cfig(SevensegmentDPV, A customizable seven-segment display showing the numbered segments with a custom shape and the numerals from 0 to 9) cfig(ByteDPV, Elementary splines) cfig(RotboxDPV, The macro m4tt`'rotbox(wid,ht,type,[r|t=val]) draws a box in the current direction) cfig(ex06DPV, Crosshatching) cfig(GeometryDPV, Plane geometry examples) cfig(LoglogDPV, Graphs drawn using the pic language) cfig(SmithchartDPV, A Smith chart) cfig(ex09DPV, Illustrating the macro m4tt`'dimension_(linespec`,' offset`,' label`,' H|W|D|blank width`,' tic offset`,' <-|->). A negative second argument implies an offset to the right of the linespec direction. A label starting with m4tt`'" or m4tt`'sprintf is copied literally. If label is an m4tt`'s_box(...) then setting argument 4 to m4tt`'H`,' m4tt`'W`,' or m4tt`'D tailors the blank width to the m4tt`'s_box height`,' width`,' or diagonal respectively; i.e.`,' m4tt`'W is equivalent to m4tt`'s_wd+textoffset*2. The macro m4tt`'arcdimension_ is similar but the first argument specifies the arc to be dimensioned and the second argument is the outward radial offset of the dimension arrow arc.) cfig(PlateDPV, Dimensioning with tolerances according to ASME Y14.5) Use of m4tt`'darrow and m4tt`'Darc) cfig(randomDPV, Testing random number generation using dpic macro m4tt`'randn( |