diff options
Diffstat (limited to 'macros/luatex')
-rw-r--r-- | macros/luatex/generic/luamplib/NEWS | 6 | ||||
-rw-r--r-- | macros/luatex/generic/luamplib/luamplib.dtx | 24 | ||||
-rw-r--r-- | macros/luatex/generic/luamplib/luamplib.pdf | bin | 153447 -> 153613 bytes | |||
-rw-r--r-- | macros/luatex/latex/lualinalg/README.txt | 2 | ||||
-rw-r--r-- | macros/luatex/latex/lualinalg/lualinalg.pdf | bin | 271088 -> 271095 bytes | |||
-rw-r--r-- | macros/luatex/latex/lualinalg/lualinalg.sty | 10 |
6 files changed, 24 insertions, 18 deletions
diff --git a/macros/luatex/generic/luamplib/NEWS b/macros/luatex/generic/luamplib/NEWS index b76bd8b562..f66689f163 100644 --- a/macros/luatex/generic/luamplib/NEWS +++ b/macros/luatex/generic/luamplib/NEWS @@ -1,6 +1,10 @@ History of the luamplib package -2024/04/04 2.24.0 +2023/08/07 2.25.0 + * propagate tex's jobname varible into mplib process as well. + * protect "..." if and only if textextlabel is enabled. + +2023/04/04 2.24.0 respect '-recorder' command-line option 2022/01/12 2.23.0 diff --git a/macros/luatex/generic/luamplib/luamplib.dtx b/macros/luatex/generic/luamplib/luamplib.dtx index 35615062d2..61e3878a17 100644 --- a/macros/luatex/generic/luamplib/luamplib.dtx +++ b/macros/luatex/generic/luamplib/luamplib.dtx @@ -85,7 +85,7 @@ See source file '\inFileName' for licencing and contact information. %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{luamplib.drv}% - [2023/04/04 v2.24.0 Interface for using the mplib library]% + [2023/08/07 v2.25.0 Interface for using the mplib library]% \documentclass{ltxdoc} \usepackage{metalogo,multicol,mdwlist,fancyvrb,xspace} \usepackage[x11names]{xcolor} @@ -153,7 +153,7 @@ See source file '\inFileName' for licencing and contact information. % \author{Hans Hagen, Taco Hoekwater, Elie Roux, Philipp Gesang and Kim Dohyun\\ % Maintainer: LuaLaTeX Maintainers --- % Support: \email{lualatex-dev@tug.org}} -% \date{2023/04/04 v2.24.0} +% \date{2023/08/07 v2.25.0} % % \maketitle % @@ -446,8 +446,8 @@ See source file '\inFileName' for licencing and contact information. luatexbase.provides_module { name = "luamplib", - version = "2.24.0", - date = "2023/04/04", + version = "2.25.0", + date = "2023/08/07", description = "Lua package to typeset Metapost with LuaTeX's MPLib.", } @@ -517,9 +517,6 @@ local file = file or { } local replacesuffix = file.replacesuffix or function(filename, suffix) return (filename:gsub("%.[%a%d]+$","")) .. "." .. suffix end -local stripsuffix = file.stripsuffix or function(filename) - return (filename:gsub("%.[%a%d]+$","")) -end local is_writable = file.is_writable or function(name) if lfsisdir(name) then @@ -820,6 +817,7 @@ local function luamplibload (name) make_text = luamplib.maketext, run_script = luamplib.runscript, math_mode = luamplib.numbersystem, + job_name = tex.jobname, random_seed = math.random(4095), extensions = 1, } @@ -1313,7 +1311,9 @@ local function process_mplibcode (data, instancename) % It has turned out that no comment sign is allowed. % \begin{macrocode} if not luamplib.verbatiminput then - data = data:gsub("\".-\"", protect_expansion) + if luamplib.textextlabel then + data = data:gsub("\".-\"", protect_expansion) + end data = data:gsub("\\%%", "\0PerCent\0") data = data:gsub("%%.-\n","") @@ -1326,7 +1326,9 @@ local function process_mplibcode (data, instancename) % Next line to address issue \#55 % \begin{macrocode} data = data:gsub("##", "#") - data = data:gsub("\".-\"", unprotect_expansion) + if luamplib.textextlabel then + data = data:gsub("\".-\"", unprotect_expansion) + end data = data:gsub(btex_etex, function(str) return format("btex %s etex", unprotect_expansion(str)) end) @@ -1546,7 +1548,7 @@ local pdf_objs = {} local token, getpageres, setpageres = newtoken or token local pgf = { bye = "pgfutil@everybye", extgs = "pgf@sys@addpdfresource@extgs@plain" } -if pdfmode then -- repect luaotfload-colors +if pdfmode then -- respect luaotfload-colors getpageres = pdf.getpageresources or function() return pdf.pageresources end setpageres = pdf.setpageresources or function(s) pdf.pageresources = s end else @@ -2063,7 +2065,7 @@ luamplib.colorconverter = colorconverter \else \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{luamplib} - [2023/04/04 v2.24.0 mplib package for LuaTeX] + [2023/08/07 v2.25.0 mplib package for LuaTeX] \ifx\newluafunction\@undefined \input ltluatex \fi diff --git a/macros/luatex/generic/luamplib/luamplib.pdf b/macros/luatex/generic/luamplib/luamplib.pdf Binary files differindex b9aadd7e0c..45be990ec5 100644 --- a/macros/luatex/generic/luamplib/luamplib.pdf +++ b/macros/luatex/generic/luamplib/luamplib.pdf diff --git a/macros/luatex/latex/lualinalg/README.txt b/macros/luatex/latex/lualinalg/README.txt index 8f664663c1..b53ec649cc 100644 --- a/macros/luatex/latex/lualinalg/README.txt +++ b/macros/luatex/latex/lualinalg/README.txt @@ -1,5 +1,5 @@ # The lualinalg package -# version 1.4 +# version 1.5 # Authors: Chetan Shirore and Ajit Kumar # Email: mathsbeauty@gmail.com diff --git a/macros/luatex/latex/lualinalg/lualinalg.pdf b/macros/luatex/latex/lualinalg/lualinalg.pdf Binary files differindex adc8fe3290..8998c757a2 100644 --- a/macros/luatex/latex/lualinalg/lualinalg.pdf +++ b/macros/luatex/latex/lualinalg/lualinalg.pdf diff --git a/macros/luatex/latex/lualinalg/lualinalg.sty b/macros/luatex/latex/lualinalg/lualinalg.sty index c16cfa1e14..b98046f629 100644 --- a/macros/luatex/latex/lualinalg/lualinalg.sty +++ b/macros/luatex/latex/lualinalg/lualinalg.sty @@ -1,11 +1,11 @@ % The lualinalg package % Authors: Chetan Shirore and Ajit Kumar -% version 1.4, Date=04-Aug-2023 +% version 1.5, Date=07-Aug-2023 % Licensed under LaTeX Project Public License v1.3c or later. The complete license text is available at http://www.latex-project.org/lppl.txt. -\ProvidesPackage{lualinalg}[1.4] +\ProvidesPackage{lualinalg}[1.5] \RequirePackage{xkeyval} \RequirePackage{amsmath} \RequirePackage{luamaths} @@ -1140,7 +1140,7 @@ function vector.gs(inptTbl, brckt, dignum) tbl[1] = vector.mulnum(inptTbl[1], 1) end setmetatable(tbl[1], vector_meta) - str = str .. "$\\left" .. brcktL .. vector.show(tbl[1], dignum) .. "\\right" .. brcktR + str = str .. "$\\left" .. brcktL .. vector.show(tbl[1], dignum) .. "\\right" .. brcktR.." $" for i = 2, k do tbl[i] = inptTbl[i] setmetatable(tbl[i], vector_meta) @@ -1152,9 +1152,9 @@ function vector.gs(inptTbl, brckt, dignum) tbl[i] = vector.mulnum(tbl[i], 1 / vector.euclidnorm(tbl[i])) end tbl[i] = vector.mulnum(tbl[i], 1.0) - str = str .. ",\\left" .. brcktL .. vector.show(tbl[i], dignum) .. "\\right" .. brcktR + str = str .. ", $\\left" .. brcktL .. vector.show(tbl[i], dignum) .. "\\right" .. brcktR.." $" end - str = str .. "$" + str = str return str end |