texlive[73137] Master/texmf-dist: luamplib (16dec24)

commits+karl at tug.org commits+karl at tug.org
Mon Dec 16 21:49:19 CET 2024


Revision: 73137
          https://tug.org/svn/texlive?view=revision&revision=73137
Author:   karl
Date:     2024-12-16 21:49:19 +0100 (Mon, 16 Dec 2024)
Log Message:
-----------
luamplib (16dec24)

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	2024-12-16 07:16:12 UTC (rev 73136)
+++ trunk/Master/texmf-dist/doc/luatex/luamplib/NEWS	2024-12-16 20:49:19 UTC (rev 73137)
@@ -1,5 +1,11 @@
                        History of the luamplib package
 
+2024/12/16 2.36.3
+   * change '//' to 'math.floor' for compatibility with luajittex (#158)
+
+   * fix documentation on mplibgraphictext considering the introduction of
+   'withshadingmethod'
+
 2024/12/11 2.36.2
    * fix a bug regarding expansion of options
    (https://tug.org/pipermail/metapost/2024-December/003574.html)

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	2024-12-16 07:16:12 UTC (rev 73136)
+++ trunk/Master/texmf-dist/source/luatex/luamplib/luamplib.dtx	2024-12-16 20:49:19 UTC (rev 73137)
@@ -85,7 +85,7 @@
 %<*driver>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{luamplib.drv}%
-  [2024/12/11 v2.36.2 Interface for using the mplib library]%
+  [2024/12/16 v2.36.3 Interface for using the mplib library]%
 \documentclass{ltxdoc}
 \usepackage{metalogo,multicol,xspace}
 \usepackage[x11names]{xcolor}
@@ -155,7 +155,7 @@
 % \author{Hans Hagen, Taco Hoekwater, Elie Roux, Philipp Gesang and Kim Dohyun\\
 % Current Maintainer: Kim Dohyun\\
 % Support: \url{https://github.com/lualatex/luamplib}}
-% \date{2024/12/11 v2.36.2}
+% \date{2024/12/16 v2.36.3}
 %
 % \maketitle
 %
@@ -656,7 +656,10 @@
 %   such as the vertical writing in Chinese or Japanese.
 %   However, because the implementation is quite different from others,
 %   there are some limitations such that you can't
-%   apply shading (gradient colors) to the text. Again,
+%   apply shading (gradient colors) to the text with |withshademethod| from \emph{metafun}.
+%   (But this limitation is now lifted by the introduction of |withshadingmethod|.
+%   See \hyperlink{luamplibshading}{below}.)
+%   Again,
 %   in DVI mode, \pkg{unicode-math} package is needed for math formula,
 %   as we cannot embolden type1 fonts in DVI mode.
 %
@@ -1043,7 +1046,8 @@
 %   the equivalent provided by luamplib, |withshadingmethod|, works with \emph{plain} as well.
 %   Other differences to the \emph{metafun}'s and some cautions are:
 %   \begin{itemize}
-%   \item \emph{textual pictures} (pictures made by |btex| |...| |etex|, |textext|, |maketext|, |infont|, etc)
+%   \item \emph{textual pictures} (pictures made by |btex| |...| |etex|, |textext|,
+%     |maketext|, |mplibgraphictext|, |TEX|, |infont|, etc)
 %     as well as paths can have shading effect.
 %\begin{verbatim}
 %     draw btex \bfseries\TeX etex scaled 10
@@ -1184,8 +1188,8 @@
 
 luatexbase.provides_module {
   name          = "luamplib",
-  version       = "2.36.2",
-  date          = "2024/12/11",
+  version       = "2.36.3",
+  date          = "2024/12/16",
   description   = "Lua package to typeset Metapost with LuaTeX's MPLib.",
 }
 
@@ -2425,10 +2429,10 @@
               local ady = abs(ody - dy)
               local ndy = math.ceil(ady / hd) * hd
               local diff = ndy - ady
-              n = (vwidth-diff) // hd
+              n = math.floor((vwidth-diff) / hd)
               dy = dy + (b2u and diff or -diff)
             else
-              n = vwidth // hd
+              n = math.floor(vwidth / hd)
               if kind == 101 then
                 local side = vwidth % hd / 2
                 dy = dy + (b2u and side or -side)
@@ -2577,10 +2581,10 @@
               local adx = abs(dx-dirs[1].dx)
               local ndx = math.ceil(adx / wd) * wd
               local diff = ndx - adx
-              n = (width-diff) // wd
+              n = math.floor((width-diff) / wd)
               dx = dx + (r2l and -diff-wd or diff)
             else
-              n = width // wd
+              n = math.floor(width / wd)
               if kind == 101 then
                 local side = width % wd /2
                 dx = dx + (r2l and -side-wd or side)
@@ -4519,7 +4523,7 @@
 %    \begin{macrocode}
   \NeedsTeXFormat{LaTeX2e}
   \ProvidesPackage{luamplib}
-    [2024/12/11 v2.36.2 mplib package for LuaTeX]
+    [2024/12/16 v2.36.3 mplib package for LuaTeX]
 \fi
 \ifdefined\newluafunction\else
   \input ltluatex

Modified: trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua	2024-12-16 07:16:12 UTC (rev 73136)
+++ trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.lua	2024-12-16 20:49:19 UTC (rev 73137)
@@ -11,8 +11,8 @@
 
 luatexbase.provides_module {
   name          = "luamplib",
-  version       = "2.36.2",
-  date          = "2024/12/11",
+  version       = "2.36.3",
+  date          = "2024/12/16",
   description   = "Lua package to typeset Metapost with LuaTeX's MPLib.",
 }
 
@@ -992,10 +992,10 @@
               local ady = abs(ody - dy)
               local ndy = math.ceil(ady / hd) * hd
               local diff = ndy - ady
-              n = (vwidth-diff) // hd
+              n = math.floor((vwidth-diff) / hd)
               dy = dy + (b2u and diff or -diff)
             else
-              n = vwidth // hd
+              n = math.floor(vwidth / hd)
               if kind == 101 then
                 local side = vwidth % hd / 2
                 dy = dy + (b2u and side or -side)
@@ -1144,10 +1144,10 @@
               local adx = abs(dx-dirs[1].dx)
               local ndx = math.ceil(adx / wd) * wd
               local diff = ndx - adx
-              n = (width-diff) // wd
+              n = math.floor((width-diff) / wd)
               dx = dx + (r2l and -diff-wd or diff)
             else
-              n = width // wd
+              n = math.floor(width / wd)
               if kind == 101 then
                 local side = width % wd /2
                 dx = dx + (r2l and -side-wd or side)

Modified: trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty	2024-12-16 07:16:12 UTC (rev 73136)
+++ trunk/Master/texmf-dist/tex/luatex/luamplib/luamplib.sty	2024-12-16 20:49:19 UTC (rev 73137)
@@ -11,7 +11,7 @@
 \ifcsname ProvidesPackage\endcsname
   \NeedsTeXFormat{LaTeX2e}
   \ProvidesPackage{luamplib}
-    [2024/12/11 v2.36.2 mplib package for LuaTeX]
+    [2024/12/16 v2.36.3 mplib package for LuaTeX]
 \fi
 \ifdefined\newluafunction\else
   \input ltluatex



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