summaryrefslogtreecommitdiff
path: root/Master/texmf/tex/generic
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 /Master/texmf/tex/generic
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
Diffstat (limited to 'Master/texmf/tex/generic')
-rw-r--r--Master/texmf/tex/generic/config/luatexprimitives.tex19
1 files changed, 19 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