texlive[68920] Master/texmf-dist: tex-ini-files, now merging most

commits+karl at tug.org commits+karl at tug.org
Mon Nov 20 21:54:51 CET 2023


Revision: 68920
          https://tug.org/svn/texlive?view=revision&revision=68920
Author:   karl
Date:     2023-11-20 21:54:50 +0100 (Mon, 20 Nov 2023)
Log Message:
-----------
tex-ini-files, now merging most from TL-specific dirs

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/generic/tex-ini-files/README.md
    trunk/Master/texmf-dist/tex/generic/tex-ini-files/dviluatex.ini
    trunk/Master/texmf-dist/tex/generic/tex-ini-files/luatex.ini
    trunk/Master/texmf-dist/tex/generic/tex-ini-files/luatexconfig.tex
    trunk/Master/texmf-dist/tex/generic/tex-ini-files/pdftexconfig.tex
    trunk/Master/texmf-dist/tex/generic/tex-ini-files/xetex.ini

Added Paths:
-----------
    trunk/Master/texmf-dist/tex/generic/tex-ini-files/luatexiniconfig.tex
    trunk/Master/texmf-dist/tex/generic/tex-ini-files/pdfxmltex.ini
    trunk/Master/texmf-dist/tex/generic/tex-ini-files/xmltex.ini
    trunk/Master/texmf-dist/tex/latex/tex-ini-files/
    trunk/Master/texmf-dist/tex/latex/tex-ini-files/dvilualatex.ini
    trunk/Master/texmf-dist/tex/latex/tex-ini-files/latex.ini
    trunk/Master/texmf-dist/tex/latex/tex-ini-files/lualatex.ini
    trunk/Master/texmf-dist/tex/latex/tex-ini-files/lualatexquotejobname.lua
    trunk/Master/texmf-dist/tex/latex/tex-ini-files/mllatex.ini
    trunk/Master/texmf-dist/tex/latex/tex-ini-files/pdflatex.ini
    trunk/Master/texmf-dist/tex/latex/tex-ini-files/xelatex.ini

Removed Paths:
-------------
    trunk/Master/texmf-dist/tex/generic/config/luatexiniconfig.tex
    trunk/Master/texmf-dist/tex/generic/tex-ini-files/dvilualatex.ini
    trunk/Master/texmf-dist/tex/generic/tex-ini-files/lualatex.ini
    trunk/Master/texmf-dist/tex/generic/tex-ini-files/xelatex.ini
    trunk/Master/texmf-dist/tex/latex/latexconfig/latex.ini
    trunk/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.lua
    trunk/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex
    trunk/Master/texmf-dist/tex/latex/latexconfig/mllatex.ini
    trunk/Master/texmf-dist/tex/latex/latexconfig/pdflatex.ini

Modified: trunk/Master/texmf-dist/doc/generic/tex-ini-files/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/generic/tex-ini-files/README.md	2023-11-20 20:51:05 UTC (rev 68919)
+++ trunk/Master/texmf-dist/doc/generic/tex-ini-files/README.md	2023-11-20 20:54:50 UTC (rev 68920)
@@ -46,9 +46,11 @@
 - 2016-02-27 First version of bundle
 - 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/josephwright/tex-ini-files
+https://github.com/latex3/tex-ini-files
 
 ## Legal
 

Deleted: trunk/Master/texmf-dist/tex/generic/config/luatexiniconfig.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/config/luatexiniconfig.tex	2023-11-20 20:51:05 UTC (rev 68919)
+++ trunk/Master/texmf-dist/tex/generic/config/luatexiniconfig.tex	2023-11-20 20:54:50 UTC (rev 68920)
@@ -1,19 +0,0 @@
-% $Id$
-% 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

