I’m considering using a backwards R to represent a reflection (mirroing) operation. Although I expected \reflectbox to reflect the geometry of the character, somehow the character becomes replaced by a Cyrillic Ya. \ensuremath{} resolves the issue, although why is a bit mysterious. Even more mysterious is what mechanism substitutes the character when I suppose relsize reverts to math mode.
\documentclass{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{relsize}
\begin{document}
\Huge
$R$
$\reflectbox{\ensuremath{R}}$
\\\
$\reflectbox{R}$
$\reflectbox{\protect{R}}$
$\protect{\reflectbox{R}}$
\end{document}
Can anyone explain what mechanism causes the backwards R to get converted to a Ya?
Bonus points if you can put into concrete terms why using a backward R_p to represent reflection about a plane is a terrible idea.
Thanks!



\reflectboxtreats its argument as text. You want\reflectbox{$R$}. – campa Sep 04 '22 at 19:22\protect{protects{which will do nothing if you are lucky and completely break things if you are not. I can't think of any cases where it can do anything useful. – David Carlisle Sep 04 '22 at 20:56