diff options
author | Karl Berry <karl@freefriends.org> | 2020-02-25 01:22:23 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-02-25 01:22:23 +0000 |
commit | 6001907a1e1618bbd696b962bc427ab9c03131eb (patch) | |
tree | 1ca41d4803b7a0bba1a20022fe80117e8cb8e5c2 /Master/texmf-dist/tex/luatex/luamplib | |
parent | 7fb74eccd2b3662317b4c76fa76c267993445e54 (diff) |
luamplib (25feb20)
git-svn-id: svn://tug.org/texlive/trunk@53904 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luamplib')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luamplib/luamplib.lua | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/luatex/luamplib/luamplib.sty | 11 |
2 files changed, 9 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua b/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua index 2b2ac290b4c..44f44d5cf10 100644 --- a/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua +++ b/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua @@ -11,8 +11,8 @@ luatexbase.provides_module { name = "luamplib", - version = "2.20.4", - date = "2019/12/11", + version = "2.20.5", + date = "2020/02/24", description = "Lua package to typeset Metapost with LuaTeX's MPLib.", } diff --git a/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty b/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty index aae75fd9632..21f508a2ee2 100644 --- a/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty +++ b/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty @@ -14,19 +14,19 @@ \else \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{luamplib} - [2019/12/11 v2.20.4 mplib package for LuaTeX] + [2020/02/24 v2.20.5 mplib package for LuaTeX] \ifx\newluafunction\@undefined \input ltluatex \fi \fi \directlua{require("luamplib")} -\ifx\scantextokens\undefined - \let\scantextokens\luatexscantextokens -\fi \ifx\pdfoutput\undefined \let\pdfoutput\outputmode \protected\def\pdfliteral{\pdfextension literal} \fi +\ifx\pdfliteral\undefined + \protected\def\pdfliteral{\pdfextension literal} +\fi \def\mplibsetformat#1{\directlua{luamplib.setformat("#1")}} \ifnum\pdfoutput>0 \let\mplibtoPDF\pdfliteral @@ -122,6 +122,9 @@ \endgroup \everyendmplibtoks{#1}% } +\def\mpdim#1{ mplibdimen("#1") } +\def\mpcolor#1#{\domplibcolor{#1}} +\def\domplibcolor#1#2{ mplibcolor("#1{#2}") } \def\mplibnumbersystem#1{\directlua{ local t = "#1" if t == "binary" then t = "decimal" end |