summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/latexconfig/lualatex.ini
blob: fe1cfda48eff0a80fa9d37f550f6bd25b80bdeff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
% $Id$
% Karl Berry, originally written 2008. public domain.

\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
% pdf output by default
\input pdftexconfig.tex

\input latex.ltx