summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tex-ini-files
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-11-20 20:54:50 +0000
committerKarl Berry <karl@freefriends.org>2023-11-20 20:54:50 +0000
commitf2c544db15e39f47082849b2a648f144852810d0 (patch)
tree317eb8bbdbd0dbae851e17feef2c5af11344918e /Master/texmf-dist/tex/latex/tex-ini-files
parenta5dced73080c4a32837513e82957c71c4b776aed (diff)
tex-ini-files, now merging most from TL-specific dirs
git-svn-id: svn://tug.org/texlive/trunk@68920 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tex-ini-files')
-rw-r--r--Master/texmf-dist/tex/latex/tex-ini-files/dvilualatex.ini4
-rw-r--r--Master/texmf-dist/tex/latex/tex-ini-files/latex.ini24
-rw-r--r--Master/texmf-dist/tex/latex/tex-ini-files/lualatex.ini19
-rw-r--r--Master/texmf-dist/tex/latex/tex-ini-files/lualatexquotejobname.lua27
-rw-r--r--Master/texmf-dist/tex/latex/tex-ini-files/mllatex.ini5
-rw-r--r--Master/texmf-dist/tex/latex/tex-ini-files/pdflatex.ini6
-rw-r--r--Master/texmf-dist/tex/latex/tex-ini-files/xelatex.ini17
7 files changed, 102 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/tex-ini-files/dvilualatex.ini b/Master/texmf-dist/tex/latex/tex-ini-files/dvilualatex.ini
new file mode 100644
index 00000000000..dcb75e3f534
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/tex-ini-files/dvilualatex.ini
@@ -0,0 +1,4 @@
+% tex-ini-files 20223-11-17: dvilualatex.ini
+
+\let\dvimode\relax
+\input lualatex.ini
diff --git a/Master/texmf-dist/tex/latex/tex-ini-files/latex.ini b/Master/texmf-dist/tex/latex/tex-ini-files/latex.ini
new file mode 100644
index 00000000000..665dda30364
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/tex-ini-files/latex.ini
@@ -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
diff --git a/Master/texmf-dist/tex/latex/tex-ini-files/lualatex.ini b/Master/texmf-dist/tex/latex/tex-ini-files/lualatex.ini
new file mode 100644
index 00000000000..a23534c094d
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/tex-ini-files/lualatex.ini
@@ -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
diff --git a/Master/texmf-dist/tex/latex/tex-ini-files/lualatexquotejobname.lua b/Master/texmf-dist/tex/latex/tex-ini-files/lualatexquotejobname.lua
new file mode 100644
index 00000000000..2980c78e264
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/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/Master/texmf-dist/tex/latex/tex-ini-files/mllatex.ini b/Master/texmf-dist/tex/latex/tex-ini-files/mllatex.ini
new file mode 100644
index 00000000000..727b702a862
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/tex-ini-files/mllatex.ini
@@ -0,0 +1,5 @@
+% tex-ini-files 20223-11-17: mllatex.ini
+
+% Thomas Esser, 1998. public domain.
+\scrollmode
+\input latex.ltx
diff --git a/Master/texmf-dist/tex/latex/tex-ini-files/pdflatex.ini b/Master/texmf-dist/tex/latex/tex-ini-files/pdflatex.ini
new file mode 100644
index 00000000000..6e89d697d64
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/tex-ini-files/pdflatex.ini
@@ -0,0 +1,6 @@
+% tex-ini-files 20223-11-17: pdflatex.ini
+
+% Thomas Esser, 1998. public domain.
+\input pdftexconfig.tex
+\input latex.ltx
+\endinput
diff --git a/Master/texmf-dist/tex/latex/tex-ini-files/xelatex.ini b/Master/texmf-dist/tex/latex/tex-ini-files/xelatex.ini
new file mode 100644
index 00000000000..902392407ba
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/tex-ini-files/xelatex.ini
@@ -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