I want to mark a variable I with a short vertical or horizontal bar in order to relate it to something being vertical or horizontal in real life. For the vertical line, $I^\shortmid$
(from amssymb
) is looking very nicely, but I can't produce a horizontal line of equal length. I tried $I^{\rotatebox[origin=c]{90}{$\shortmid$}}$
, however this makes the bar longer for reasons I don't understand:
Taking a different symbol like I^-
and I^\text{-}
produces ugly results as well. Can someone please explain what is happening inside the \rotatebox
and suggest a fix? I will also appreciate any alternative markup.