summaryrefslogtreecommitdiff
path: root/graphics/circuit_macros/doc/defines.tex
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/circuit_macros/doc/defines.tex')
-rw-r--r--graphics/circuit_macros/doc/defines.tex85
1 files changed, 61 insertions, 24 deletions
diff --git a/graphics/circuit_macros/doc/defines.tex b/graphics/circuit_macros/doc/defines.tex
index 8e21bba0ec..cb3a1a5dae 100644
--- a/graphics/circuit_macros/doc/defines.tex
+++ b/graphics/circuit_macros/doc/defines.tex
@@ -34,6 +34,13 @@
\macrodef{abs\_}{abs_}{({\sl number})}
{gen}
{absolute value function}
+\macrodef{ACsymbol}{ACsymbol}{(at {\sl position, len, ht,}
+ [A]U|D|L|R|{\sl degrees}) }
+ {cct}
+ {draw an AC symbol ( 1-cycle sine wave); If arg 4 contains A, two arcs
+ are drawn. The current drawing direction is default, otherwise Up, Down,
+ Left, Right, or at {\sl degrees} slant; e.g.,
+ {\tt ebox; $\lbrace$ ACsymbol(at last [],{,}dimen\_/8) $\rbrace$} }
\macrodef{adc}{adc}{({\sl width,height,nIn,nN,nOut,nS})}
{cct}
{ADC with defined width, height, and number of inputs {\tt In$i$},
@@ -630,6 +637,7 @@ B|CR|D|G|L|LE[R]|P[R]|S|Sh|T|V|v|w|Z|chars,%
MMR = momentary contact on make and release,
O = hand operation button,
P = pushbutton,
+ Pr{\tt [T|M]} = proximity (touch-sensitive or magnetically controlled),
Th = thermal control linkage,
Tr = tripping,
Y = pull switch,
@@ -769,7 +777,7 @@ B|CR|D|G|L|LE[R]|P[R]|S|Sh|T|V|v|w|Z|chars,%
\macrodef{fuse}{fuse}{({\sl linespec, type, wid, ht})}
{cct}
{fuse symbol, type$=$
- {\tt A|B|C|D|S|HB|HC} or {\tt dA=D}\seesect{Twoterminal:}}
+ {\tt A|B|C|D|S|HB|HC|SB} or {\tt dA=D}\seesect{Twoterminal:}}
\macrodef{g\_}{g_}{}
{gen}
{green color value}
@@ -801,12 +809,14 @@ B|CR|D|G|L|LE[R]|P[R]|S|Sh|T|V|v|w|Z|chars,%
\macrodef{grid\_}{grid_}{({\sl x},{\sl y})}
{log}
{absolute grid location}
-\macrodef{ground}{ground}{(at {\sl location}, T, N|F|S|L|P|E, U|D|L|R|{\sl
+\macrodef{ground}{ground}{(at {\sl location}, T, N|F|S|L|P[A]|E, U|D|L|R|{\sl
degrees})}
{cct}
{ ground, without stem for nonblank 2nd arg;
{\tt N}=normal, {\tt F}=frame, {\tt S}=signal, {\tt L}=low-noise,
- {\tt P}=protective, {\tt E}=European; up, down, left, right, or angle
+ {\tt P}=protective,
+ {\tt PA}=protective alternate,
+ {\tt E}=European; up, down, left, right, or angle
from horizontal (default -90)
\seesect{Composite:}}
\macrodef{gshade}{gshade}{({\sl gray value},A,B,...,Z,A,B)}
@@ -821,9 +831,13 @@ B|CR|D|G|L|LE[R]|P[R]|S|Sh|T|V|v|w|Z|chars,%
\macrodef{H\_ht}{H_ht}{}
{log}
{hysteresis symbol dimension in {\tt L\_unit}s}
-\macrodef{Header}{Header}{(1|2,{\sl rows,wid,ht,type})}
+\macrodef{Header}{Header}{(1|2,{\sl rows,wid,ht,box attributes})}
{log}
- {Header block with 1 or 2 columns and square Pin 1
+ {Header block with 1 or 2 columns and square Pin 1:
+ arg1 = number of columns;
+ arg2 = pins per column;
+ arg3,4 = custom wid, ht;
+ arg5 = e.g., {\tt fill\_(0.9)}
\seesect{Composite:}}
\macrodef{HeaderPin}{HeaderPin}{({\sl location, type, Picname},%
n|e|s|w,{\sl length})}
@@ -981,13 +995,19 @@ n|e|s|w,{\sl length})}
\macrodef{lg\_bartxt}{lg_bartxt}{}
{log}
{draws an overline over logic-pin text (except for xfig)}
-\macrodef{lg\_pin}{lg_pin}{({\sl location, logical name, pin label},
+\macrodef{lg\_pin}{lg_pin}{({\sl location, label, Picname},
n|e|s|w[L|M|I|O][N][E], {\sl pinno, optlen})}
{log}
- {comprehensive logic pin; {\tt n|e|s|w}=direction,
- {\tt L}=active low out, {\tt M}=active low in,
- {\tt I}=inward arrow, {\tt O}=outward arrow,
- {\tt N}=negated, {\tt E}=edge trigger}
+ {comprehensive logic pin;
+ {\sl label}= text (indicating logical pin function, usually),
+ {\sl Picname}= pic label for referring to the pin (line),
+ {\tt n|e|s|w}=orientation (north, south, east, west),
+ {\tt L}=active low out,
+ {\tt M}=active low in,
+ {\tt I}=inward arrow,
+ {\tt O}=outward arrow,
+ {\tt N}=negated,
+ {\tt E}=edge trigger}
\macrodef{lg\_pintxt}{lg_pintxt}{}
{log}
{reduced-size text for logic pins}
@@ -1030,7 +1050,8 @@ n|e|s|w,{\sl length})}
value2, $\ldots$})}
{gen}
{Repeat {\sl actions} with {\sl variable} set successively to
- {\sl value1, value2, $\ldots$}, setting macro {\tt m4Lx} to 1, 2, $\ldots$}
+ {\sl value1, value2, $\ldots$}, setting macro {\tt m4Lx} to 1, 2, $\ldots$,
+ terminating if {\sl variable} is nul}
\macrodef{lp\_xy}{lp_xy}{}
{log}
{coordinates used by {\tt lg\_pin}}
@@ -1077,9 +1098,11 @@ n|e|s|w,{\sl length})}
\macrodef{memristor}{memristor}{({\sl linespec, wid, ht})}
{cct}
{memristor element\seesect{Twoterminal:}}
-\macrodef{microphone}{microphone}{( U|D|L|R|{\sl degrees, size})}
+\macrodef{microphone}{microphone}{( A|U|D|L|R|{\sl degrees, size})}
{cct}
- {microphone, {\sl In1} to {\sl In3} defined
+ {microphone; if arg1 = A: upright mic, otherwise arg1 sets direction
+ of standard microphone with
+ {\sl In1} to {\sl In3} defined
\seesect{Composite:}}
\macrodef{Min}{Min}{({\sl arg, arg, $\ldots$})}
{gen}
@@ -1114,6 +1137,7 @@ n|e|s|w,{\sl length})}
{\tt L:} G pin to channel (obsolete);
{\tt [u][d]M:} G pin to channel; u: at drain end; d: at source end
{\tt [u][d]M{\sl n}:} multiple gates G0 to G{\sl n}
+ {\tt Py:} parallel diode;
{\tt Pz:} parallel zener diode;
{\tt Q:} connect B pin to S pin;
{\tt R:} thick channel;
@@ -1278,6 +1302,9 @@ nw,nn,ne,ns,pin lgth,style, other commands})}
%\macrodef{par\_}{par_}{({\sl element},{\sl element},{\sl separation})}
% {cct}
% {two same-direction, same-length elements in parallel}
+\macrodef{proximity}{proximity}{(\sl linespec)}
+ {cct}
+ {proximity detector (= {\tt consource(,P)})}
\macrodef{pc\_\_}{pc__}{}
{gen}
{absolute points}
@@ -1659,15 +1686,22 @@ nw,nn,ne,ns,pin lgth,style, other commands})}
e.g., to draw a dashed sine curve, amplitude {\sl a}, of {\sl n} cycles
of length {\sl x} from {\sl A},
{\tt sinusoid(a,twopi\_*n/x,-pi\_/2,0,x,dashed) with .Start at A}}
-\macrodef{source}{source}{(\linespec,V|v|I|i|AC|B|F|G|H|Q|L|N|P|S|T|X|U|{\sl
- other},{\sl diameter},R)}
- {cct}
- {source, blank or voltage (2 types), current (2 types), AC,
- or type F, G, Q, B, L, N, X or labelled,
- H = step (Heaviside),
- P = pulse, U = square, R = ramp,
- S = sinusoid, T = triangle; other = custom interior label or waveform,
- R = reversed polarity \seesect{Twoterminal:}}
+\macrodef{source}{source}{(\linespec,
+ V|v|I|i|AC|B|F|G|H|J|Q|L|N|P|S[C[r]]|E[r]]|T|X|U|{\sl other},
+ {\sl diameter},R)}
+ {cct}
+ {source, blank or:
+ V = voltage source; v = alternate voltage source;
+ I = current source; i = alternate current source;
+ AC = AC source; B = bulb; F = fluorescent; G =
+ generator; H = step function; L = lamp;
+ N = neon; P = pulse; Q = charge; R = ramp; r = right
+ orientation; S = sinusoid; SC = quarter arc; SE =
+ arc; T = triangle; U = square-wave; X = interior X;
+ other = custom interior label or waveform;
+ arg 4: R = reversed polarity;
+ arg 5 modifies the circle with e.g., color or fill
+ \seesect{Twoterminal:}}
\macrodef{sourcerad\_}{sourcerad_}{}
{cct}
{default source radius}
@@ -1881,11 +1915,14 @@ nw,nn,ne,ns,pin lgth,style, other commands})}
{gen}
{set current direction up \seesect{Placing:}}
\macrodef{variable}{variable}{(`{\sl element}',
- {\tt [A|P|L|[u]N][C|S]},{\sl angle},{\sl length})}
+ {\tt [A|P|L|[u]N|[u]NN][C|S]},{\sl angle},{\sl length})}
{cct}
{overlaid arrow or line to indicate variable 2-terminal element:
{\tt A}=arrow, {\tt P}=preset,
- {\tt L}=linear, {\tt N}=nonlinear, {\tt C}=continuous, {\tt S}=setpwise
+ {\tt L}=linear,
+ {\tt N}= symmetric nonlinear,
+ {\tt C}=continuous, {\tt S}=setpwise; {\tt u} changes the
+ nonlinearity direction
\seesect{Twoterminal:}}
\macrodef{Vcoords\_}{Vcoords_}{({\sl position})}
{gen}