summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/circuit-macros/examples/svg/ContactsSVG.m4
blob: 556ae04a61695b419dc0d78dcadb1fbb4517672e (plain)
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
.PS
# ContactsSVG.m4
cct_init
svg_font(sans-serif,10bp__)

 space = 0.75
 KS:contacts(2)
 {"svg_tt(`contacts(2)')" wid 1 at KS.s +(0,-12bp__)
  for_(1,2,1,
  `"svg_it(P`'m4x)" rjust at last [].P`'m4x-(dotrad_,0)
    "svg_it(O`'m4x)" ljust at last [].O`'m4x+(dotrad_,0)
    "svg_it(C`'m4x)" ljust at last [].C`'m4x+(dotrad_,0) ') }

 KS:contacts(2,I) with .sw at last [].se+(space,0)
 {"svg_tt(`(2,I)')" at KS.s +(0,-12bp__)
  for_(1,2,1,
  `"svg_it(P`'m4x)" rjust at last [].P`'m4x-(dotrad_,0)
    "svg_it(O`'m4x)" ljust at last [].O`'m4x+(dotrad_,0)
    "svg_it(C`'m4x)" ljust at last [].C`'m4x+(dotrad_,0) ') }

 KS:contacts(2,IO) with .sw at last [].se+(space,0)
 {"svg_tt(`(2,IO)')" at KS.s +(0,-12bp__)
  for_(1,2,1,
  `"svg_it(P`'m4x)" rjust at last [].P`'m4x-(dotrad_,0)
    "svg_it(O`'m4x)" ljust at last [].O`'m4x+(dotrad_,0) ') }

 KS:contacts(2,PICD) with .sw at last [].se+(space,0)
 {"svg_tt(`(2,PICD)')" at KS.s +(0,-12bp__)
  for_(1,2,1,
  `"svg_it(P`'m4x)" rjust at last [].P`'m4x-(dotrad_,0)
    "svg_it(O`'m4x)" ljust at last [].O`'m4x+(dotrad_,0)
    "svg_it(C`'m4x)" ljust at last [].C`'m4x+(dotrad_,0) ') }

 KS:contacts(2,PTCD) with .sw at last [].se+(space,0)
 {"svg_tt(`(2,PTCD)')" at KS.s +(0,-12bp__)
  for_(1,2,1,
  `"svg_it(P`'m4x)" rjust at last [].P`'m4x-(dotrad_,0)
    "svg_it(O`'m4x)" ljust at last [].O`'m4x+(dotrad_,0)
    "svg_it(C`'m4x)" ljust at last [].C`'m4x+(dotrad_,0) ') }

 KS:contacts(2,PUCD) with .sw at last [].se+(space,0)
 {"svg_tt(`(2,PUCD)')" at KS.s +(0,-12bp__)
  for_(1,2,1,
  `"svg_it(P`'m4x)" rjust at last [].P`'m4x-(dotrad_,0)
    "svg_it(O`'m4x)" ljust at last [].O`'m4x+(dotrad_,0)
    "svg_it(C`'m4x)" ljust at last [].C`'m4x+(dotrad_,0) ') }

  command "</g>" # end font
.PE