diff options
author | Hans Hagen <pragma@wxs.nl> | 2005-12-19 00:00:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2005-12-19 00:00:00 +0100 |
commit | 28b6768726b1fc30e1bae370cfa04632b52542c3 (patch) | |
tree | 445dfd14254cb6caedad514e4e55da8bf2475b5d /tex/context/base/meta-ini.tex | |
parent | 64393514fca3f8f070dcc0f95955d846780d82e0 (diff) | |
download | context-28b6768726b1fc30e1bae370cfa04632b52542c3.tar.gz |
stable 2005.12.19
Diffstat (limited to 'tex/context/base/meta-ini.tex')
-rw-r--r-- | tex/context/base/meta-ini.tex | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/tex/context/base/meta-ini.tex b/tex/context/base/meta-ini.tex index 0ccb60616..6d054b0fb 100644 --- a/tex/context/base/meta-ini.tex +++ b/tex/context/base/meta-ini.tex @@ -934,7 +934,7 @@ %D New: -\definelayerpreset +\definelayerpreset % no dx,dy - else nasty non-mp placement [mp] [\c!y=-\MPury bp, \c!x=\MPllx bp, @@ -963,6 +963,26 @@ %D %D \ruledhbox{\flushlayer[mp]} %D \stoptyping +%D +%D Reusing graphics is also possible (now): +%D +%D \starttyping +%D \startreusableMPgraphic{axis} +%D tickstep := 1cm ; ticklength := 2mm ; +%D drawticks unitsquare xscaled 4cm yscaled 3cm shifted (-1cm,-1cm) ; +%D tickstep := tickstep/2 ; ticklength := ticklength/2 ; +%D drawticks unitsquare xscaled 4cm yscaled 3cm shifted (-1cm,-1cm) ; +%D \stopreusableMPgraphic +%D +%D \startuseMPgraphic{demo} +%D drawpoint "1cm,1.5cm" ; +%D \stopuseMPgraphic +%D +%D \definelayer[mp][preset=mp] +%D \setlayer[mp]{\reuseMPgraphic{axis}} +%D \setlayer[mp]{\useMPgraphic{demo}} +%D \ruledhbox{\flushlayer[mp]} +%D \stoptyping %D New: |