Skip to main content

mark_everyeof_mouth

Function mark_everyeof_mouth 

Source
pub fn mark_everyeof_mouth() -> Result<()>
Expand description

Mark the CURRENT mouth as an eTeX file level whose end inserts the \everyeof token list (see MouthRuntime::insert_everyeof). Every \input file mouth is marked (content.rs::load_tex_content), and so is the \scantokens pseudo-file (etex.rs).

The mark also makes the mouth a TeX file level, of which at most MAX_IN_OPEN may be open at once: one more is TeX’s “TeX capacity exceeded, sorry [text input levels=15]” (tex.web §328), a Fatal. A macro that \inputs the file it is read from (\def\x{\input loopf }\x, loopf.tex holding \x) otherwise nested files without end.