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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
|
% The format of this file must be strictly retained to avoid problems
% in the generation of examples.html
\bfig{
\centerline{\getpic{quick}}
\caption{The quick-start example from the manual
\src{quick.m4}.}
}
\bfig{
\centerline{{\small\getpic{CctTable}}}
\caption{Two-terminal elements, showing some variations
\src{CctTable.m4}.}
}
\bfig{
\centerline{\getpic{Diodes}}
\caption{Diodes: a {\tt K} in the second argument draws an open arrowhead
\src{Diodes.m4}.}
}
\bfig{
\centerline{\getpic{Emarrows}}
\caption{Radiation arrows
\src{Emarrows.m4}.}
}
\bfig{
\centerline{\getpic{Sources}}
\caption{Sources and source-like elements
\src{Sources.m4}.}
}
\bfig{
\centerline{\getpic{Variable}}
\caption{Arrows and marks indicating variability
\src{Variable.m4}.}
}
\bfig{
\centerline{\getpic{AmpTable}}
\caption{Macros {\tt amp}, {\tt delay}, and {\tt integrator}
\src{AmpTable.m4}.}
}
\bfig{
\centerline{\getpic{Fuses}}
\caption{Macros {\tt fuse} and {\tt cbreaker}
\src{Fuses.m4}.}
}
\bfig{
\centerline{\getpic{Switches}}
\caption{The switch macros; {\tt switch(,,,L|B|D)} is a wrapper
for {\tt lswitch}, {\tt bswitch}, and {\tt dswitch}
\src{Switches.m4}.}
}
\bfig{
\centerline{\getpic{Grounds}}
\caption{Ground symbols
\src{Grounds.m4}.}
}
\bfig{
\centerline{\getpic{Antennas}}
\caption{Antenna symbols
\src{Antennas.m4}.}
}
\bfig{
\centerline{\getpic{Audio}}
\caption{Audio elements
\src{Audio.m4}.}
}
\bfig{
{\small\centerline{\getpic{Opamp}} }
\caption{The opamp
\src{Opamp.m4}.}
}
\bfig{
{\small\centerline{\getpic{Xform}} }
\caption{The transformer element, drawing direction down
\src{Xform.m4}.}
}
\bfig{
\centerline{\getpic{Relay}}
\caption{The {\tt contact} and {\tt relay} macros
\src{Relay.m4}.}
}
\bfig{
\centerline{\getpic{NPDT}}
\caption{Double throw with the {\tt NPDT} macro
\src{NPDT.m4}.}
}
\bfig{
\centerline{\getpic{Jack}}
\caption{The {\tt jack} and {\tt plug} macros
\src{Jack.m4}.}
}
\bfig{
\centerline{\getpic{Conn}}
\caption{The {\tt tstrip}, {\tt ccoax}, {\tt tconn}, and {\tt tbox} macros
\src{Conn.m4}.}
}
\bfig{
\centerline{\getpic{Pconn}}
\caption{The {\tt pconnex} macro
\src{Pconn.m4}.}
}
\bfig{
\centerline{\getpic{Headers}}
\caption{The {\tt Header} macro
\src{Headers.m4}.}
}
\bfig{
\centerline{\getpic{fet}}
\caption{FETs, showing programmable components and example customizations
\src{fet.m4}.}
}
\bfig{
\centerline{\getpic{ujt}}
\caption{UJT examples
\src{ujt.m4}.}
}
\bfig{
\centerline{\getpic{thyristor}}
\caption{Thyristor examples
\src{thyristor.m4}.}
}
\bfig{
\centerline{\getpic{Bip}}
\caption{Bipolar transistors (drawing direction: up)
\src{Bip.m4}.}
}
\bfig{
\centerline{\getpic{Tgate}}
\caption{The {\tt tgate} and {\tt ptrans} elements
\src{Tgate.m4}.}
}
\bfig{
\centerline{\getpic{Nport}}
\caption{The {\tt nport} and {\tt nterm} macros
\src{Nport.m4}.}
}
\bfig{
\centerline{\getpic{NLG}}
\caption{Some customizations of {\tt nport}
\src{NLG.m4}.}
}
\bfig{
\centerline{\getpic{Windings}}
\caption{The macro
{\tt winding(L|R,diam,pitch,turns,core wid,core color)}
\src{Windings.m4}.}
}
\bfig{
\centerline{\getpic{ex01}\quad
\getpic{Timer}}
\caption{Two simple labeled circuits
\src{ex01.m4}%
\src{Timer.m4}.}
}
\bfig{
{\small\centerline{\getpic{Optoiso}} }
\caption{Optical isolator: a circuit with right or left orientation
\src{Optoiso.m4}.}
}
\bfig{
\centerline{\getpic{Mixer}}
\caption{A balanced mixer, using {\tt mosfet} and a custom transformer
\src{Mixer.m4}.}
}
\bfig{
\centerline{\getpic{PushPull}}
\caption{A push-pull mixer, showing FETs with multiple gates
\src{PushPull.m4}.}
}
\bfig{
\centerline{\getpic{Quantum}}
\caption{A quantum circuit
\src{Quantum.m4}.}
}
\bfig{
\centerline{\getpic{SQUID}}
\caption{Superconducting quantum interface device (drawing direction down)
\src{SQUID.m4}.}
}
\bfig{
\centerline{\getpic{Sixpole}}
\caption{A six-pole filter
\src{Sixpole.m4}.}
}
\bfig{
\centerline{\getpic{ex18}}
\caption{Precision half-wave rectifier and a tunnel diode circuit
(illustrating {\tt opamp, diode, resistor, ground,} and labels)
\src{ex18.m4}.}
}
\bfig{
\centerline{\getpic{MC}}
\caption{A three-phase switched AC-AC converter
\src{MC.m4}.}
}
\bfig{
\centerline{\getpic{ex10}}
\caption{Non-planar graph and bistable circuit
(illustrating the {\tt crossover} macro and colored elements)
\src{ex10.m4}.}
}
\bfig{
\centerline{\getpic{Three}}
\caption{Three-phase oscillator
\src{Three.m4}.}
}
\bfig{
\centerline{\getpic{ex17}}
\caption{A repetitive network created by Pic looping and
a skewed circuit used to test the macro {\tt parallel\_}
\src{ex17.m4}.}
}
\bfig{
\centerline{\getpic{ex12}}
\caption{ A CMOS NAND gate, a test circuit, and an XMOSFET example
\src{ex12.m4}.}
}
\bfig{
\centerline{\getpic{pwrsupply}}
\caption{An elementary power supply circuit with colored elements,
and a multiple-winding transformer with 3-phase rectifier
\src{pwrsupply.m4}.}
}
\bfig{
\centerline{\getpic{TTLnand}}
\caption{ TTL NAND gate illustrating a transistor with multiple emitters
\src{TTLnand.m4}.}
}
\bfig{
\centerline{\getpic{I2L}}
\caption{ Gate circuit and equivalent embedded $I^2L$ components
illustrating multiple collectors
\src{I2L.m4}.}
}
\bfig{
\centerline{\getpic{Schottky}}
\caption{ A 4-input NAND circuit illustrating the {\tt S} (Schottky)
option of {\tt bi\_trans}
\src{Schottky.m4}.}
}
\bfig{
\centerline{\getpic{ex11}}
\caption{Transistor radio audio chain
\src{ex11.m4}.}
}
\bfig{
\centerline{\getpic{ex04}}
\caption{Labels on non-manhattan elements
\src{ex04.m4}.}
}
\bfig{
\centerline{\getpic{Csource}}
\caption{Realization of a controlled source
(illustrating stacked element labels)
\src{Csource.m4}.}
}
\bfig{
\centerline{\getpic{Drive}}
\caption{Synchronous machine driven by variable-speed drive and rectifier
\src{Drive.m4}.}
}
\bfig{
\centerline{\getpic{ex16}}
\caption{A rate $1/2$ binary convolutional coder and its state diagram
\src{ex16.m4}.}
}
\bfig{
\centerline{\getpic{ex03}}
\caption{Digital filter
\src{ex03.m4}.}
}
\bfig{
\centerline{\getpic{MotorControl}}
\caption{Motor control connections
\src{MotorControl.m4}.}
}
\bfig{
\centerline{\getpic{ex02}}
\caption{Elements at obtuse angles
\src{ex02.m4}.}
}
\bfig{
\centerline{\getpic{Rectifiers}}
\caption{Rectifier circuits and waveforms
\src{Rectifiers.m4}.}
}
\begin{sidewaysfigure} %\rotatebox{90}{% \begin{landscape} %ignore%
\bfig{
\centerline{\hspace*{2cm}\getpic{Heathkit}}
\caption{The power supply of a Heathkit AR-15 (Now, {\em that}
was a receiver!) with custom transformer and other elements,
drawn on a grid (partially shown) to aid in placement
\src{Heathkit.m4}.}
}
\end{sidewaysfigure} %}% \end{landscape}
\begin{sidewaysfigure} %\rotatebox{90}{% \begin{landscape} %ignore%
\bfig{
\centerline{\hspace*{2cm}\getpic{lcct}}
\caption{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
\src{lcct.m4}.}
}
\end{sidewaysfigure} %}% \end{landscape}
\bfig{
\centerline{\getpic{sfg}}
\caption{Signal-flow graphs
\src{sfg.m4}.}
}
\bfig{
\centerline{\getpic{Logic}}
\caption{Basic logic gates
\src{Logic.m4}.}
}
\bfig{
\centerline{\getpic{ex08}}
\caption{General-purpose latch: a small logic circuit
\src{ex08.m4}.}
}
\bfig{
\centerline{\getpic{Decoder}}
\caption{Decoder logic, constructed using the {\tt for\_} macro
\src{Decoder.m4}.}
}
\bfig{
\centerline{\getpic{ex21}}
\caption{Some flip-flops
\src{ex21.m4}.}
}
\bfig{
\centerline{\getpic{Multiplexer}}
\caption{Multiplexer
\src{Multiplexer.m4}.}
}
\bfig{
\centerline{\getpic{Demultiplexer}}
\caption{Demultiplexer
\src{Demultiplexer.m4}.}
}
\bfig{
\centerline{\getpic{ShiftR}}
\caption{A 5-bit shift register drawn using a custom flip-flop
\src{ShiftR.m4}.}
}
\bfig{
\centerline{\getpic{Adder}}
\caption{A full adder and a cascade of $n$-bit adders
\src{Adder.m4}.}
}
\bfig{
\centerline{\getpic{CanLogic}}
\caption{A way of automatically drawing two-layer logic diagrams
\src{CanLogic.m4}.}
}
\bfig{
\centerline{\getpic{Alogix}}
\caption{The {\tt Autologix(}{\sl Boolean expression};
{\sl Boolean expression}... , {\sl options}{\tt )}
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.
\src{Alogix.m4}.}
}
\bfig{
\centerline{\getpic{ABlogix}}
\caption{The {\tt Autologix} macro can draw inputs on the left but
the added drawing complexity may require hand tuning with
second-argument options: {\tt L} puts the inputs on the left,
{\tt R} reverses their order, {\tt V} scans the input arguments
in reverse order, and {\tt offset=}{\sl value} displaces the array
of inputs
\src{ABlogix.m4}.}
}
\bfig{
\centerline{\getpic{XOR}}
\caption{Realizations of the XOR function using {\tt Autologix}
\src{XOR.m4}.}
}
\bfig{
\centerline{\getpic{ex00}}
\caption{Line diagrams
\src{ex00.m4}.}
}
\bfig{
\centerline{\getpic{Crossbar}}
\caption{A crossbar switch
\src{Crossbar.m4}.}
}
\bfig{
\centerline{\getpic{Byte}}
\caption{Elementary splines
\src{Byte.m4}.}
}
\bfig{
\centerline{\getpic{Rotbox}}
\caption{The macro
{\tt rotbox(}{\sl wid,ht,type,}{\tt [r|t=}{\sl val}{\tt ])}
draws a box in the current direction
\src{Rotbox.m4}.}
}
\bfig{
\centerline{\getpic{exp}}
\caption{Test of {\tt project} and other {\tt lib3D}
macros, showing the projection of a solid onto
the $y_1,z_1$ plane by sighting along the $x_1$ axis.
\src{exp.m4}.}
}
\bfig{
\centerline{\getpic{graysurf}}
\caption{Plotting surfaces using gray scales. A sort algorithm
determines plotting order
\src{graysurf.m4}.}
}
\bfig{
\centerline{\getpic{shapes}}
\caption{Basic shapes
\src{shapes.m4}.}
}
\bfig{
\centerline{\getpic{ex09}}
\caption{Illustrating the macro
{\tt dimension\_(}{\sl linespec}, {\sl offset}, {\sl label},
{\tt D|H|W|}{\sl blank width}, {\sl tic offset},{\tt <-|->)}.
A negative second argument implies an offset to the right of the
{\sl linespec} direction. A {\sl label} starting with {\tt "} or
{\tt sprintf} is copied literally. If {\sl label} is an
{\tt s\_box(...)} then setting argument 4 to {\tt H}, {\tt W}, or
{\tt D} tailors the blank width to the {\tt s\_box} height, width, or
diagonal respectively; i.e.,\ {\tt W} is equivalent to
{\tt s\_wd+textoffset*2}.
The macro {\tt 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.
\src{ex09.m4}.}
}
\bfig{
\centerline{\getpic{ex05}}
\caption{Use of {\tt darrow}
\src{ex05.m4}.}
}
\bfig{
\centerline{\getpic{control}}
\caption{Control-system block diagrams that do not require m4
\src{control.m4}.}
}
\bfig{
\centerline{\getpic{ex06}}
\caption{Crosshatching by {\tt for} loops
\src{ex06.m4}.}
}
\bfig{
\centerline{\getpic{Loglog}}
\caption{A graph drawn using the pic language
\src{Loglog.m4}.}
}
\bfig{
\centerline{\getpic{random}}
\caption{Testing random numbers
\src{random.m4}.}
}
\bfig{
\centerline{\getpic{csc}}
\caption{Conestoga Sailing Club (illustrating the filling of arbitrary
shapes)
\src{csc.m4}.}
}
\bfig{
\centerline{\getpic{rose}}
\caption{Redrawn from a detail of the set design for the musical
{\it Dracula,} used for testing {\tt dpic}. This diagram
consumes much \LaTeX\ main memory but can be produced
directly as pdf using \hbox{\tt dpic -d},
as svg using \hbox{\tt dpic -g},
or as postscript using \hbox{\tt dpic -r}
since no text formatting is required
\src{rose.m4}.}
}
\bfig{
\centerline{\getpic{diamond}}
\caption{Variations on M.~Goossens, S.~Rahtz, and F.~Mittelbach,
{\em The \LaTeX\ Graphics Companion,} Addison-Wesley 1997, pp.\ 57-58
\src{diamond.m4}.}
}
\bfig{
\centerline{\getpic{worm}}
\caption{An exercise in calculating RGB colours
\src{worm.m4}.}
}
\bfig{
\centerline{\getpic{Buttons}}
\caption{Shading in color
\src{Buttons.m4}.}
}
\bfig{
\centerline{\getpic{Sierpinski}}
\caption{The Sierpinski triangle: a test of pic macro recursion
\src{Sierpinski.m4}.}
}
\bfig{
\centerline{\getpic{recycle}}
\caption{Modest repetition and partial fill
\src{recycle.m4}.}
}
\bfig{
\centerline{\getpic{ex15}}
\caption{Simple diagrams that are easily drawn by looping
\src{ex15.m4}.}
}
\bfig{
\centerline{\getpic{Counting}}
\caption{An example of enumeration
\src{Counting.m4}.}
}
\bfig{
\centerline{\getpic{Crow}}
\caption{Illustrating {\tt shadebox} and a custom crowfoot line termination
\src{Crow.m4}.}
}
\bfig{
\centerline{\getpic{Flow}}
\caption{A flowchart sampler
\src{Flow.m4}.}
}
\bfig{
\centerline{\getpic{Btree}}
\caption{A binary tree
\src{Btree.m4}.}
}
\bfig{
\centerline{\getpic{Ttree}}
\caption{Another tree
\src{Ttree.m4}.}
}
% Overlaying a figure with line graphics depends on the postprocessor:
\ifpst% PSTricks
\bfig{%
\centerline{\getpic{Incleps}}%
\caption{Overlaying a figure with line graphics
\src{Incleps.m4}.}%
}
\else\ifpgf% PGF
\bfig{%
\centerline{\getpic{Incleps}}% %ignore%
\caption{Overlaying a figure with line graphics %ignore%
\src{Incleps.m4}.}%
}
\else\ifmpost% MetaPost
\bfig{%
\centerline{\boxdims{InclA}{%ignore%
\includegraphics[width=3in]{../Incl.eps.gz}}%
\hspace*{-3in}\includegraphics{Inclpdf.1}}%
\caption{Overlaying a figure with line graphics %ignore%
\src{Inclpdf.m4}.}
}
\else\ifpdfl% pdflatex
\bfig{%
\centerline{\boxdims{InclA}{%ignore%
\includegraphics[width=3in]{../Incl}}%
\hspace*{-3in}\includegraphics{Inclpdf}}%
\caption{Overlaying a figure with line graphics %ignore%
\src{Inclpdf.m4}.}
}
\else\ifpostscript% Postscript with psfrag (.eps.gz not allowed)
\bfig{%
\centerline{\boxdims{InclA}{%ignore%
\includegraphics[width=3in]{Incl.eps}}%
\hspace*{-3in}\includegraphics{Inclpdf.eps}}%
\caption{Overlaying a figure with line graphics %ignore%
\src{Inclpdf.m4}.}
}
\fi\fi\fi\fi\fi
\end{document}
|