diff options
Diffstat (limited to 'Master/texmf-dist/tex/luatex/optex/base/optex.ini')
-rw-r--r-- | Master/texmf-dist/tex/luatex/optex/base/optex.ini | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/luatex/optex/base/optex.ini b/Master/texmf-dist/tex/luatex/optex/base/optex.ini index e9a8babd910..7702883e3d5 100644 --- a/Master/texmf-dist/tex/luatex/optex/base/optex.ini +++ b/Master/texmf-dist/tex/luatex/optex/base/optex.ini @@ -21,7 +21,7 @@ % OpTeX version -\def\optexversion{Beta 0.16 Oct.2020} +\def\optexversion{Beta 0.17 Nov.2020} \def\fmtname{OpTeX} % Engine testing: @@ -86,10 +86,15 @@ \input languages.opm % languages \input others.opm % miscenaleous +\_directlua{ + % preload OpTeX's lua code into format as bytecode + lua.bytecode[1] = assert(loadfile(kpse.find_file("optex", "lua"))) +} + \_everyjob = {% \_message{This is OpTeX (Olsak's Plain TeX), version <\optexversion>^^J}% \_mathchardef\_fnotestack=\_pdfcolorstackinit page {0 g 0 G}% - \_directlua {callback.register_x = callback.register}% ltluatex.lua rewrites it + \_directlua{lua.bytecode[1]()}% load OpTeX's Lua code \_mathsbon % replaces \int_a^b to \int _a^b \_inputref % inputs \jobname.ref if exists } |