\DeclareMathOperator{rk}{rank}
and \newcommand{Lim}{…}
don't work in LaTeX (with default catcodes), but the other two (with or without braces around the command name) work just fine in LaTeX. — LSpice 34 mins ago\DeclareMathOperator{rk}{rank}
and \newcommand{Lim}{…}
don't work in LaTeX (with default catcodes), but the other two (with or without braces around the command name) work just fine in LaTeX. — LSpice 34 mins ago\DeclareMathOperator{rk}{rank}
\DeclareMathOperator{\rk}{rank}
and \DeclareMathOperator\rk{rank}
. It is similar for \newcommand
and \renewcommand
(where \newcommand{\Lim}{....}
, \newcommand\Lim{....}
and \newcommand{Lim}{....}
are valid). This should be kept in mind when creating a regex for the blacklist.