From 6001907a1e1618bbd696b962bc427ab9c03131eb Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 25 Feb 2020 01:22:23 +0000 Subject: luamplib (25feb20) git-svn-id: svn://tug.org/texlive/trunk@53904 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/luatex/luamplib/luamplib.lua | 4 ++-- Master/texmf-dist/tex/luatex/luamplib/luamplib.sty | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/tex') 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 -- cgit v1.2.3