I would like a macro that takes a single argument, makes the argument bold, rotates it by -90 degrees around its center, and automatically scales it to the correct font size depending on where it is used. The macro will be used exclusively in math mode.
As you can see in the output of the MWE, the font size of the subscript using the \rot{0}
command is too large. How can I fix this issue to get the correct font size?
MWE
\documentclass{article}
\usepackage{amsmath,graphicx}
\newcommand{\std}[1]{\mathbf{#1}}
\newcommand{\rot}[1]{\mathbin{\rotatebox[origin=c]{-90}{$\mathbf{#1}$}}}
\begin{document}%
$\std{0}, ~ \rot{0}, ~ x_\std{0}, ~ x_{\rot{0}}$
\end{document}%
Output MWE