Does any one know how to make a single simple command that gives different outputs for displayed and inline maths
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$A^\prime$
\begin{align*}
\overline{A}
\end{align*}
\end{document}
Does any one know how to make a single simple command that gives different outputs for displayed and inline maths
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$A^\prime$
\begin{align*}
\overline{A}
\end{align*}
\end{document}
\newcommand*\simpleA{\mathchoice{\bar{A}}{A'}{(A)}{!A!}}and then\[ \simpleA \frac{\simpleA}{\simpleA}^{\simpleA_{\simpleA}} \]. – Manuel Jan 29 '18 at 11:35\mathchoice. This post and its answers is a good place to start. – Sandy G Jan 29 '18 at 17:32