summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-08-02 20:24:16 +0000
committerKarl Berry <karl@freefriends.org>2021-08-02 20:24:16 +0000
commit017667d735e59dbfa17601f50ff1c7cd9d10cf41 (patch)
treefcc7dd82ec2353f661d84c0ec792101093e14ab3 /Master/texmf-dist/tex/luatex/luamplib/luamplib.sty
parent69b231694e0fdba26f2987ff182f2a957b722ff2 (diff)
luamplib (2aug21)
git-svn-id: svn://tug.org/texlive/trunk@60147 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luamplib/luamplib.sty')
-rw-r--r--Master/texmf-dist/tex/luatex/luamplib/luamplib.sty13
1 files changed, 10 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty b/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty
index 8540ce79c90..e37fc3da406 100644
--- a/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty
+++ b/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty
@@ -14,7 +14,7 @@
\else
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{luamplib}
- [2021/03/11 v2.20.7 mplib package for LuaTeX]
+ [2021/08/02 v2.20.8 mplib package for LuaTeX]
\ifx\newluafunction\@undefined
\input ltluatex
\fi
@@ -49,8 +49,7 @@
\catcode`\&=12 \catcode`\$=12 \catcode`\%=12 \catcode`\^^M=12
}
\def\mplibputtextbox#1{\vbox to 0pt{\vss\hbox to 0pt{\raise\dp#1\copy#1\hss}}}
-\bgroup\expandafter\expandafter\expandafter\egroup
-\expandafter\ifx\csname selectfont\endcsname\relax
+\unless\ifcsname ver@luamplib.sty\endcsname
\def\mplibcode{%
\begingroup
\begingroup
@@ -85,6 +84,14 @@
\fi
}
\fi
+\def\mplibshowlog#1{\directlua{
+ local s = string.lower("#1")
+ if s == "enable" or s == "true" or s == "yes" then
+ luamplib.showlog = true
+ else
+ luamplib.showlog = false
+ end
+}}
\def\mpliblegacybehavior#1{\directlua{
local s = string.lower("#1")
if s == "enable" or s == "true" or s == "yes" then