texlive[60521] Master/texmf-dist: luamplib (16sep21)

commits+karl at tug.org commits+karl at tug.org
Thu Sep 16 22:17:02 CEST 2021


Revision: 60521
          http://tug.org/svn/texlive?view=revision&revision=60521
Author:   karl
Date:     2021-09-16 22:17:02 +0200 (Thu, 16 Sep 2021)
Log Message:
-----------
luamplib (16sep21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/luatex/luamplib/NEWS
    trunk/Master/texmf-dist/doc/luatex/luamplib/luamplib.pdf
    trunk/Master/texmf-dist/source/luatex/luamplib/luamplib.dtx
    trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua
    trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty

Modified: trunk/Master/texmf-dist/doc/luatex/luamplib/NEWS
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/luamplib/NEWS	2021-09-16 20:16:48 UTC (rev 60520)
+++ trunk/Master/texmf-dist/doc/luatex/luamplib/NEWS	2021-09-16 20:17:02 UTC (rev 60521)
@@ -1,5 +1,8 @@
                        History of the luamplib package
 
+2021/09/16 2.21.0
+    * allow empty string in textext()
+
 2021/08/03 2.20.9
     * initialize every mplib instance with random integer seed values
 

Modified: trunk/Master/texmf-dist/doc/luatex/luamplib/luamplib.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/luatex/luamplib/luamplib.dtx
===================================================================
--- trunk/Master/texmf-dist/source/luatex/luamplib/luamplib.dtx	2021-09-16 20:16:48 UTC (rev 60520)
+++ trunk/Master/texmf-dist/source/luatex/luamplib/luamplib.dtx	2021-09-16 20:17:02 UTC (rev 60521)
@@ -85,7 +85,7 @@
 %<*driver>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{luamplib.drv}%
-  [2021/08/03 v2.20.9 Interface for using the mplib library]%
+  [2021/09/16 v2.21.0 Interface for using the mplib library]%
 \documentclass{ltxdoc}
 \usepackage{metalogo,multicol,mdwlist,fancyvrb,xspace}
 \usepackage[x11names]{xcolor}
@@ -153,7 +153,7 @@
 % \author{Hans Hagen, Taco Hoekwater, Elie Roux, Philipp Gesang and Kim Dohyun\\
 % Maintainer: LuaLaTeX Maintainers ---
 % Support: \email{lualatex-dev at tug.org}}
-% \date{2021/08/03 v2.20.9}
+% \date{2021/09/16 v2.21.0}
 %
 % \maketitle
 %
@@ -413,8 +413,8 @@
 
 luatexbase.provides_module {
   name          = "luamplib",
-  version       = "2.20.9",
-  date          = "2021/08/03",
+  version       = "2.21.0",
+  date          = "2021/09/16",
   description   = "Lua package to typeset Metapost with LuaTeX's MPLib.",
 }
 
@@ -1057,8 +1057,8 @@
 end
 
 function luamplib.runscript (code)
-  local id, str = code:match("(.-){(.+)}")
-  if id and str and str ~= "" then
+  local id, str = code:match("(.-){(.*)}")
+  if id and str then
     local f = runscript_funcs[id]
     if f then
       local t = f(str)
@@ -1172,7 +1172,8 @@
   "runscript(" &ditto& "luamplib.in_the_fig=true" &ditto& ");";
 extra_endfig := extra_endfig & " let VerbatimTeX = specialVerbatimTeX;"&
   "runscript(" &ditto&
-  "luamplib.in_the_fig=false luamplib.figid=luamplib.figid+1" &ditto& ");";
+  "if luamplib.in_the_fig then luamplib.figid=luamplib.figid+1 end "&
+  "luamplib.in_the_fig=false" &ditto& ");";
 ]]
 luamplib.legacyverbatimtexpreamble = legacyverbatimtexpreamble
 
@@ -2002,7 +2003,7 @@
 \else
   \NeedsTeXFormat{LaTeX2e}
   \ProvidesPackage{luamplib}
-    [2021/08/03 v2.20.9 mplib package for LuaTeX]
+    [2021/09/16 v2.21.0 mplib package for LuaTeX]
   \ifx\newluafunction\@undefined
   \input ltluatex
   \fi

Modified: trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua	2021-09-16 20:16:48 UTC (rev 60520)
+++ trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua	2021-09-16 20:17:02 UTC (rev 60521)
@@ -11,8 +11,8 @@
 
 luatexbase.provides_module {
   name          = "luamplib",
-  version       = "2.20.9",
-  date          = "2021/08/03",
+  version       = "2.21.0",
+  date          = "2021/09/16",
   description   = "Lua package to typeset Metapost with LuaTeX's MPLib.",
 }
 
@@ -481,8 +481,8 @@
 end
 
 function luamplib.runscript (code)
-  local id, str = code:match("(.-){(.+)}")
-  if id and str and str ~= "" then
+  local id, str = code:match("(.-){(.*)}")
+  if id and str then
     local f = runscript_funcs[id]
     if f then
       local t = f(str)
@@ -588,7 +588,8 @@
   "runscript(" &ditto& "luamplib.in_the_fig=true" &ditto& ");";
 extra_endfig := extra_endfig & " let VerbatimTeX = specialVerbatimTeX;"&
   "runscript(" &ditto&
-  "luamplib.in_the_fig=false luamplib.figid=luamplib.figid+1" &ditto& ");";
+  "if luamplib.in_the_fig then luamplib.figid=luamplib.figid+1 end "&
+  "luamplib.in_the_fig=false" &ditto& ");";
 ]]
 luamplib.legacyverbatimtexpreamble = legacyverbatimtexpreamble
 

Modified: trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty	2021-09-16 20:16:48 UTC (rev 60520)
+++ trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty	2021-09-16 20:17:02 UTC (rev 60521)
@@ -14,7 +14,7 @@
 \else
   \NeedsTeXFormat{LaTeX2e}
   \ProvidesPackage{luamplib}
-    [2021/08/03 v2.20.9 mplib package for LuaTeX]
+    [2021/09/16 v2.21.0 mplib package for LuaTeX]
   \ifx\newluafunction\@undefined
   \input ltluatex
   \fi



More information about the tex-live-commits mailing list.