summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/base/ltdirchk.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/base/ltdirchk.dtx')
-rw-r--r--Master/texmf-dist/source/latex/base/ltdirchk.dtx41
1 files changed, 34 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/base/ltdirchk.dtx b/Master/texmf-dist/source/latex/base/ltdirchk.dtx
index 11af47cdd7f..96727458b88 100644
--- a/Master/texmf-dist/source/latex/base/ltdirchk.dtx
+++ b/Master/texmf-dist/source/latex/base/ltdirchk.dtx
@@ -28,7 +28,7 @@
% \fi
%
% \ProvidesFile{ltdirchk.dtx}
-% [2015/01/03 v1.1 LaTeX Kernel (System Dependent Parts)]
+% [2015/81/33 v1.2 LaTeX Kernel (System Dependent Parts)]
%
% \iffalse
%%% From File: ltdirchk.dtx
@@ -82,7 +82,7 @@
% {documentation improvements mainly from internal/2520}
% \changes{v1.0w}{1998/08/17}{(RmS) Documentation improvements.}
%
-% \CheckSum{606}
+% \CheckSum{618}
%
% \section{\LaTeX\ System Dependent Initialisations}
%
@@ -225,6 +225,7 @@
\catcode`\}=2
% \end{macrocode}
% \changes{v1.1}{2015/01/03}{Enable extra primitives when Lua\TeX{} is used}
+% \changes{v1.2}{2015/08/23}{Do not use luatex prefix}
% If Lua\TeX{} is in use the extensions and other new primitives
% have to be activated: this is done as early as possible. Older
% versions of Lua\TeX{} do not hide the primitives: a version check is
@@ -237,17 +238,43 @@
% \end{macrocode}
% Enable e-TeX/pdfTeX/Umath primitives with their natural names
% \begin{macrocode}
- \directlua{tex.enableprimitives('',%
+ \directlua{tex.enableprimitives("",%
tex.extraprimitives('etex', 'pdftex', 'umath'))}
% \end{macrocode}
-% Enable other primitives with |luatex| prefix
+%
+% In current formats enable primitives with unprefixed names.
+% the \textsf{latexrelease} guards allow the primitives to be
+% defined with a |\luatex| prefix if older formats are specified.
+% \begin{macrocode}
+%</initex>
+%</dircheck>
+%<*initex,latexrelease>
+%<latexrelease>\ifx\directlua\undefined\else
+%<latexrelease>\IncludeInRelease{2015/10/01}{\luatexluafunction}
+%<latexrelease> {LuaTeX (prefixed names)}%
+ \directlua{tex.enableprimitives("",%
+ tex.extraprimitives("omega", "aleph", "luatex"))}
+%<latexrelease>\EndIncludeInRelease
+%<latexrelease>\IncludeInRelease{0000/00/00}{\luatexluafunction}
+%<latexrelease> {LuaTeX (prefixed names)}%
+%<latexrelease>\directlua{
+%<latexrelease> tex.enableprimitives(
+%<latexrelease> "luatex",
+%<latexrelease> tex.extraprimitives("core","omega", "aleph", "luatex")
+%<latexrelease> )
+%<latexrelease>}
+%<latexrelease>\EndIncludeInRelease
+%<latexrelease>\fi
+%</initex,latexrelease>
+%<*dircheck>
+%<*initex>
+% \end{macrocode}
+%
% \begin{macrocode}
- \directlua{tex.enableprimitives('luatex',
- tex.extraprimitives('core', 'omega', 'aleph', 'luatex'))
- }
\fi
\fi
% \end{macrocode}
+%
% That distraction over, back to the basics of a format.
% \begin{macrocode}
\catcode`\#=6