SVG Circuit_macros examples, Version XXXThis file shows diagrams in .svg format; png versions are also available. The PDF equivalent can be found in examples.pdf of the distribution.
The diagrams shown below have been adapted from the Circuit_macros
examples in order to test the svg output of dpic. Generating svg line
art is straightforward, but TeX, LaTeX, and related word
processors do not produce svg. Either less-sophisticated text formatting
must be employed 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 although
there may be font-related issues for some diagrams.
Click on the link to view the source of each diagram. There are a number of other issues:
cfig(ResistorsSVG, Resistors, showing some variations and the ebox) cfig(CapacitorsSVG, Capacitors) cfig(InductorsSVG, Inductors) cfig(DiodesSVG, Diodes: a m4tt`'K in the second argument draws an open arrowhead) cfig(EmarrowsSVG, Radiation arrows) cfig(VariableSVG, Arrows and marks for showing variability) cfig(SourcesSVG, Sources and source-like elements) cfig(AmpTableSVG, Macros m4tt`'amp`,' delay`,' and m4tt`'integrator) cfig(FusesSVG, Macros m4tt`'fuse and m4tt`'cbreaker) cfig(MoreTableSVG, Additional two-terminal elements) cfig(GroundsSVG, Ground symbols) cfig(SwitchesSVG, The switch macros; m4tt`'switch(`,'`,'`,'L|B|D) is a wrapper for m4tt`'lswitch`,' m4tt`'bswitch`,' and m4tt`'dswitch) cfig(AntennasSVG, Antenna symbols) cfig(OpampSVG, The opamp) cfig(AudioSVG, Audio elements) cfig(XformSVG, The transformer element`,' drawing direction down) cfig(NPDTSVG, Double throw with the m4tt`'NPDT macro) cfig(ContactSVG, A non-exhaustive sampling of m4tt`'contact macro variations) cfig(ContactsSVG, The m4tt`'contacts macro) cfig(relaycoilSVG, The m4tt`'relaycoil macro) cfig(RelaySVG, Some variants of the m4tt`'relay macro) cfig(JackSVG, The m4tt`'jack and m4tt`'plug macros) cfig(ConnSVG, The m4tt`'tstrip`,' ccoax`,' tconn`,' and m4tt`'tbox macros) cfig(PconnSVG, The m4tt`'pconnex macro) cfig(HeadersSVG, The m4tt`'Header macro) cfig(ConnectorsSVG, Some integrated circuits and connectors with simple geometry and lists of labels) cfig(ChipsSVG, IC outlines) cfig(fetSVG, FETs`,' showing programmable components and example customizations) cfig(ujtSVG, UJT examples) cfig(thyristorSVG, Thyristor examples) cfig(BipSVG, Bipolar transistors (drawing direction: up)) cfig(TgateSVG, The m4tt`'tgate and m4tt`'ptrans elements) cfig(NportSVG, The m4tt`'nport and m4tt`'nterm macros) cfig(NLGSVG, Some customizations of m4tt`'nport) cfig(WindingsSVG, The macro m4tt`'winding(L|R`,'diam`,'pitch`,'turns`,'core wid`,'core color)) cfig(ex01SVG, Two simple labeled circuits) cfig(ex02SVG, Elements at obtuse angles) cfig(OptoisoSVG, Optical isolator: a circuit with right or left orientation) cfig(MixerSVG, A balanced mixer`,' using m4tt`'mosfet and a custom transformer) cfig(PushPullSVG, A push-pull mixer`,' showing FETs with multiple gates) cfig(QuantumSVG, A quantum circuit) cfig(SQUIDSVG, Superconducting quantum interface device (drawing direction down)) cfig(SixpoleSVG, A six-pole filter) cfig(ex18SVG, Precision half-wave rectifier and a tunnel diode circuit (illustrating m4tt`'opamp`,' diode`,' resistor`,' ground`,' and labels)) cfig(ex10SVG, Non-planar graph and bistable circuit (illustrating the m4tt`'crossover macro and colored elements)) cfig(ThreeSVG, Three-phase oscillator) cfig(MCSVG, A three-phase switched AC-AC converter and a DC-DC converter) cfig(ex17SVG, A repetitive network created by Pic looping and a skewed circuit used to test the macro m4tt`'parallel_) cfig(ex12SVG, A CMOS NAND gate`,' a test circuit`,' and an XMOSFET example) cfig(pwrsupplySVG, An elementary power supply circuit with colored elements`,' and a multiple-winding transformer with 3-phase rectifier) cfig(TTLnandSVG, TTL NAND gate illustrating a transistor with multiple emitters) cfig(I2LSVG, Gate circuit and equivalent embedded components illustrating multiple collectors) cfig(SchottkySVG, A 4-input NAND circuit illustrating the m4tt`'S (Schottky) option of m4tt`'bi_trans) cfig(ex11SVG, Transistor radio audio chain) cfig(ex04SVG, Labels on non-manhattan elements) cfig(CsourceSVG, Realization of a controlled source (illustrating stacked element labels)) cfig(DriveSVG, Synchronous machine driven by variable-speed drive and rectifier) cfig(ex16SVG, A rate 1/2 binary convolutional coder and its state diagram) cfig(ex03SVG, Digital filter) cfig(MotorControlSVG, Motor control connections) cfig(RectifiersSVG, Rectifier circuits and waveforms) cfig(HeathkitSVG, 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(lcctSVG, 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(TubediagsSVG, 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(UNOSVG, An Arduino UNO circuit adapted and redrawn) cfig(sfgSVG, Signal-flow graphs) cfig(LogicSVG, Basic logic gates) cfig(ex08SVG, General-purpose latch: a small logic circuit) cfig(DecoderSVG, Decoder logic`,' constructed using the m4tt`'for_ macro) cfig(ex21SVG, Some flip-flops) cfig(MultiplexerSVGfor showing Multiplexer) cfig(DemultiplexerSVG, Demultiplexer) cfig(ShiftRSVG, A 5-bit shift register drawn using a custom flip-flop) cfig(AdderSVG, A full adder and a cascade of n-bit adders) cfig(CanLogicSVG, A way of automatically drawing two-layer logic diagrams) cfig(AlogixSVG, 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(ABlogixSVG, 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(XORSVG, Realizations of the XOR function using m4tt`'Autologix) cfig(EEPSVG, Part of a single-line diagram of a power distribution system using draft elements) cfig(paletteSVG, A draft palette of a few elements for Inkscape using a 1 mm grid) cfig(ex00SVG, Line diagrams) cfig(controlSVG, Control-system block diagrams) cfig(GrayCodeSVG, Gray code 10-bit encoder disk pattern`,' and a crossbar switch) #cfig(CrossbarSVG, # A crossbar switch) cfig(ByteSVG, Elementary splines) cfig(RotboxSVG, The macro m4tt`'rotbox(wid,ht,type,[r|t=val]) draws a box in the current direction) cfig(ex06SVG, Crosshatching by m4tt`'for loops) cfig(ex09SVG, 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(ex05SVG, Use of m4tt`'darrow and m4tt`'Darc) cfig(PlateSVG, Dimensioning with tolerances according to ASME Y14.5) Use of m4tt`'darrow and m4tt`'Darc) cfig(LoglogSVG, A graph drawn using the pic language) cfig(GeometrySVG, Plane geometry examples and an illustration of a Lyapunov function) cfig(randomSVG, Testing random numbers) cfig(expSVG, Test of m4tt`'project and other m4tt`'lib3D macros`,' showing the projection of a solid onto the y1`,'z1 plane by sighting along the x1 axis.) cfig(graysurfSVG, Plotting surfaces using gray scales. A sort algorithm determines plotting order) cfig(shapesSVG, Basic shapes) #fig(AntiqueClockSVG, # An antique clock face) cfig(cscSVG, Conestoga Sailing Club (illustrating the filling of arbitrary shapes)`,' and an antique clock face with shading and rotated text) cfig(roseSVG, A window redrawn from a detail of the set design for the musical Dracula`,' used for testing m4tt`'dpic`,' and an experimental halftone. This diagram consumes much LaTeX main memory but can be produced directly as pdf using m4tt`'dpic -d`,' as svg using m4tt`'dpic -g`,' or as postscript using m4tt`'dpic -r since no text formatting is required. The right object adjusts the size of dots to produce a halftone effect) cfig(diamondSVG, Variations on M. Goossens`,' S. Rahtz`,' and F. Mittelbach`,' The LaTeX Graphics Companion`,' Addison-Wesley 1997`,' pp. 57-58) cfig(wormSVG, An exercise in calculating RGB colours) cfig(ButtonsSVG, Shading in color) cfig(DiniSVG, Dini surface and an icosahedron) cfig(SierpinskiSVG, The Sierpinski triangle and a Cayley graph: tests of pic macro recursion) cfig(recycleSVG, Modest repetition and partial fill) cfig(ex15SVG, Simple diagrams that are easily drawn by looping) cfig(CountingSVG, An example of enumeration) cfig(CrowSVG, Illustrating m4tt`'shadebox and a custom crowfoot line termination) cfig(FlowSVG, A flowchart sampler) cfig(BtreeSVG, Binary trees) cfig(InclepsSVG, Overlaying a figure with line graphics) cfig(FontsSVG) |