+ %% math
+ \ifltj@in@latex
+ \frozen@everymath{\luafunction\ltj@@box@dirhook\check@mathfonts\the\everymath}
+ \else
+ \let\ltj@@everymath=\everymath\newtoks\ltj@@i@everymath\let\everymath=\ltj@@i@everymath
+ \ltj@@everymath{\luafunction\ltj@@box@dirhook\the\ltj@@i@everymath}
+ \fi
+ %% display
+ \ifltj@in@latex
+ \frozen@everydisplay{\luafunction\ltj@@box@dirhook\check@mathfonts\the\everydisplay}
+ \else
+ \let\ltj@@everydisplay=\everydisplay\newtoks\ltj@@i@everydisplay\let\everydisplay=\ltj@@i@everydisplay
+ \ltj@@everydisplay{\luafunction\ltj@@box@dirhook\the\ltj@@i@everydisplay}
+ \fi