blefloch / latex-unravel

Watching TeX digest tokens
24 stars 1 forks source link

Expanding unknown expandable primitive #26

Closed blefloch closed 6 years ago

blefloch commented 6 years ago

Expanding an expandable primitive unknown to unravel, such as \directlua in LuaTeX, incorrectly puts it into the output (not even into the current prev_input) rather than for instance producing an undefined control sequence error or similar. Example:

\RequirePackage{unravel}
\unravel{\edef\foo{\directlua{}}}