Debian Codegraph @

texmf-dist/doc/metapost/mpcolornames/proof-mpcolornames.mp

raw
1 %%% file proof-mpcolornames.mp
2 %%% Copyright 2009,2011 Stephan Hennig
3 %
4 % This work may be distributed and/or modified under the conditions of
5 % the LaTeX Project Public License, either version 1.3 of this license
6 % or (at your option) any later version. The latest version of this
7 % license is in http://www.latex-project.org/lppl.txt
8 %
9 input mpcolornames
10
11 boxh := 7.5bp;
12 boxw := 12.5bp;
13 penw := .3bp;
14 string specname;
15
16 def colorbox=
17 unitsquare xscaled boxw yscaled boxh
18 enddef;
19
20 def proof(suffix col)=
21 outputtemplate := "proof-spec-" & specname & "-" & str col & ".mps";
22 beginfig(1);
23 fill colorbox withcolor col;
24 draw colorbox withpen pencircle scaled penw;
25 endfig;
26 enddef;
27
28 endinput