[latex3-commits] [latex3/tex-ini-files] main: Add luatexiniconfig.tex (78b2d3d)

github at latex-project.org github at latex-project.org
Thu Nov 16 07:14:13 CET 2023


Repository : https://github.com/latex3/tex-ini-files
On branch  : main
Link       : https://github.com/latex3/tex-ini-files/commit/78b2d3d25d099b0af8cb3103eb0e532b80c7b2a9

>---------------------------------------------------------------

commit 78b2d3d25d099b0af8cb3103eb0e532b80c7b2a9
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Nov 16 06:08:49 2023 +0000

    Add luatexiniconfig.tex


>---------------------------------------------------------------

78b2d3d25d099b0af8cb3103eb0e532b80c7b2a9
 README.md           |  1 +
 luatexiniconfig.tex | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/README.md b/README.md
index 89bb9db..19ab3b0 100644
--- a/README.md
+++ b/README.md
@@ -47,6 +47,7 @@ Major changes:
 - 2016-04-14 Do not assume e-TeX availability in `pdftexconfig.tex`
 - 2016-04-15 New approach to loading shared pdfTeX/LuaTeX data
 - 2023-11-15 Align setting of interaction mode across LaTeX .ini files
+- 2023-11-16 Add luatexiniconfig.tex
 
 A full history of this bundle is available from
 https://github.com/latex3/tex-ini-files
diff --git a/luatexiniconfig.tex b/luatexiniconfig.tex
new file mode 100644
index 0000000..f5eb31c
--- /dev/null
+++ b/luatexiniconfig.tex
@@ -0,0 +1,20 @@
+% tex-ini-files 2015-10-12: luatexiniconfig.tex
+
+% Read for plain luatex formats (luatex.ini, dviluatex.ini).
+% Assumes LuaTeX 0.39.x or greater.
+% Originally written 2009 by Manuel P\'egouri\'e-Gonnard. Public domain.
+
+\begingroup
+  \catcode`\{=1
+  \catcode`\}=2
+  %
+  \directlua{
+    % enable all primitives without prefixing
+    tex.enableprimitives('', tex.extraprimitives())
+    %
+    % for compatibility with older LaTeX formats, also provide a
+    % prefixed version of some primitives.
+    tex.enableprimitives('luatex',
+      tex.extraprimitives('core', 'omega', 'aleph', 'luatex'))
+  }
+\endgroup





More information about the latex3-commits mailing list.