summaryrefslogtreecommitdiff
path: root/graphics/circuit_macros/examples/svg/ResistorsSVG.m4
blob: 4fb0be47f00edcd8b49ef89c53d5af950ef25e75 (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
.PS
# `ResistorsSVG.m4'
cct_init(svg_font(sans-serif,11pt__))
textwid = 1.5
movewid = 2 pt__
hm = 2.1
vm = 0.28

hm = 2.05
vm = 0.28
{  {resistor ; move ; svgLink(NportSVG.svg,"`resistor'" ljust)}
   move right_ hm
   {resistor(,,Q) ; move ; "`resistor(,,Q) '" ljust}
   move right_ hm
   {resistor(,,E) ; move 
    "`resistor(,,E)'" ljust " svg_equiv `ebox'" ljust}
}
   move down vm; right_
{  {resistor(,,ES) ; move ; "`resistor(,,ES) '" ljust}
   move right_ hm
   {resistor(,,H) ; move ; "`resistor(,,H) '" ljust}
   move right_ hm
   {ebox(,,,0.5) ; move ; "`ebox(,,,0.5) '" ljust}
}
   move down vm; right_
{  {resistor(,,V) ; move ; "`resistor(,,V) '" ljust}
   move right_ hm
   {ebox(,0.5,0.3) ; move ;"`ebox(,0.5,0.3) '" ljust}
   move right_ hm+4bp__
   {resistor(,,B) ; move movewid-4bp__ ; "`resistor(,,B) '" ljust}
}

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