Deleted: trunk/Master/texmf-dist/tex/generic/tex-ini-files/dvilualatex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex-ini-files/dvilualatex.ini	2023-11-20 20:51:05 UTC (rev 68919)
+++ trunk/Master/texmf-dist/tex/generic/tex-ini-files/dvilualatex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -1,4 +0,0 @@
-% tex-ini-files 2016-04-15: dvilualatex.ini
-
-\let\dvimode\relax
-\input lualatex.ini

Modified: trunk/Master/texmf-dist/tex/generic/tex-ini-files/dviluatex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex-ini-files/dviluatex.ini	2023-11-20 20:51:05 UTC (rev 68919)
+++ trunk/Master/texmf-dist/tex/generic/tex-ini-files/dviluatex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -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

Deleted: trunk/Master/texmf-dist/tex/generic/tex-ini-files/lualatex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex-ini-files/lualatex.ini	2023-11-20 20:51:05 UTC (rev 68919)
+++ trunk/Master/texmf-dist/tex/generic/tex-ini-files/lualatex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -1,19 +0,0 @@
-% tex-ini-files 2016-04-15: lualatex.ini
-
-% Originally written 2008 by Karl Berry. Public domain.
-
-\input luatexconfig.tex
-
-\begingroup
-  \catcode`\{=1 %
-  \catcode`\}=2 %
-  % Set up job name quoting before latex.ltx
-  % Web2c pdfTeX/XeTeX quote job names containing spaces, but LuaTeX does
-  % not do this at the engine level. The behaviour can be changed using
-  % a callback. Originally this code was loaded via lualatexquotejobname.tex
-  % but that required a hack around latex.ltx: the behaviour has been altered
-  % to allow the callback route to be used directly.
-  \global\everyjob{\directlua{require("lualatexquotejobname.lua")}}
-\endgroup
-
-\input latex.ltx

Modified: trunk/Master/texmf-dist/tex/generic/tex-ini-files/luatex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex-ini-files/luatex.ini	2023-11-20 20:51:05 UTC (rev 68919)
+++ trunk/Master/texmf-dist/tex/generic/tex-ini-files/luatex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -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.

Modified: trunk/Master/texmf-dist/tex/generic/tex-ini-files/luatexconfig.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex-ini-files/luatexconfig.tex	2023-11-20 20:51:05 UTC (rev 68919)
+++ trunk/Master/texmf-dist/tex/generic/tex-ini-files/luatexconfig.tex	2023-11-20 20:54:50 UTC (rev 68920)
@@ -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
 

Added: trunk/Master/texmf-dist/tex/generic/tex-ini-files/luatexiniconfig.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex-ini-files/luatexiniconfig.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/tex-ini-files/luatexiniconfig.tex	2023-11-20 20:54:50 UTC (rev 68920)
@@ -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


Property changes on: trunk/Master/texmf-dist/tex/generic/tex-ini-files/luatexiniconfig.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/generic/tex-ini-files/pdftexconfig.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex-ini-files/pdftexconfig.tex	2023-11-20 20:51:05 UTC (rev 68919)
+++ trunk/Master/texmf-dist/tex/generic/tex-ini-files/pdftexconfig.tex	2023-11-20 20:54:50 UTC (rev 68920)
@@ -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
 

Added: trunk/Master/texmf-dist/tex/generic/tex-ini-files/pdfxmltex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex-ini-files/pdfxmltex.ini	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/tex-ini-files/pdfxmltex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -0,0 +1,10 @@
+% tex-ini-files 20223-11-17: pdfxmltex.ini
+
+% public domain.
+\let\primitivedump=\dump
+\let\dump=\relax
+\input pdflatex.ini
+\let\dump=\primitivedump
+
+% then read jadetex.  pdf output must be set first, since it needs hyperref.
+\input xmltex.tex


