Debian Codegraph @

texmf-dist/doc/latex/circuit-macros/examples/dpv/examplesDPVs.htmx

raw
1 <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
2 <HTML>
3 <HEAD>
4 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <!--meta http-equiv="Content-Script-Type" content="text/javascript"-->
7 <TITLE>SVG Examples: Circuit_macros Version XXX</TITLE>
8 <meta name="keywords" content="HTML"
9 `content="Circuit elements, basic circuits, logic circuits, diagrams,
10 electric circuits, resistor, capacitor, inductor, diode, source, amplifier,
11 integrator, fuse, switch, antenna, opamp, transformer, relay, contact, jack,
12 plug, FET, UJT, thyristor, bipolar transistor, nport, windings, timer,
13 optical isolator, rectifier, bistable, oscillator, CMOS, MOSFET, power supply,
14 NAND gate, controlled source, synchronous machine, digital circuit, signal-flow
15 graph, latch, decoder, flipflop, full adder, logic diagram, crossbar switch,
16 dimensioning, control system, graph, RGB colors, recursion, binary tree,
17 flowcharts, picture overlay, ASME Y14.5"'>
18
19 <style type="text/css">
20 </style>
21 <link rel="shortcut icon" href="../Circuit_macros.ico" type="image/x-icon" />
22 </HEAD>
23
24 <!-- Google tag (gtag.js) -->
25 <script async src="https://www.googletagmanager.com/gtag/js?id=G-HRS8TQGRE8"></script>
26 <script>
27 window.dataLayer = window.dataLayer || [];
28 function gtag(){dataLayer.push(arguments);}
29 gtag('js', new Date());
30
31 gtag('config', 'G-HRS8TQGRE8');
32 </script>
33
34
35 <!-- m4 macros: ------------------------------------------------------------
36 define(`ifinstr',`ifelse(`$2',,`$1',index(`$1',`$2'),-1,
37 `ifinstr(shift(shift(shift($@))))',`$3')')
38 define(`m4inx',`define(`m4x',ifdef(`m4x',`incr(m4x)',1))m4x')
39
40 define(`m4tt',`<g style="font-family:monospace">')
41
42 dnl cfig( svg filename, [textfile], [y], [OBJECT] )
43 define(`cfig',`
44 <p>
45 dnl The object type is needed for the overlay
46 dnl example
47 ifelse(`$4',OBJECT,
48 `<object data="$1.svg" type="image/svg+xml" class="img"></object>',
49 `<IMG SRC="$1.svg">')
50 dnl
51 ifelse(`$2',,,`<br><br>
52 Fig. m4inx (<a
53 href="$1.txt" TYPE="text/plain" TARGET="_blank" alt="$1">$1.m4</a>):
54 `$2' changecom(,)&`#'8194;changecom(`#')')
55 </p>
56 ifinstr(`$3',y,,`<hr>')')
57
58 --------------------------------------------------------------------- -->
59
60 <BODY>
61 <table cellpadding="0" cellspacing="0"
62 width="700px" border="0" align="center" ><tr><td>
63
64 <H2>SVG Circuit_macros examples, Version XXX</H2>
65
66 <A HREF="../../index.html">Home</A>
67 &#62;
68 <A HREF="examples.html">Examples</A>
69 &#62;
70 <A HREF="examplesDPVs.html">dpv</A>
71
72 <hr>
73
74 <p>
75 This file shows a few diagrams in .svg format produced without the use of
76 LaTeX or equivalent.
77 The diagrams have been adapted from the Circuit_macros
78 examples in order to test the svg output of dpic.
79 To generate the equivalent for all the examples, go to the
80 examples/dpv directory and type "make". Typing "make examplesDPVs.html"
81 produces the selection shown here.
82 </p>
83 <p>
84 Generating svg line
85 art is straightforward but formatting text is not because TeX, LaTeX,
86 and related word processors do not produce svg directly. Either
87 less-sophisticated text formatting must be employed for svg or an
88 <A HREF="https://en.wikibooks.org/wiki/LaTeX/Export_To_Other_Formats">
89 intermediate format</A>
90 such as pdf can be
91 produced, followed by an additional processing step to convert to svg.
92 Two possibilities for the latter are
93 <A HREF="https://www.ctan.org/pkg/dvisvgm">dvisvgm --pdf</A>
94 and
95 <A HREF="https://github.com/dawbarton/pdf2svg">pdf2svg</A>.
96 However, many circuit and similar diagrams intended for the web do not
97 require sophisticated labels; the examples shown below might
98 be representative. Compare them to those in
99 <A HREF="examples.html" TARGET="_blank">examples.html</A>
100 </p>
101 <p>
102 Click on the link to view the source of each diagram.
103 </p>
104 <hr>
105 <p>
106 There are other issues:
107 <ul>
108 <li> The default font face is not specified in all of these diagrams but is
109 inherited from the enclosing document, so the appearance of labels can
110 differ depending on the browser. Some of these diagrams set the font at
111 the beginning of the diagram source.
112 <li> Diagrams such as these contain text labels
113 that have to be treated differently from the LaTeX-compatible versions;
114 for example,
115 apparently there is no direct way to know the bounding box of arbitrary svg
116 text.
117 <!-- text, as discussed
118 <a href="http://www.aditus.nu/jpgraph/jpg_svg.php" TARGET="_blank">here,</a>
119 for example. -->
120 Consequently, text placement is approximate and may require
121 manual adjustment.
122 <li> Rather than patch the original source files for svg production,
123 edited copies have been used. The configuration file svg.m4 read by
124 m4 prior to libcct.m4 contains the following macros defined for svg.
125 Others could be defined to exercise some of the media capabilties
126 of svg. They are subject to change:
127 <ul>
128 <li>
129 m4tt`'svg_font(</g>font-face,nominal size[:dptextratio],textoffset,
130 dpic commands`'m4tt)</g>:
131 Change font face and dpic m4tt`'textht</g>, m4tt`'dptextratio</g>,
132 and m4tt`'textoffset</g> parameters.
133 If arg4 is blank, the font is changed and
134 requires m4tt`'command "&lt;/g&gt;"</g> at the end
135 to cancel the font change.
136 <br>
137 Note:
138 Nominal height = text height in drawing units; actual height =
139 nominal ht x m4tt`'dptextratio</g>.
140 <br>
141 Examples: <br>
142 m4tt`'svg_font(Times)</g><br>
143 m4tt`'svg_font(Times,14bp__)</g><br>
144 m4tt`'svg_font(sans-serif,14bp__:0.71)</g><br>
145 m4tt`'svg_font(Times,11bp__,1bp__,"text" at A)</g><br>
146 m4tt`'svg_font(font-family="Times")</g><br>
147 m4tt`'svg_font(font-family="Times" font-style="italic")</g><br>
148 m4tt`'svg_font(style="font-family:Times; font-style:italic")</g>
149 <li>m4tt svgfontratio(</g>font name`'m4tt)</g>;
150 Reasonable m4tt`'dptextratio</g> value for common fonts, used
151 by m4tt`'svg_font</g>.
152 <li>m4tt svg_tspan(</g>text attributes, text`'m4tt)</g>;
153 e.g. m4tt`'svg_tspan(font-style="italic" font-size="75%",XYZ)</g>
154 <li>m4tt svg_it(</g>text`'m4tt)</g>: for italics
155 <li>m4tt svg_tt(</g>text`'m4tt)</g>: for monospace (courier)
156 <li>m4tt svg_sf(</g>text`'m4tt)</g>: sans-serif (Helvetica)
157 <li>m4tt svg_norm(</g>text`'m4tt)</g>: for normal text
158 <li>m4tt svg_bf(</g>text`'m4tt)</g>: for bold face
159 <li>m4tt svg_small(</g>text, percent`'m4tt)</g>:
160 to set a smaller text size, default 66
161 <li>m4tt svg_fsize(</g>text, percent`'m4tt)</g>:
162 for setting larger or smaller text size, default 100
163 <li>m4tt svg_sub(</g>text, size percent, y displ, x displ`'m4tt)</g>:
164 subscript
165 <li>m4tt svg_ul(</g>text`'m4tt)</g>: underlined text
166 <li>m4tt svg_ol(</g>text`'m4tt)</g>: overlined text
167 <li>m4tt svg_sup(</g>text, size percent, y displ, x displ`'m4tt)</g>:
168 superscript
169 <li>m4tt svg_hat(</g>character`'m4tt)</g>: circumflex-accented character
170 <li>m4tt svg_frac(</g>numerator[:wid], denominator[:wid]`'m4tt)</g>:
171 basic fraction, wid in drawing units
172 <li>m4tt svg_rot(</g>degrees, "text" [at position]`'m4tt)</g>:
173 Rotate text degrees (default 90) ccw.
174 Requires m4tt`'svg_rot_init(</g>filename`'m4tt)</g> and the source
175 must be processed twice.
176 <li>m4tt svg_rot_init(</g>filename`'m4tt)</g>:
177 filename is the basename of the output of
178 m4tt`'dpic -v filename.pic > filename.svg`'m4tt
179 <li>m4tt svg_symbol(</g>text`'m4tt)</g>: allow quoted pound sign in text,
180 e.g., m4tt`'svg_symbol(10&&#96;&#35;&#39;176;)</g> produces 10&#176;
181 <li>m4tt svgLink(</g>URL, drawing object, m4tt[B])</g>:
182 link to external file using
183 &lt;a xlink:href=...&gt;...&lt;/a&gt; (default is
184 m4tt`'target="_blank"</g> unless
185 arg 3 = B)
186 <li>m4tt svgLinkString</g> as above but for strings attached to objects
187 <li> Greek and other symbols (typically of the form &#nnn; so care is
188 required when used in a macro argument):
189
190 <!--
191 Reference:
192 https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references
193 and
194 https://www.toptal.com/designers/htmlarrows/math/
195 -->
196 <table cellpadding="2" cellspacing="0" width="75%" >
197 <tr>
198 <td width="10%"> m4tt svg_alpha</g> <td align="left"> changecom(,)&`#'945;changecom(`#')
199 <td width="10%"> m4tt svg_beta</g> <td align="left"> changecom(,)&`#'946;changecom(`#')
200 <td width="10%"> m4tt svg_Gamma</g> <td align="left"> changecom(,)&`#'915;changecom(`#')
201 <td width="10%"> m4tt svg_gamma</g> <td align="left"> changecom(,)&`#'947;changecom(`#')
202 <td width="10%"> m4tt svg_Delta</g> <td align="left"> changecom(,)&`#'916;changecom(`#')
203 <td width="10%"> m4tt svg_delta</g> <td align="left"> changecom(,)&`#'948;changecom(`#')
204 <td width="10%"> m4tt svg_epsilon</g> <td align="left"> changecom(,)&`#'949;changecom(`#')
205 <td width="10%"> m4tt svg_zeta</g> <td align="left"> changecom(,)&`#'950;changecom(`#')
206 </tr>
207 <tr>
208 <td width="10%"> m4tt svg_eta</g> <td align="left"> changecom(,)&`#'951;changecom(`#')
209 <td width="10%"> m4tt svg_Theta</g> <td align="left"> changecom(,)&`#'920;changecom(`#')
210 <td width="10%"> m4tt svg_theta</g> <td align="left"> changecom(,)&`#'952;changecom(`#')
211 <td width="10%"> m4tt svg_iota</g> <td align="left"> changecom(,)&`#'953;changecom(`#')
212 <td width="10%"> m4tt svg_kappa</g> <td align="left"> changecom(,)&`#'954;changecom(`#')
213 <td width="10%"> m4tt svg_Lambda</g> <td align="left"> changecom(,)&`#'923;changecom(`#')
214 <td width="10%"> m4tt svg_lambda</g> <td align="left"> changecom(,)&`#'955;changecom(`#')
215 <td width="10%"> m4tt svg_mu</g> <td align="left"> changecom(,)&`#'956;changecom(`#')
216 </tr>
217 <tr>
218 <td width="10%"> m4tt svg_nu</g> <td align="left"> changecom(,)&`#'957;changecom(`#')
219 <td width="10%"> m4tt svg_Xi</g> <td align="left"> changecom(,)&`#'926;changecom(`#')
220 <td width="10%"> m4tt svg_xi</g> <td align="left"> changecom(,)&`#'958;changecom(`#')
221 <td width="10%"> m4tt svg_Pi</g> <td align="left"> changecom(,)&`#'928;changecom(`#')
222 <td width="10%"> m4tt svg_pi</g> <td align="left"> changecom(,)&`#'960;changecom(`#')
223 <td width="10%"> m4tt svg_rho</g> <td align="left"> changecom(,)&`#'961;changecom(`#')
224 <td width="10%"> m4tt svg_Sigma</g> <td align="left"> changecom(,)&`#'931;changecom(`#')
225 <td width="10%"> m4tt svg_sigma</g> <td align="left"> changecom(,)&`#'963;changecom(`#')
226 </tr>
227 <tr>
228 <td width="10%"> m4tt svg_tau</g> <td align="left"> changecom(,)&`#'964;changecom(`#')
229 <td width="10%"> m4tt svg_upsilon</g> <td align="left"> changecom(,)&`#'965;changecom(`#')
230 <td width="10%"> m4tt svg_Phi</g> <td align="left"> changecom(,)&`#'934;changecom(`#')
231 <td width="10%"> m4tt svg_phi</g> <td align="left"> changecom(,)&`#'966;changecom(`#')
232 <td width="10%"> m4tt svg_chi</g> <td align="left"> changecom(,)&`#'967;changecom(`#')
233 <td width="10%"> m4tt svg_Psi</g> <td align="left"> changecom(,)&`#'936;changecom(`#')
234 <td width="10%"> m4tt svg_psi</g> <td align="left"> changecom(,)&`#'968;changecom(`#')
235 <td width="10%"> m4tt svg_Omega</g> <td align="left"> changecom(,)&`#'937;changecom(`#')
236 </tr>
237 <tr>
238 <td width="10%"> m4tt svg_omega</g> <td align="left"> changecom(,)&`#'969;changecom(`#')
239 <td width="10%"> m4tt svg_micro</g> <td align="left"> changecom(,)&`#'956;changecom(`#')
240 <td width="10%"> m4tt svg_ohm</g> <td align="left"> changecom(,)&`#'937;changecom(`#')
241 <td width="10%"> m4tt svg_lt</g> <td align="left"> changecom(,)&`#'60;changecom(`#')
242 <td width="10%"> m4tt svg_gt</g> <td align="left"> changecom(,)&`#'62;changecom(`#')
243 <td width="10%"> m4tt svg_leq</g> <td align="left"> changecom(,)&`#'8804;changecom(`#')
244 <td width="10%"> m4tt svg_geq</g> <td align="left"> changecom(,)&`#'8805;changecom(`#')
245 <td width="10%"> m4tt svg_prime</g> <td align="left"> changecom(,)&`#'8242;changecom(`#')
246 </tr>
247 <tr>
248 <td width="10%"> m4tt svg_backsl</g> <td align="left"> changecom(,)&`#'92;changecom(`#')
249 <td width="10%"> m4tt svg_pound</g> <td align="left"> changecom(,)&`#'35;changecom(`#')
250 <td width="10%"> m4tt svg_comma</g> <td align="left"> changecom(,)&`#'44;changecom(`#')
251 <td width="10%"> m4tt svg_lparen</g> <td align="left"> changecom(,)&`#'40;changecom(`#')
252 <td width="10%"> m4tt svg_rparen</g> <td align="left"> changecom(,)&`#'41;changecom(`#')
253 <td width="10%"> m4tt svg_circ</g> <td align="left"> changecom(,)&`#'710;changecom(`#')
254 <td width="10%"> m4tt svg_deg</g> <td align="left"> changecom(,)&`#'176;changecom(`#')
255 <td width="10%"> m4tt svg_grave</g> <td align="left"> changecom(,)&`#'96;changecom(`#')
256 </tr>
257 </table>
258 <table cellpadding="2" cellspacing="0" width="75%" >
259 <tr>
260 <td width="10%"> m4tt svg_amp</g> <td width="25px"> changecom(,)&`#'38;changecom(`#')
261 <td width="8%"> m4tt svg_emsp</g> <td width="50px" align="left"> |changecom(,)&`#'8195;changecom(`#')|
262 <td width="8%"> m4tt svg_ensp</g> <td width="50px" align="left"> |changecom(,)&`#'8194;changecom(`#')|
263 <td width="8%"> m4tt svg_thinsp</g> <td width="50px" align="left"> |changecom(,)&`#'8201;changecom(`#')|
264 </tr>
265 </table>
266
267 </ul>
268 <li> Inkscape: It may be efficient to define elements by macro and to
269 place them using a wysiwyg graphics editor. A draft page intended
270 for Inkscape is included. A reasonable variety of elements is defined
271 but many more could be added and they should be customized for
272 particular applications. Adjustments may also have to be made to
273 obtain the proper snap-to actions.
274 <!--
275 <li> Link experiments: Click on the resistor or source of quickDPV
276 to go to external
277 files in new windows. Click on "n-port" in NportDPV to replace the diagram
278 and then "back" to return.
279 -->
280 <li> Some of the assumptions used to create this draft may be
281 na&`#'239;ve.
282 Comments are welcome.
283 </ul>
284
285 <!--
286 <embed pluginspage="http://www.adobe.com/svg/viewer/install/" />
287 -->
288
289 <hr>
290
291 <table>
292 <tr>
293 <td width="50%">
294 <p>
295 <IMG SRC="quickDPV.svg">
296 <br><br>
297 Fig. m4inx (<a href="quickDPV.txt" TYPE="text/plain" TARGET="_blank"
298 alt="quickDPV">quickDPV.m4</a>):
299 SVG produced by dpic changecom(,)&`#'8194;changecom(`#')
300 </p>
301 </td>
302 <td>
303 <p>
304 <IMG SRC="quick.svg">
305 <br><br>
306 (<a href="quick.txt" TYPE="text/plain" TARGET="_blank"
307 alt="quick">quick.m4</a>):
308 SVG produced from quick.pdf by dvisvgm changecom(,)&`#'8194;changecom(`#')
309 </p>
310 </td>
311 </table>
312
313 <hr>
314
315 ifelse(0,1,`
316 cfig(ResistorsDPV,
317 Resistors`,' showing some variations and the ebox)
318
319 cfig(CapacitorsDPV,
320 Capacitors)
321
322 cfig(InductorsDPV,
323 Inductors)
324
325 cfig(DiodesDPV,
326 Diodes: appending a m4tt`'K</g> to the second argument draws an open
327 arrowhead)
328
329 cfig(EmarrowsDPV,
330 Radiation arrows)
331
332 cfig(VariableDPV,
333 Arrows and marks for showing variability)
334
335 cfig(SourcesDPV,
336 Sources and source-like elements)
337
338 cfig(AmpTableDPV,
339 Macros m4tt`'amp`,' delay</g>`,' and m4tt`'integrator</g>)
340
341 cfig(FusesDPV,
342 Macros m4tt`'fuse</g>`,' m4tt`'cbreaker</g>`,' and m4tt`'jumper</g>)
343
344 cfig(MoreTableDPV,
345 Additional two-terminal elements)
346
347 cfig(GroundsDPV,
348 Ground symbols)
349
350 cfig(SwitchesDPV,
351 The switch macros; m4tt`'switch(`,'`,'`,'L|B|D,attribs)</g>
352 is a wrapper for m4tt`'lswitch</g>`,' m4tt`'bswitch</g>`,'
353 and m4tt`'dswitch</g>)
354
355 cfig(AntennasDPV,
356 Antenna symbols and the microstrip radial stub)
357
358 cfig(OpampDPV,
359 The opamp)
360
361 cfig(AudioDPV,
362 Audio elements)
363
364 cfig(XformDPV,
365 Some variations of the transformer element`,' drawing direction down)
366
367 cfig(NPDTDPV,
368 Double throw with the m4tt`'NPDT</g> macro)
369
370 cfig(ContactDPV,
371 A non-exhaustive sampling of m4tt`'contact</g> macro variations)
372
373 cfig(ContactsDPV,
374 The m4tt`'contacts</g> macro)
375
376 cfig(relaycoilDPV,
377 The m4tt`'relaycoil</g> macro)
378
379 cfig(RelayDPV,
380 Some variants of m4tt`'relay</g>)
381
382 cfig(JackDPV,
383 The m4tt`'jack</g> and m4tt`'plug</g> macros)
384
385 cfig(TstripDPV,
386 The m4tt`'tstrip`,' ccoax`,'</g> and m4tt`'tbox</g> macros)
387
388 cfig(ConnDPV,
389 The tconn</g> and m4tt`'Pconn</g> macros)
390
391 cfig(PconnDPV,
392 The m4tt`'pconnex</g> macro)
393
394 cfig(cbresistorDPV,
395 Color-coded through-hole resistors)
396
397 cfig(EVplugsDPV,
398 Electric vehicle charging plug patterns make extensive
399 use of key=value pairs to set options)
400
401 cfig(HeadersDPV,
402 The m4tt`'Header</g> macro)
403
404 ')
405 cfig(SocketsDPV,
406 Some connectors with simple geometry
407 and lists of labels)
408
409 ifelse(0,1,`
410 cfig(ChipsDPV,
411 IC outlines)
412
413 cfig(fetDPV,
414 FETs`,' showing programmable components and example customizations)
415
416 cfig(ujtDPV,
417 UJT examples)
418
419 cfig(ThyristorDPV,
420 Thyristor examples. The thyristor is a 3- or 4-terminal
421 composite element)
422
423 cfig(BipDPV,
424 Bipolar transistors (drawing direction: up))
425
426 cfig(TgateDPV,
427 The m4tt`'tgate</g> and m4tt`'ptrans</g> elements)
428
429 ')
430 cfig(NportDPV,
431 The m4tt`'nport</g> and m4tt`'nterm</g> macros)
432
433 ifelse(0,1,`
434 cfig(NLGDPV,
435 Some customizations of m4tt`'nport</g>)
436
437 cfig(WindingsDPV,
438 The macros
439 m4tt`'winding(L|R`,'diam`,'pitch`,'turns`,'core wid`,'"core color")</g>
440 and
441 m4tt`'arcwinding(diam`,'pitch`,'turns`,'core wid`,'"core color")</g>)
442
443 ')
444 cfig(ex01DPV,
445 Two simple labeled circuits)
446
447 ifelse(0,1,`
448 cfig(ex02DPV,
449 Elements at obtuse angles)
450
451 cfig(OptoisoDPV,
452 Optical isolator: a circuit with right or left orientation)
453
454 cfig(MixerDPV,
455 A balanced mixer`,' using m4tt`'mosfet</g> and a custom transformer)
456
457 cfig(PushPullDPV,
458 A push-pull mixer`,' showing FETs with multiple gates)
459
460 cfig(QuantumDPV,
461 Quantum circuits)
462
463 cfig(SixpoleDPV,
464 A six-pole filter)
465
466 cfig(ex18DPV,
467 Precision half-wave rectifier and a tunnel diode circuit
468 (illustrating m4tt`'opamp`,' diode`,' resistor`,' ground`,'</g>
469 and labels))
470
471 cfig(ex10DPV,
472 Non-planar graph and bistable circuit
473 (illustrating the m4tt`'crossover</g> macro and colored elements))
474
475 cfig(ThreeDPV,
476 Three-phase oscillator)
477
478 cfig(MCDPV,
479 A three-phase switched AC-AC converter and a DC-DC converter)
480
481 cfig(ex12DPV,
482 A CMOS NAND gate`,' a test circuit`,' and an XMOSFET example)
483
484 cfig(pwrsupplyDPV,
485 An elementary power supply circuit with colored elements`,'
486 and a multiple-winding transformer with 3-phase rectifier)
487
488 cfig(TTLnandDPV,
489 TTL NAND gate illustrating a transistor with multiple emitters)
490
491 cfig(I2LDPV,
492 Gate circuit and equivalent embedded components
493 illustrating multiple collectors)
494
495 cfig(SchottkyDPV,
496 A 4-input NAND circuit illustrating the m4tt`'S</g> (Schottky)
497 option of m4tt`'bi_trans</g>)
498
499 cfig(ex11DPV,
500 Transistor radio audio chain)
501
502 cfig(ex04DPV,
503 Labels on non-manhattan elements)
504
505 ')
506 cfig(CsourceDPV,
507 Realization of a controlled source
508 (illustrating stacked element labels))
509
510 cfig(AudioAmpDPV,
511 A 50 W audio amplifier)
512
513 ifelse(0,1,`
514 cfig(DriveDPV,
515 Synchronous machine driven by variable-speed drive and rectifier)
516
517 cfig(ex16DPV,
518 A rate 1/2 binary convolutional coder and its state diagram)
519
520 cfig(ex03DPV,
521 Digital filter)
522
523 cfig(LadderDPV,
524 Ladder-logic elements)
525
526 cfig(MotorControlDPV,
527 Motor control connections)
528
529 cfig(RectifiersDPV,
530 Rectifier circuits and waveforms)
531
532 ')
533 cfig(HeathkitDPV,
534 The power supply of a Heathkit AR-15 (Now`,' <i>that</i>
535 was a receiver!) with custom transformer and other elements`,'
536 drawn on a grid (partially shown) to aid in placement)
537
538 ifelse(0,1,`
539 cfig(lcctDPV,
540 A digital circuit of moderate size`,'
541 redrawn from M. P. Maclenan and G. M. Burns`,'
542 "An Approach to Drawing Circuit Diagrams for Text Books`,'"
543 Tugboat (12)1`,' March 1991`,' pp. 66-69)
544
545 cfig(TubediagsDPV,
546 Electron-tube diagrams: a few bottom-view base diagrams`,'
547 a generic triode test circuit`,' and a 25-watt audio amplifier adapted
548 from F. Langford-Smith`,' <i>Radiotron Designers Handbook</i>`,' fourth
549 edition`,' Harrison`,' NJ: Radio Corporation of America`,' 1952)
550
551 cfig(UNODPV,
552 An Arduino UNO circuit adapted and redrawn)
553
554 cfig(sfgDPV,
555 Signal-flow graphs)
556
557 cfig(LogicDPV,
558 Basic logic gates)
559
560 cfig(ex08DPV,
561 General-purpose latch: a small logic circuit)
562
563 cfig(DecoderDPV,
564 Decoder logic`,' constructed using the m4tt`'for_</g> macro)
565
566 cfig(ex21DPV,
567 Some flip-flops)
568
569 cfig(MultiplexerDPV,
570 Multiplexer)
571
572 cfig(DemultiplexerDPV,
573 Demultiplexer)
574
575 cfig(ShiftRDPV,
576 A 5-bit shift register drawn using a custom flip-flop)
577
578 cfig(AdderDPV,
579 A full adder and a cascade of n-bit adders)
580
581 cfig(CanLogicDPV,
582 A way of automatically drawing two-layer logic diagrams)
583
584 cfig(AlogixDPV,
585 The m4tt`'Autologix(`'<i>Boolean expression</i>;
586 <i>Boolean expression</i>... `,' <i>options</i>)</g>
587 macro automatically draws Boolean expressions in function notation.
588 The function tree is drawn`,' then a row or column of inputs`,' then
589 the connections. The default result is on the left`,'
590 a custom element at the top`,' and a tree of gates only is shown
591 on the right.)
592
593 cfig(ABlogixDPV,
594 The m4tt`'Autologix</g> macro can draw inputs on the left but
595 the added drawing complexity may require hand tuning with
596 second-argument options: m4tt`'L</g> puts the inputs on the left`,'
597 m4tt`'R reverses their order`,' m4tt`'V</g> scans the input arguments
598 in reverse order`,' and m4tt`'offset=</g>`'<i>value</i> displaces
599 the array of inputs)
600
601 cfig(XORDPV,
602 Realizations of the XOR function using m4tt`'Autologix</g>)
603
604 ')
605 cfig(EEPDPV,
606 Part of a single-line diagram of a power distribution system
607 using draft elements)
608
609 ifelse(0,1,`
610 cfig(ex05DPV,
611 Use of m4tt`'darrow</g> and m4tt`'Darc</g>)
612
613 cfig(GrayCodeDPV,
614 Gray code 10-bit encoder disk pattern`,'
615 and a crossbar switch)
616
617 ')
618 cfig(controlDPV,
619 Control-system block diagrams)
620
621 cfig(ByteDPV,
622 Elementary splines)
623
624 cfig(SevensegmentDPV,
625 A customizable seven-segment display showing the numbered segments with
626 a custom shape and the numerals from 0 to 9)
627
628 ifelse(0,1,`
629 cfig(RotboxDPV,
630 The macro
631 m4tt`'rotbox(<i>wid,ht,type,</i>[r|t=<i>val</i>])</g>
632 draws a box in the current direction)
633
634 cfig(ex06DPV,
635 Crosshatching)
636
637 cfig(GeometryDPV,
638 Plane geometry examples)
639
640 cfig(LoglogDPV,
641 Graphs drawn using the pic language)
642
643 cfig(SmithchartDPV,
644 A Smith chart)
645
646 cfig(ex09DPV,
647 Illustrating the macro
648 m4tt`'dimension_(<i>linespec`,' offset`,' label`,' </i>
649 H|W|D|<i>blank width</i>`,' <i>tic offset</i>`,' <-|->)</g>.
650 A negative second argument implies an offset to the right of the
651 <i>linespec</i> direction. A <i>label</i> starting with
652 m4tt`'"</g> or
653 m4tt`'sprintf</g> is copied literally. If <i>label</i> is an
654 m4tt`'s_box(...)</g> then setting argument 4 to m4tt`'H</g>`,'
655 m4tt`'W</g>`,'
656 or m4tt`'D</g> tailors the blank width to the m4tt`'s_box</g> height`,'
657 width`,' or diagonal respectively; i.e.`,' m4tt`'W</g> is equivalent to
658 m4tt`'s_wd+textoffset*2</g>.
659 The macro m4tt`'arcdimension_</g> is similar but the first argument
660 specifies the arc to be dimensioned and the second argument is
661 the outward radial offset of the dimension arrow arc.)
662
663 cfig(PlateDPV,
664 Dimensioning with tolerances according to ASME Y14.5)
665 Use of m4tt`'darrow</g> and m4tt`'Darc</g>)
666
667 cfig(randomDPV,
668 Testing random number generation
669 using dpic macro
670 m4tt`'randn(</g><g
671 style="font-family:italic">array name`,' mean`,' std dev</g>m4tt`')</g>
672 which calls dpic built-in m4tt`'rand()</g>)
673
674 cfig(expDPV,
675 Test of m4tt`'project</g> and other m4tt`'lib3D</g>
676 macros`,' showing the projection of a solid onto
677 the <i>y1`,'z1</i> plane by sighting along the x1 axis.)
678
679 cfig(graysurfDPV,
680 Plotting surfaces using gray scales)
681
682 cfig(shapesDPV,
683 Basic shapes)
684
685 cfig(cscDPV,
686 Conestoga Sailing Club (illustrating the filling of arbitrary shapes)`,'
687 and an antique clock face with shading and rotated text)
688
689 cfig(roseDPV,
690 A window redrawn from a detail of the set design for the musical
691 <i>Dracula</i>`,' used for testing m4tt`'dpic</g>`,'
692 and an experimental halftone. This diagram
693 consumes much LaTeX main memory but can be produced
694 directly as pdf using m4tt`'dpic -d</g>`,'
695 as svg using m4tt`'dpic -v</g>`,'
696 or as postscript using m4tt`'dpic -r</g>
697 since no text formatting is required)
698
699 cfig(diamondDPV,
700 Variations on M. Goossens`,' S. Rahtz`,' and F. Mittelbach`,'
701 <i>The LaTeX Graphics Companion</i>`,' Addison-Wesley 1997`,' pp. 57-58)
702
703 cfig(wormDPV,
704 An exercise in calculating RGB colours)
705
706 cfig(ButtonsDPV,
707 Shading in color)
708
709 cfig(keyboardDPV,
710 More objects drawn in relief)
711
712 cfig(DiniDPV,
713 Dini surface`,' an icosahedron`,' and a sphere with inscribed cylinder)
714
715 cfig(SierpinskiDPV,
716 The Sierpinski triangle and a Cayley graph:
717 tests of pic macro recursion)
718
719 cfig(EscherDPV,
720 Penrose stairs and an Escher-like object)
721
722 cfig(recycleDPV,
723 Modest repetition and partial fill)
724
725 cfig(ex15DPV,
726 Simple diagrams that are easily drawn by looping)
727
728 <!--
729 #fig(CountingDPV,
730 # An example of enumeration)
731 -->
732
733 cfig(CrowDPV,
734 Illustrating m4tt`'shadebox</g> and a custom crowfoot line
735 termination)
736
737 ')
738 cfig(FlowDPV,
739 A flowchart sampler)
740 <!-- <p>
741 More flow-chart examples? Try
742 <a href="https://buraphakit.sourceforge.io/EFI/EFI_2019_S2_W13.shtml"
743 TARGET="_blank">here.</a>
744 </p> -->
745
746 ifelse(0,1,`
747 cfig(BtreeDPV,
748 Trees)
749
750 cfig(InclepsDPV,
751 Overlaying a figure with line graphics,,OBJECT)
752 ')
753
754 cfig(paletteDPV,
755 A draft palette of a few elements for Inkscape using
756 a 1 mm grid)
757
758 cfig(FontsDPV,
759 Available fonts)
760
761 </td>
762 </tr>
763 </table>
764 </BODY>
765 </HTML>