From ff01be90452ac7aec530af4623f334ca21869cc5 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 21 Nov 2023 03:02:55 +0000 Subject: CTAN sync 202311210302 --- macros/generic/tex-ini-files/README.md | 1 + macros/generic/tex-ini-files/dvilualatex.ini | 2 +- macros/generic/tex-ini-files/dviluatex.ini | 2 +- macros/generic/tex-ini-files/latex.ini | 2 +- macros/generic/tex-ini-files/lualatex.ini | 2 +- .../generic/tex-ini-files/lualatexquotejobname.lua | 27 ++++++++++++++++++++++ macros/generic/tex-ini-files/luatex.ini | 2 +- macros/generic/tex-ini-files/luatexconfig.tex | 2 +- macros/generic/tex-ini-files/luatexiniconfig.tex | 20 ++++++++++++++++ macros/generic/tex-ini-files/mllatex.ini | 2 +- macros/generic/tex-ini-files/pdflatex.ini | 2 +- macros/generic/tex-ini-files/pdftexconfig.tex | 2 +- macros/generic/tex-ini-files/pdfxmltex.ini | 2 +- macros/generic/tex-ini-files/xelatex.ini | 2 +- macros/generic/tex-ini-files/xetex.ini | 2 +- macros/generic/tex-ini-files/xmltex.ini | 2 +- 16 files changed, 61 insertions(+), 13 deletions(-) create mode 100644 macros/generic/tex-ini-files/lualatexquotejobname.lua create mode 100644 macros/generic/tex-ini-files/luatexiniconfig.tex (limited to 'macros/generic/tex-ini-files') diff --git a/macros/generic/tex-ini-files/README.md b/macros/generic/tex-ini-files/README.md index 89bb9db879..298a404c9b 100644 --- a/macros/generic/tex-ini-files/README.md +++ b/macros/generic/tex-ini-files/README.md @@ -47,6 +47,7 @@ Major changes: - 2016-04-14 Do not assume e-TeX availability in `pdftexconfig.tex` - 2016-04-15 New approach to loading shared pdfTeX/LuaTeX data - 2023-11-15 Align setting of interaction mode across LaTeX .ini files +- 2023-11-17 Add luatexiniconfig.tex A full history of this bundle is available from https://github.com/latex3/tex-ini-files diff --git a/macros/generic/tex-ini-files/dvilualatex.ini b/macros/generic/tex-ini-files/dvilualatex.ini index 476ee45f45..dcb75e3f53 100644 --- a/macros/generic/tex-ini-files/dvilualatex.ini +++ b/macros/generic/tex-ini-files/dvilualatex.ini @@ -1,4 +1,4 @@ -% tex-ini-files 2016-04-15: dvilualatex.ini +% tex-ini-files 20223-11-17: dvilualatex.ini \let\dvimode\relax \input lualatex.ini diff --git a/macros/generic/tex-ini-files/dviluatex.ini b/macros/generic/tex-ini-files/dviluatex.ini index abe93aa343..957950e8fa 100644 --- a/macros/generic/tex-ini-files/dviluatex.ini +++ b/macros/generic/tex-ini-files/dviluatex.ini @@ -1,4 +1,4 @@ -% tex-ini-files 2016-04-15: dvilualatex.ini +% tex-ini-files 20223-11-17: dvilualatex.ini \let\dvimode\relax \input luatex.ini diff --git a/macros/generic/tex-ini-files/latex.ini b/macros/generic/tex-ini-files/latex.ini index 876958555e..665dda3036 100644 --- a/macros/generic/tex-ini-files/latex.ini +++ b/macros/generic/tex-ini-files/latex.ini @@ -1,4 +1,4 @@ -% tex-ini-files 2016-05-10: latex.ini +% tex-ini-files 20223-11-17: latex.ini % Thomas Esser, 1998. public domain. % diff --git a/macros/generic/tex-ini-files/lualatex.ini b/macros/generic/tex-ini-files/lualatex.ini index 1f7a49813a..a23534c094 100644 --- a/macros/generic/tex-ini-files/lualatex.ini +++ b/macros/generic/tex-ini-files/lualatex.ini @@ -1,4 +1,4 @@ -% tex-ini-files 2016-04-15: lualatex.ini +% tex-ini-files 20223-11-17: lualatex.ini % Originally written 2008 by Karl Berry. Public domain. diff --git a/macros/generic/tex-ini-files/lualatexquotejobname.lua b/macros/generic/tex-ini-files/lualatexquotejobname.lua new file mode 100644 index 0000000000..2980c78e26 --- /dev/null +++ b/macros/generic/tex-ini-files/lualatexquotejobname.lua @@ -0,0 +1,27 @@ +-- tex-ini-files 20223-11-17: lualatexquotejobname.tex + +-- Manuel Pegourie-Gonnard, originally written 2010. WTFPL v2. +-- +-- Goal: see lualatexquotejobname.tex +-- +-- Cache the results of previous calls, not so much for the speed gain which +-- probably doesn't matter, but to avoid repeated error messages. +local jobname_cache = {} +callback.register('process_jobname', function(jobname) + -- use a cached version if available + local cached = jobname_cache[jobname] + if cached ~= nil then return cached end + -- remove the quotes in jobname + local clean, n_quotes = jobname:gsub([["]], [[]]) + -- complain if they wasn't an even number of quotes (aka unbalanced) + if n_quotes % 2 ~= 0 then + texio.write_nl('! Unbalanced quotes in jobname: ' .. jobname ) + end + -- add quotes around the cleaned up jobname if necessary + if jobname:find(' ') then + clean = '"' .. clean .. '"' + end + -- remember the result before returning + jobname_cache[jobname] = clean + return clean +end) diff --git a/macros/generic/tex-ini-files/luatex.ini b/macros/generic/tex-ini-files/luatex.ini index 1a592cf15d..0dbd95744a 100644 --- a/macros/generic/tex-ini-files/luatex.ini +++ b/macros/generic/tex-ini-files/luatex.ini @@ -1,4 +1,4 @@ -% tex-ini-files 2016-04-15: luatex.ini +% tex-ini-files 20223-11-17: luatex.ini % Karl Berry, originally written 2008. Public domain. % PDF output by default. diff --git a/macros/generic/tex-ini-files/luatexconfig.tex b/macros/generic/tex-ini-files/luatexconfig.tex index 5ad8913b65..28fbc6644e 100644 --- a/macros/generic/tex-ini-files/luatexconfig.tex +++ b/macros/generic/tex-ini-files/luatexconfig.tex @@ -1,4 +1,4 @@ -% tex-ini-files 2016-04-15: luatexconfig.tex +% tex-ini-files 20223-11-17: luatexconfig.tex % Load shared (PDF) settings in LuaTeX diff --git a/macros/generic/tex-ini-files/luatexiniconfig.tex b/macros/generic/tex-ini-files/luatexiniconfig.tex new file mode 100644 index 0000000000..1a832e09a5 --- /dev/null +++ b/macros/generic/tex-ini-files/luatexiniconfig.tex @@ -0,0 +1,20 @@ +% tex-ini-files 20223-11-17: luatexiniconfig.tex + +% Read for plain luatex formats (luatex.ini, dviluatex.ini). +% Assumes LuaTeX 0.39.x or greater. +% Originally written 2009 by Manuel P\'egouri\'e-Gonnard. Public domain. + +\begingroup + \catcode`\{=1 + \catcode`\}=2 + % + \directlua{ + % enable all primitives without prefixing + tex.enableprimitives('', tex.extraprimitives()) + % + % for compatibility with older LaTeX formats, also provide a + % prefixed version of some primitives. + tex.enableprimitives('luatex', + tex.extraprimitives('core', 'omega', 'aleph', 'luatex')) + } +\endgroup diff --git a/macros/generic/tex-ini-files/mllatex.ini b/macros/generic/tex-ini-files/mllatex.ini index d0886079b8..727b702a86 100644 --- a/macros/generic/tex-ini-files/mllatex.ini +++ b/macros/generic/tex-ini-files/mllatex.ini @@ -1,4 +1,4 @@ -% tex-ini-files 2016-05-10: mllatex.ini +% tex-ini-files 20223-11-17: mllatex.ini % Thomas Esser, 1998. public domain. \scrollmode diff --git a/macros/generic/tex-ini-files/pdflatex.ini b/macros/generic/tex-ini-files/pdflatex.ini index 8105e23a9e..6e89d697d6 100644 --- a/macros/generic/tex-ini-files/pdflatex.ini +++ b/macros/generic/tex-ini-files/pdflatex.ini @@ -1,4 +1,4 @@ -% tex-ini-files 2023-11-15: pdflatex.ini +% tex-ini-files 20223-11-17: pdflatex.ini % Thomas Esser, 1998. public domain. \input pdftexconfig.tex diff --git a/macros/generic/tex-ini-files/pdftexconfig.tex b/macros/generic/tex-ini-files/pdftexconfig.tex index 44c25abcbd..7a66e1f614 100644 --- a/macros/generic/tex-ini-files/pdftexconfig.tex +++ b/macros/generic/tex-ini-files/pdftexconfig.tex @@ -1,4 +1,4 @@ -% tex-ini-files 2016-04-15: pdftexconfig.tex +% tex-ini-files 20223-11-17: pdftexconfig.tex % Load shared (PDF) settings in pdfTeX diff --git a/macros/generic/tex-ini-files/pdfxmltex.ini b/macros/generic/tex-ini-files/pdfxmltex.ini index c36bb5137a..d951032d25 100644 --- a/macros/generic/tex-ini-files/pdfxmltex.ini +++ b/macros/generic/tex-ini-files/pdfxmltex.ini @@ -1,4 +1,4 @@ -% tex-ini-files 2016-05-10: pdfxmltex.ini +% tex-ini-files 20223-11-17: pdfxmltex.ini % public domain. \let\primitivedump=\dump diff --git a/macros/generic/tex-ini-files/xelatex.ini b/macros/generic/tex-ini-files/xelatex.ini index ef0432c241..902392407b 100644 --- a/macros/generic/tex-ini-files/xelatex.ini +++ b/macros/generic/tex-ini-files/xelatex.ini @@ -1,4 +1,4 @@ -% tex-ini-files 2016-04-15: xelatex.ini +% tex-ini-files 20223-11-17: xelatex.ini % Public domain. Originally by Jonathan Kew. diff --git a/macros/generic/tex-ini-files/xetex.ini b/macros/generic/tex-ini-files/xetex.ini index 717589b469..32ccad222b 100644 --- a/macros/generic/tex-ini-files/xetex.ini +++ b/macros/generic/tex-ini-files/xetex.ini @@ -1,4 +1,4 @@ -% tex-ini-files 2016-04-15: xetex.ini +% tex-ini-files 20223-11-17: xetex.ini % Public domain. Originally by Jonathan Kew. diff --git a/macros/generic/tex-ini-files/xmltex.ini b/macros/generic/tex-ini-files/xmltex.ini index bd18c4900e..bdefa95c6e 100644 --- a/macros/generic/tex-ini-files/xmltex.ini +++ b/macros/generic/tex-ini-files/xmltex.ini @@ -1,4 +1,4 @@ -% tex-ini-files 2016-05-10: xmltex.ini +% tex-ini-files 20223-11-17: xmltex.ini % public domain. \let\primitivedump=\dump -- cgit v1.2.3