texlive[61133] Master/texmf-dist: luamplib (23nov21)
commits+karl at tug.org
commits+karl at tug.org
Tue Nov 23 23:40:49 CET 2021
Revision: 61133
http://tug.org/svn/texlive?view=revision&revision=61133
Author: karl
Date: 2021-11-23 23:40:49 +0100 (Tue, 23 Nov 2021)
Log Message:
-----------
luamplib (23nov21)
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-11-23 22:40:37 UTC (rev 61132)
+++ trunk/Master/texmf-dist/doc/luatex/luamplib/NEWS 2021-11-23 22:40:49 UTC (rev 61133)
@@ -1,5 +1,8 @@
History of the luamplib package
+2021/11/23 2.21.1
+ * address #97 (typesetting fails with "--lua" option)
+
2021/09/16 2.21.0
* allow empty string in textext()
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-11-23 22:40:37 UTC (rev 61132)
+++ trunk/Master/texmf-dist/source/luatex/luamplib/luamplib.dtx 2021-11-23 22:40:49 UTC (rev 61133)
@@ -85,7 +85,7 @@
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{luamplib.drv}%
- [2021/09/16 v2.21.0 Interface for using the mplib library]%
+ [2021/11/23 v2.21.1 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/09/16 v2.21.0}
+% \date{2021/11/23 v2.21.1}
%
% \maketitle
%
@@ -413,8 +413,8 @@
luatexbase.provides_module {
name = "luamplib",
- version = "2.21.0",
- date = "2021/09/16",
+ version = "2.21.1",
+ date = "2021/11/23",
description = "Lua package to typeset Metapost with LuaTeX's MPLib.",
}
@@ -669,8 +669,16 @@
% As the finder function for MPLib, use the |kpse| library and
% make it behave like as if MetaPost was used. And replace it with
% cache files if needed.
+% See also \#74, \#97.
% \begin{macrocode}
-local mpkpse = kpse.new(arg[0], "mpost")
+local mpkpse
+do
+ local exe = 0
+ while arg[exe-1] do
+ exe = exe-1
+ end
+ mpkpse = kpse.new(arg[exe], "mpost")
+end
local special_ftype = {
pfb = "type1 fonts",
@@ -2003,7 +2011,7 @@
\else
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{luamplib}
- [2021/09/16 v2.21.0 mplib package for LuaTeX]
+ [2021/11/23 v2.21.1 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-11-23 22:40:37 UTC (rev 61132)
+++ trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua 2021-11-23 22:40:49 UTC (rev 61133)
@@ -11,8 +11,8 @@
luatexbase.provides_module {
name = "luamplib",
- version = "2.21.0",
- date = "2021/09/16",
+ version = "2.21.1",
+ date = "2021/11/23",
description = "Lua package to typeset Metapost with LuaTeX's MPLib.",
}
@@ -216,7 +216,14 @@
return newfile
end
-local mpkpse = kpse.new(arg[0], "mpost")
+local mpkpse
+do
+ local exe = 0
+ while arg[exe-1] do
+ exe = exe-1
+ end
+ mpkpse = kpse.new(arg[exe], "mpost")
+end
local special_ftype = {
pfb = "type1 fonts",
Modified: trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty 2021-11-23 22:40:37 UTC (rev 61132)
+++ trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty 2021-11-23 22:40:49 UTC (rev 61133)
@@ -14,7 +14,7 @@
\else
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{luamplib}
- [2021/09/16 v2.21.0 mplib package for LuaTeX]
+ [2021/11/23 v2.21.1 mplib package for LuaTeX]
\ifx\newluafunction\@undefined
\input ltluatex
\fi
More information about the tex-live-commits
mailing list.