Debian Codegraph @

texmf-dist/doc/latex/circuit-macros/mpost.m4

raw
1 divert(-1)
2 mpost.m4 Initialization for metapost.
3
4 * Circuit_macros Version 11.0, copyright (c) 2026 J. D. Aplevich under *
5 * the LaTeX Project Public Licence in file Licence.txt. The files of *
6 * this distribution may be redistributed or modified provided that this *
7 * copyright notice is included and provided that modifications are clearly *
8 * marked to distinguish them from this distribution. There is no warranty *
9 * whatsoever for these files. *
10
11 define(`m4picprocessor',dpic)
12 define(`m4postprocessor',mpost)
13
14 ifdef(`libgen_',,`include(libgen.m4)divert(-1)')dnl
15
16 # Note: dpic uses Adobe points for line widths to conform to PSTricks
17 define(`thinlines_',`linethick = 0.4
18 arrowwid = 0.04*scale; arrowht = 0.2/3*scale;')
19 define(`thicklines_',`linethick = 0.8
20 arrowwid = 0.05*scale; arrowht = 0.1*scale;')
21 define(`linethick_',`linethick = ifelse(`$1',,`0.8',`$1')
22 arrowwid = ifelse(`$1',,`0.05',linethick/16)*scale; dnl
23 arrowht = ifelse(`$1',,`0.1',linethick/8)*scale;')
24
25 xcolor predefined colors
26 define(`defineRGBprimaries',`
27 define(`white',`(1,1,1)')dnl
28 define(`lightgrey',`(0.75,0.75,0.75)')dnl
29 define(`lightgray',`(0.75,0.75,0.75)')dnl
30 define(`grey',`(0.5,0.5,0.5)')dnl
31 define(`gray',`(0.5,0.5,0.5)')dnl
32 define(`darkgrey',`(0.25,0.25,0.25)')dnl
33 define(`darkgray',`(0.25,0.25,0.25)')dnl
34 define(`black',`(0,0,0)')dnl
35 define(`red',`(1,0,0)')dnl
36 define(`green',`(0,1,0)')dnl
37 define(`blue',`(0,0,1)')dnl
38 define(`cyan',`(0,1,1)')dnl
39 define(`magenta',`(1,0,1)')dnl
40 define(`yellow',`(1,1,0)')dnl
41 define(`brown',`(0.59,0.29,0)')dnl
42 define(`lime',`(0.8,1,0)')dnl
43 define(`olive',`(0.5,0.5,0)')dnl
44 define(`orange',`(1,0.5,0)')dnl
45 define(`pink',`(1,0.75,0.8)')dnl
46 define(`purple',`(0.5,0,0.5)')dnl
47 define(`teal',`(0,0.5,0.5)')dnl
48 define(`violet',`(0.56,0,1)')dnl
49 ')
50
51 divert(0)dnl