I want to create a command for adding a superscript *
to a variable, indicating its "optimal" value. However, when I do this, the superscript is added after the subscript instead of right above:
\documentclass{article}
\newcommand{\optimal}[1]{{#1}^*}
\begin{document}
$V_N^*$ vs. $\optimal{V_N}$
\end{document}
My question is: how can I write a newcommand which would add the superscript above the subscript?
\newcommand{\optimal}[1]{#1^*}
– user121799 Nov 6 '18 at 17:39