[latex3-commits] [latex3/latex3] main: Enable option passing for format building (af9ad45f8)
github at latex-project.org
github at latex-project.org
Thu Jul 20 10:02:07 CEST 2023
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/af9ad45f841a4ccec62f1a746410a269cb3468ae
>---------------------------------------------------------------
commit af9ad45f841a4ccec62f1a746410a269cb3468ae
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Jul 20 09:00:16 2023 +0100
Enable option passing for format building
>---------------------------------------------------------------
af9ad45f841a4ccec62f1a746410a269cb3468ae
build-config.lua | 3 +++
1 file changed, 3 insertions(+)
diff --git a/build-config.lua b/build-config.lua
index dfb14e689..8e8446d1e 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -87,8 +87,10 @@ end
local function fmt(engines,dest)
local function mkfmt(engine)
local cmd = engine
+ local opts
if specialformats.latex[engine] then
cmd = specialformats.latex[engine].binary or engine
+ opts = specialformats.latex[engine].options
end
-- Use .ini files if available
local src = "latex.ltx"
@@ -104,6 +106,7 @@ local function fmt(engines,dest)
os_setenv .. " LUAINPUTS=" .. unpackdir .. os_pathsep .. localdir
.. os_pathsep .. texmfdir .. "//"
.. os_concat .. cmd .. " -etex -ini -output-directory=" .. unpackdir
+ .. (opts and (" " .. opts) or "")
.. " " .. src .. " > " .. os_null)
if errorlevel ~= 0 then
-- Remove file extension: https://stackoverflow.com/a/34326069/6015190
More information about the latex3-commits
mailing list.