Be compatible with LaTeX-dev main branch

This commit is contained in:
Marcel Krüger 2020-06-16 21:14:52 +02:00
parent df8930b685
commit ed130e6ed8
3 changed files with 8 additions and 2 deletions

View File

@ -67,9 +67,11 @@ do
return kpse.find_file(name, 'tex', true) return kpse.find_file(name, 'tex', true)
end end
if status.ini_version then if status.ini_version then
function unhook_expl()
callback_register('find_data_file', normal_find_data_file)
end
callback_register('find_data_file', function(name) callback_register('find_data_file', function(name)
if name == 'ltexpl.ltx' then if name == 'ltexpl.ltx' then
callback_register('find_data_file', normal_find_data_file)
name = 'luametalatex-ltexpl-hook' name = 'luametalatex-ltexpl-hook'
end end
return normal_find_data_file(name) return normal_find_data_file(name)

View File

@ -1,3 +1,6 @@
\directlua{unhook_expl()}
\input luametalatex-baseregisters \input luametalatex-baseregisters
\def\@tfor#1\do#2{} \ifx\@tfor\undefined
\def\@tfor#1\do#2{}
\fi
\input ltexpl.ltx \input ltexpl.ltx

View File

@ -13,6 +13,7 @@
\catcode`\}=2 \catcode`\}=2
\global\chardef\eTeXversion=2 \global\chardef\eTeXversion=2
\global\def\eTeXrevision{.2} \global\def\eTeXrevision{.2}
\directlua{unhook_expl()}
\endgroup \endgroup
\input load-unicode-data.tex \input load-unicode-data.tex
\input etex.src \input etex.src