diff options
author | Karl Berry <karl@freefriends.org> | 2011-07-27 23:15:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-07-27 23:15:42 +0000 |
commit | 62263d6664dd3ca8d42bcfc6445e2c189154745b (patch) | |
tree | 5d8c5f33a619380e316ca222a26e1807be042e57 /Master/texmf-dist/doc/metapost/mpcolornames/proof-mpcolornames.mp | |
parent | a5f505fa400aa240740da0daee3c527b2e63934c (diff) |
new metapost package mpcolornames (27jul11)
git-svn-id: svn://tug.org/texlive/trunk@23252 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/metapost/mpcolornames/proof-mpcolornames.mp')
-rw-r--r-- | Master/texmf-dist/doc/metapost/mpcolornames/proof-mpcolornames.mp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/metapost/mpcolornames/proof-mpcolornames.mp b/Master/texmf-dist/doc/metapost/mpcolornames/proof-mpcolornames.mp new file mode 100644 index 00000000000..563dcd1d864 --- /dev/null +++ b/Master/texmf-dist/doc/metapost/mpcolornames/proof-mpcolornames.mp @@ -0,0 +1,28 @@ +%%% file proof-mpcolornames.mp +%%% Copyright 2009,2011 Stephan Hennig +% +% This work may be distributed and/or modified under the conditions of +% the LaTeX Project Public License, either version 1.3 of this license +% or (at your option) any later version. The latest version of this +% license is in http://www.latex-project.org/lppl.txt +% +input mpcolornames + +boxh := 7.5bp; +boxw := 12.5bp; +penw := .3bp; +string specname; + +def colorbox= + unitsquare xscaled boxw yscaled boxh +enddef; + +def proof(suffix col)= + outputtemplate := "proof-spec-" & specname & "-" & str col & ".mps"; + beginfig(1); + fill colorbox withcolor col; + draw colorbox withpen pencircle scaled penw; + endfig; +enddef; + +endinput |