Previously, an undefined identifier like \foo would be emitted verbatim as text rather than raising a warning. The reasoning behind this was to smoothly support referring to existing commands in TeX-like environments (including KaTeX and embedded LaTeX). The trade-off was that authors would not receive warnings about what were in many cases typographical errors.
In Forester 5.0, the fallthrough behaviour of undefined identifiers is now restricted to code that is evaluated within a TeX-like environment (either KaTeX or embedded LaTeX). In all other cases, a warning will be emitted. This involves a trade-off, because the arguments to a macro like
\def\my-macro[x]{#{\int_{\x}}}
are evaluated first
outside the math scope. Therefore, a call like
\int{\alpha} written outside of a math scope would result in a warning. The recommended solution to this problem is to use a
lazy argument, which will be evaluated in CBN. Here is an updated version of the macro that works uses a lazy argument:
\def\my-macro[~x]{#{\int_{\x{}}}}The design is admittedly imperfect, but I believe this is an improvement as it allows us to catch more typos. I expect that the handling of undefined identifier fallthrough will continue to evolve.