without having to switch off the Lua \sb replacement.
But I guess that something automatic like this can't be done for inline verbatim or for \verbinput or for \code, because the \mathsboff takes effect only from the following input line. Am I right?
With
\mathsbon
in verbatim mode something like\int_a^b
gets replaced by\int _a^b
, even if it shouldn't in my opinion.Of course I can do something like
to get the desired result. But this should be the default behaviour, without having to specify it.
I tried to redefine
\begtt
\endtt
in the following way:Now I can simply type
without having to switch off the Lua
\sb
replacement.But I guess that something automatic like this can't be done for inline verbatim or for
\verbinput
or for\code
, because the\mathsboff
takes effect only from the following input line. Am I right?