I just encountered the following when editing a question:
This is how I ended up with what I had:
- Start with
$sin(t), 0<=t<=pi$
(without the quotes that I obviously have in my source text, so it actually renders the math) - Add a backslash before
pi
- Use the arrow keys and backslash to remove the rightmost
<=
, and replace it with\leq
- Do the same with the left
<=
. Remember to add a space after this\leq
, since\leqt
isn't a command
It took me a couple of minutes of testing to see what had actually happened. As I type the second \leq
, for a brief moment it says \let\leq\pi
. This effect persists even after the command has vanished. I can't believe I haven't encountered it before, but there it is.
I don't know whether the \let
command is meant to persist after it has been removed, but it sounds strange to me. What do you think?
\let
command, yes. $\endgroup$