summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/metapost
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-12-05 19:27:21 +0000
committerKarl Berry <karl@freefriends.org>2008-12-05 19:27:21 +0000
commitecaae09a36fdbfd712448a1f9123bf76a0ec646a (patch)
treef8989d45433a6ca10b36c162c8d04f2b7ab2faa5 /Master/texmf-dist/metapost
parentabb7c9d87ca356eb643804a6e48259c6b7ea6aea (diff)
context-gnuplot update (4dec08)
git-svn-id: svn://tug.org/texlive/trunk@11526 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/metapost')
-rwxr-xr-xMaster/texmf-dist/metapost/context/third/gnuplot/mp-gnuplot.mp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Master/texmf-dist/metapost/context/third/gnuplot/mp-gnuplot.mp b/Master/texmf-dist/metapost/context/third/gnuplot/mp-gnuplot.mp
index 4b8e1c49256..a83c7fd03c8 100755
--- a/Master/texmf-dist/metapost/context/third/gnuplot/mp-gnuplot.mp
+++ b/Master/texmf-dist/metapost/context/third/gnuplot/mp-gnuplot.mp
@@ -532,6 +532,16 @@ boolean context_gnuplot ; context_gnuplot := true;
let,=;;
enddef;
+ % this is only for mkiv
+ % in mkii, \sometxt behaves as an image and has no problems
+ % while in mkiv it falls back to textext.drt,
+ % and that one has problems if comma gets redefined,
+ % so we need to change definition of comma back to its original value first
+ vardef textext@#(expr txt) =
+ let,=@;
+ rawtextext(txt)
+ enddef ;
+
% converts the whole argument into a picture
%
% The problem is that \sometxt[gp]{text} is the very last command and cannot be captured as an image otherwise