diff options
-rw-r--r-- | Master/texmf/tex/generic/config/luatexprimitives.tex | 19 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/luatex.tlpsrc | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/Master/texmf/tex/generic/config/luatexprimitives.tex b/Master/texmf/tex/generic/config/luatexprimitives.tex new file mode 100644 index 00000000000..2a16579847a --- /dev/null +++ b/Master/texmf/tex/generic/config/luatexprimitives.tex @@ -0,0 +1,19 @@ +% $Id$ +% Enable and prefix LuaTeX primitives for LaTeX-based formats +% % Maybe Plain based formats too, for the sake of generic macros? +% Manuel Pégourié-Gonnard, 2009. Public domain. +\begingroup +\catcode`\{=1 +\catcode`\}=2 +\expandafter\ifx\csname luatexversion\endcsname\relax + \let\luatexversion\undefined + \directlua{ + % etex and pdftex primitives are enabled without prefixing + tex.enableprimitives('', + tex.extraprimitives('etex', 'pdftex')) + % other primitives are prefixed with luatex + tex.enableprimitives('luatex', + tex.extraprimitives('omega', 'alpeh', 'luatex')) + } +\fi +\endgroup diff --git a/Master/tlpkg/tlpsrc/luatex.tlpsrc b/Master/tlpkg/tlpsrc/luatex.tlpsrc index 409ebdbe570..b132cab5eeb 100644 --- a/Master/tlpkg/tlpsrc/luatex.tlpsrc +++ b/Master/tlpkg/tlpsrc/luatex.tlpsrc @@ -15,6 +15,7 @@ docpattern f texmf/doc/man/man1/luatex.* docpattern f texmf/doc/man/man1/texlua* # runpattern f texmf/tex/generic/config/luatexiniconfig.tex +runpattern f texmf/tex/generic/config/luatexprimitives.tex # binpattern f bin/${ARCH}/dviluatex binpattern f bin/${ARCH}/luatangle |