Property changes on: trunk/Master/texmf-dist/tex/generic/tex-ini-files/pdfxmltex.ini
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/tex/generic/tex-ini-files/xelatex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex-ini-files/xelatex.ini	2023-11-20 20:51:05 UTC (rev 68919)
+++ trunk/Master/texmf-dist/tex/generic/tex-ini-files/xelatex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -1,17 +0,0 @@
-% tex-ini-files 2016-04-15: xelatex.ini
-
-% Public domain.  Originally by Jonathan Kew.
-
-% Primitives in pdftex and luatex, we'll just use macros here.
-% Since we are generating a whatsit, not 100% compatible,
-% but hopefully close enough.
-% 
-\begingroup
-  \catcode`\{=1 %
-  \catcode`\}=2 %
-  \catcode`\#=6 %
-  \csname protected\endcsname\gdef\pdfmapfile#1{\special{pdf:mapfile #1}}%
-  \csname protected\endcsname\gdef\pdfmapline#1{\special{pdf:mapline #1}}%
-\endgroup
-
-\input latex.ltx

Modified: trunk/Master/texmf-dist/tex/generic/tex-ini-files/xetex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex-ini-files/xetex.ini	2023-11-20 20:51:05 UTC (rev 68919)
+++ trunk/Master/texmf-dist/tex/generic/tex-ini-files/xetex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -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.
 

Added: trunk/Master/texmf-dist/tex/generic/tex-ini-files/xmltex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex-ini-files/xmltex.ini	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/tex-ini-files/xmltex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -0,0 +1,9 @@
+% tex-ini-files 20223-11-17: xmltex.ini
+
+% public domain.
+\let\primitivedump=\dump
+\let\dump=\relax
+\input latex.ini
+\let\dump=\primitivedump
+
+\input xmltex.tex


Property changes on: trunk/Master/texmf-dist/tex/generic/tex-ini-files/xmltex.ini
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/tex/latex/latexconfig/latex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/latex/latexconfig/latex.ini	2023-11-20 20:51:05 UTC (rev 68919)
+++ trunk/Master/texmf-dist/tex/latex/latexconfig/latex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -1,22 +0,0 @@
-% Thomas Esser, 1998. public domain.
-%
-\ifx\pdfoutput\undefined \else
-  \ifx\pdfoutput\relax \else
-    %
-    % We're building the latex format with the pdfetex engine (started 2004).
-    \input pdftexconfig
-    \pdfoutput=0
-    %
-    % pdfTeX related primitives are no longer hidden by default
-    % (started 2005). Uncomment and recreate the format files by running
-    % "fmtutil --all" resp.  "fmtutil-sys --all" to revert to the old
-    % (2004) behaviour.
-    % \input pdftex-dvi.tex
-    %
-  \fi
-\fi
-%
-% the usual format initialization.
-\scrollmode
-\input latex.ltx
-\endinput

Deleted: trunk/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.lua
===================================================================
--- trunk/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.lua	2023-11-20 20:51:05 UTC (rev 68919)
+++ trunk/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.lua	2023-11-20 20:54:50 UTC (rev 68920)
@@ -1,26 +0,0 @@
--- $Id: lualatexquotejobname.tex 22957 2011-06-13 20:49:26Z mpg $
--- 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)

Deleted: trunk/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex	2023-11-20 20:51:05 UTC (rev 68919)
+++ trunk/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex	2023-11-20 20:54:50 UTC (rev 68920)
@@ -1,63 +0,0 @@
-% $Id$
-% Manuel Pegourie-Gonnard, originally written 2010. WTFPL v2.
-%
-% Quote \jobname if it contains spaces, similarly to what other engines do.
-%
-% Recent versions of luatex kindly provide a process_jobname callback for
-% this. Detect if it is available and use a fallback in pure TeX otherwise.
-% If using the callback, register it at \everyjob time since callbacks are not
-% dumped in formats currently.
-%
-% The TeX version fails (jobname is set to texput) with invocations like
-%   luatex '\input foo'
-% but work correctly with the following:
-%   luatex foo\ bar
-%   luatex -jobname foo\ bar '\input "foo bar"'
-% It is is not possible to support all this case without the callback. It is
-% debatable if supporting another set cases would be better, but this is the
-% historical (TL 2010) behaviour, so just keep it.
-%
-% \jobname quoting is normalized in the same way as in web2c's
-% normalize_quotes() function (see lib/texmfmp.c, non-XeTeX case), that is:
-% - remove quotes
-% - complain if quotes are not "balanced" (ie not in even number)
-% - enclose the result in quotes iff it contains spaces
-%
-% This file is inputed after latex.ltx.
-%
-\makeatletter
-\everyjob\expandafter{\the\everyjob
-  \ifcase\directlua{
-    tex.sprint(callback.list().process_jobname == nil and 0 or 1)}\relax
-    % no callback, do what we can in TeX
-    \begingroup
-    % strip quotes from job name and count them
-    \def\stripquotes#1"#2\@nil{%
-      \edef\clean{\clean#1}%
-      \ifx\empty#2\empty \else
-        \advance\count@\@ne
-        \stripquotes#2\@nil
-      \fi}%
-    \count@\z@
-    \def\clean{}%
-    \expandafter\stripquotes\jobname"\@nil
-    % complain if their was not an even ("balanced") number of quotes
-    \ifodd\count@
-      \errmessage{Unbalanced quotes in jobname: \jobname}%
-    \fi
-    % now check if their are spaces and quote if necessary
-    \def\testsp#1 #2\@nil{%
-      \ifx\empty#2\empty
-        \edef\fixjobname{\def\noexpand\jobname{\clean}}%
-      \else
-        \edef\fixjobname{\def\noexpand\jobname{"\clean"}}%
-      \fi}%
-    \edef\dotest{\noexpand\testsp\clean\space\noexpand\@nil}\dotest
-    % do it after closing the group
-    \expandafter\endgroup\fixjobname
-  \or % callback available, use it
-    % function in a separate file for convenience (uses %, ~, etc)
-    \directlua{dofile(assert(kpse.find_file("lualatexquotejobname.lua")))}
-  \fi}
-\makeatother
-\endinput

Deleted: trunk/Master/texmf-dist/tex/latex/latexconfig/mllatex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/latex/latexconfig/mllatex.ini	2023-11-20 20:51:05 UTC (rev 68919)
+++ trunk/Master/texmf-dist/tex/latex/latexconfig/mllatex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -1,3 +0,0 @@
-% Thomas Esser, 1998. public domain.
-\scrollmode
-\input latex.ltx

Deleted: trunk/Master/texmf-dist/tex/latex/latexconfig/pdflatex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/latex/latexconfig/pdflatex.ini	2023-11-20 20:51:05 UTC (rev 68919)
+++ trunk/Master/texmf-dist/tex/latex/latexconfig/pdflatex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -1,5 +0,0 @@
-% Thomas Esser, 1998. public domain.
-\input pdftexconfig.tex
-\scrollmode
-\input latex.ltx
-\endinput

Added: trunk/Master/texmf-dist/tex/latex/tex-ini-files/dvilualatex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tex-ini-files/dvilualatex.ini	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/tex-ini-files/dvilualatex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -0,0 +1,4 @@
+% tex-ini-files 20223-11-17: dvilualatex.ini
+
+\let\dvimode\relax
+\input lualatex.ini


Property changes on: trunk/Master/texmf-dist/tex/latex/tex-ini-files/dvilualatex.ini
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/tex-ini-files/latex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tex-ini-files/latex.ini	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/tex-ini-files/latex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -0,0 +1,24 @@
+% tex-ini-files 20223-11-17: latex.ini
+
+% Thomas Esser, 1998. public domain.
+%
+\ifx\pdfoutput\undefined \else
+  \ifx\pdfoutput\relax \else
+    %
+    % We're building the latex format with the pdfetex engine (started 2004).
+    \input pdftexconfig
+    \pdfoutput=0
+    %
+    % pdfTeX related primitives are no longer hidden by default
+    % (started 2005). Uncomment and recreate the format files by running
+    % "fmtutil --all" resp.  "fmtutil-sys --all" to revert to the old
+    % (2004) behaviour.
+    % \input pdftex-dvi.tex
+    %
+  \fi
+\fi
+%
+% the usual format initialization.
+\scrollmode
+\input latex.ltx
+\endinput


Property changes on: trunk/Master/texmf-dist/tex/latex/tex-ini-files/latex.ini
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/tex-ini-files/lualatex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tex-ini-files/lualatex.ini	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/tex-ini-files/lualatex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -0,0 +1,19 @@
+% tex-ini-files 20223-11-17: lualatex.ini
+
+% Originally written 2008 by Karl Berry. Public domain.
+
+\input luatexconfig.tex
+
+\begingroup
+  \catcode`\{=1 %
+  \catcode`\}=2 %
+  % Set up job name quoting before latex.ltx
+  % Web2c pdfTeX/XeTeX quote job names containing spaces, but LuaTeX does
+  % not do this at the engine level. The behaviour can be changed using
+  % a callback. Originally this code was loaded via lualatexquotejobname.tex
+  % but that required a hack around latex.ltx: the behaviour has been altered
+  % to allow the callback route to be used directly.
+  \global\everyjob{\directlua{require("lualatexquotejobname.lua")}}
+\endgroup
+
+\input latex.ltx


Property changes on: trunk/Master/texmf-dist/tex/latex/tex-ini-files/lualatex.ini
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/tex-ini-files/lualatexquotejobname.lua
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tex-ini-files/lualatexquotejobname.lua	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/tex-ini-files/lualatexquotejobname.lua	2023-11-20 20:54:50 UTC (rev 68920)
@@ -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)


Property changes on: trunk/Master/texmf-dist/tex/latex/tex-ini-files/lualatexquotejobname.lua
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/tex-ini-files/mllatex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tex-ini-files/mllatex.ini	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/tex-ini-files/mllatex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -0,0 +1,5 @@
+% tex-ini-files 20223-11-17: mllatex.ini
+
+% Thomas Esser, 1998. public domain.
+\scrollmode
+\input latex.ltx


Property changes on: trunk/Master/texmf-dist/tex/latex/tex-ini-files/mllatex.ini
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/tex-ini-files/pdflatex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tex-ini-files/pdflatex.ini	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/tex-ini-files/pdflatex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -0,0 +1,6 @@
+% tex-ini-files 20223-11-17: pdflatex.ini
+
+% Thomas Esser, 1998. public domain.
+\input pdftexconfig.tex
+\input latex.ltx
+\endinput


Property changes on: trunk/Master/texmf-dist/tex/latex/tex-ini-files/pdflatex.ini
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/tex-ini-files/xelatex.ini
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tex-ini-files/xelatex.ini	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/tex-ini-files/xelatex.ini	2023-11-20 20:54:50 UTC (rev 68920)
@@ -0,0 +1,17 @@
+% tex-ini-files 20223-11-17: xelatex.ini
+
+% Public domain.  Originally by Jonathan Kew.
+
+% Primitives in pdftex and luatex, we'll just use macros here.
+% Since we are generating a whatsit, not 100% compatible,
+% but hopefully close enough.
+% 
+\begingroup
+  \catcode`\{=1 %
+  \catcode`\}=2 %
+  \catcode`\#=6 %
+  \csname protected\endcsname\gdef\pdfmapfile#1{\special{pdf:mapfile #1}}%
+  \csname protected\endcsname\gdef\pdfmapline#1{\special{pdf:mapline #1}}%
+\endgroup
+
+\input latex.ltx


Property changes on: trunk/Master/texmf-dist/tex/latex/tex-ini-files/xelatex.ini
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property


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