luametalatex/luametalatex-ltexpl-hook.tex
Marcel Fabian Krüger 8494bde0a5 Mostly language stuff
2021-11-20 15:39:43 +01:00

16 lines
553 B
TeX

\directlua{unhook_expl()}
% See baseregisters for list of toks pdfvariables
\directlua{initialize_pdf_toks()}
% We hardcode the ids of two catcodetables. If they ever change in the format, abort.
\if 0\ifnum1=\catcodetable@initex\else1\fi\ifnum2=\catcodetable@string\else1\fi 0\else
\errmessage{Inconsistent catcodetable identifiers}
\fi
\ifx\@tfor\undefined
\def\@tfor#1\do#2{}
\fi
\expanded {\def \noexpand \newlanguage #1\expandafter}\expandafter {%
\newlanguage{#1}%
\directlua{language.new(tex.count.allocationnumber)}%
}%
\input expl3.ltx