summaryrefslogtreecommitdiff
path: root/metapost/context/base/mpiv/mp-luas.mpxl
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-12-02 18:57:49 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-12-02 18:57:49 +0100
commit4af09333cc14015426fc193878c1a35157207518 (patch)
tree51b21fab1f487bc3cf8a62a050291c79d3599f52 /metapost/context/base/mpiv/mp-luas.mpxl
parent273b29a84706a7cefb56963300a7f54f3ffe147f (diff)
downloadcontext-4af09333cc14015426fc193878c1a35157207518.tar.gz
2019-12-02 18:38:00
Diffstat (limited to 'metapost/context/base/mpiv/mp-luas.mpxl')
-rw-r--r--metapost/context/base/mpiv/mp-luas.mpxl4
1 files changed, 4 insertions, 0 deletions
diff --git a/metapost/context/base/mpiv/mp-luas.mpxl b/metapost/context/base/mpiv/mp-luas.mpxl
index c622582b8..421e82946 100644
--- a/metapost/context/base/mpiv/mp-luas.mpxl
+++ b/metapost/context/base/mpiv/mp-luas.mpxl
@@ -241,6 +241,10 @@ newinternal mfid_hour ; mfid_hour := scriptindex "hour" ; vardef hour =
newinternal mfid_minute ; mfid_minute := scriptindex "minute" ; vardef minute = runscript mfid_minute enddef ;
newinternal mfid_second ; mfid_second := scriptindex "second" ; vardef second = runscript mfid_second enddef ;
+% You cannot overload a local color bu using a prefix works ok:
+%
+% \definecolor [ name = "mp:myred", r = .9 ] ;
+
newinternal mfid_definecolor ; mfid_definecolor := scriptindex "definecolor" ;
def definecolor = runscript mfid_definecolor ; enddef ; % the semicolon prevents lookahead