summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2009-09-04 17:11:45 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2009-09-04 17:11:45 +0000
commit67aa110b94dcc5221f2ee87c0836ebf8f7c97484 (patch)
tree913de30796a53b83412d9821d37e72f6346e8646
parentfbc0ef9dae53b8310341597b37341d5fa8e8a973 (diff)
New policy for LuaTeX primitives in our formats (not active yet).
git-svn-id: svn://tug.org/texlive/trunk@15086 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf/tex/generic/config/luatexprimitives.tex19
-rw-r--r--Master/tlpkg/tlpsrc/luatex.tlpsrc1
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