diff options
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; |