diff options
author | Karl Berry <karl@freefriends.org> | 2020-03-16 21:11:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-03-16 21:11:40 +0000 |
commit | 2492300860bc8d58013520b5f27518e886d19216 (patch) | |
tree | 77e721f9063fa9306199d9cb24b20fe1febd0887 /Master/texmf-dist/metapost | |
parent | 5f4bef024b26c01d41b3700e8e320b8a1145b5a9 (diff) |
context (16mar20)
git-svn-id: svn://tug.org/texlive/trunk@54364 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/metapost')
3 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/metapost/context/base/mpii/mp-tool.mpii b/Master/texmf-dist/metapost/context/base/mpii/mp-tool.mpii index 562139fed55..de8e1e8e2fd 100644 --- a/Master/texmf-dist/metapost/context/base/mpii/mp-tool.mpii +++ b/Master/texmf-dist/metapost/context/base/mpii/mp-tool.mpii @@ -566,7 +566,7 @@ vardef mfun_tool_striped_angle(expr option, p, s_angle, s_gap) text extra = addto currentpicture also pattern ; addto currentpicture also shape ; fi ; - currentpicture := currentpicture shifted - centrum ; + currentpicture := currentpicture shifted centrum ; endgroup ; ) enddef; diff --git a/Master/texmf-dist/metapost/context/base/mpiv/mp-lmtx.mpxl b/Master/texmf-dist/metapost/context/base/mpiv/mp-lmtx.mpxl index 2bef6ff8833..cd4712ea8aa 100644 --- a/Master/texmf-dist/metapost/context/base/mpiv/mp-lmtx.mpxl +++ b/Master/texmf-dist/metapost/context/base/mpiv/mp-lmtx.mpxl @@ -2066,7 +2066,7 @@ enddef ; newinternal svgforcecmyk ; svgforcecmyk := 0 ; -vardef svgcolor(expr r,g,b) = +vardef svgcolor(expr r, g, b) = if svgforcecmyk > 0 : (1-r,1-g,1-b,0) % simple: no black component, kind of ok for emoji else : @@ -2074,6 +2074,10 @@ vardef svgcolor(expr r,g,b) = fi enddef ; +vardef svgcmyk(expr c, m, y, k) = + (c,m,y,k) +enddef ; + vardef svggray(expr s) = s enddef ; @@ -2081,6 +2085,7 @@ enddef ; presetparameters "svg" [ filename = "", fontname = "", + colormap = "", % unicode = 0, width = 0, height = 0, diff --git a/Master/texmf-dist/metapost/context/base/mpiv/mp-tool.mpiv b/Master/texmf-dist/metapost/context/base/mpiv/mp-tool.mpiv index b05adcc8b70..3a5dfa81e62 100644 --- a/Master/texmf-dist/metapost/context/base/mpiv/mp-tool.mpiv +++ b/Master/texmf-dist/metapost/context/base/mpiv/mp-tool.mpiv @@ -641,7 +641,7 @@ vardef mfun_tool_striped_angle(expr option, p, s_angle, s_gap) text extra = addto currentpicture also pattern ; addto currentpicture also shape ; fi ; - currentpicture := currentpicture shifted - centrum ; + currentpicture := currentpicture shifted centrum ; endgroup ; ) enddef; |