diff options
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luamplib/luamplib.sty')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luamplib/luamplib.sty | 11 |
1 files changed, 7 insertions, 4 deletions
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 |