summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/latexconfig/lualatex.ini
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/latexconfig/lualatex.ini')
-rw-r--r--Master/texmf-dist/tex/latex/latexconfig/lualatex.ini48
1 files changed, 20 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/latex/latexconfig/lualatex.ini b/Master/texmf-dist/tex/latex/latexconfig/lualatex.ini
index 04f18dae475..fe1cfda48ef 100644
--- a/Master/texmf-dist/tex/latex/latexconfig/lualatex.ini
+++ b/Master/texmf-dist/tex/latex/latexconfig/lualatex.ini
@@ -1,34 +1,26 @@
% $Id$
% Karl Berry, originally written 2008. public domain.
-% must be done first (activation of primitives)
-\input lualatexiniconfig.tex
-
+\begingroup
+ \catcode`\{=1 %
+ \catcode`\}=2 %
+% JAW: Enable 'extra' pdfTeX primitives only in .ini file
+% latex.ltx enables the extra primitives bu a subset of those from
+% pdfTeX are needed to do the configuration below (pdftexconfig.tex).
+% Rather than list them all, just enable those classed as 'pdftex'.
+ \directlua{tex.enableprimitives('',tex.extraprimitives('pdftex'))}
+% JAW: 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{dofile(assert(kpse.find_file("lualatexquotejobname.lua")))}%
+ }
+\endgroup
% settings inherited from pdftex
-\input pdftexconfig.tex
% pdf output by default
+\input pdftexconfig.tex
-% prevent latex.ltx from \dump-ing
-\let\DUMP\dump
-\let\dump\relax
-
-% the usual format initialization.
-\scrollmode
-\input latex.ltx
-
-% some commands in the kernel need patchin to work with luatex
-\input lualatex-patch-kernel.tex
-
-% latex.ltx sets \everyjob, so this must come afterwards
-\input lualatexquotejobname.tex
-
-% latex.ltx sets wrong (T1) \lccodes, \uccodes for the "80-"ff range
-\input lualatex-reset-codes.tex % reset them
-\input luatex-unicode-letters.tex % set codes based on Unicode (full range)
-% Note: unlike xelatex, we don't need to load unicode-letters before latex.ltx
-% (hence hyphenation patterns) due to diferences in \patterns hendling
-
-% restore \dump for derived formats (mylatex, etc) that might use it
-\let\dump\DUMP
-\let\DUMP\undefined
-\dump
+\input latex.ltx \ No newline at end of file