I'm writing the transpose of a matrix that is denoted by a bold capital letter. This looks fine when the matrix is denoted by B, but when the matrix is denoted by A, the transpose superscript is too far away from the letter A. Here is a MWE to show what I mean:
\documentclass{article}
\usepackage{amssymb}
\begin{document}
\newcommand\T{{\hspace{-2pt}\intercal}}
\[
\mathbf{A}^\intercal,
\mathbf{B}^\intercal,
\mathbf{A}^\T,
\mathbf{B}^\T
\]
\end{document}
The output is:
One way to deal with this is to use \hspace
to move the transpose superscript a little bit to the left, but this does not look good for B (as shown in the MWE). I could define two different transpose commands, one of which I would use for the transpose of A, and one for the transpose of B. But is there no more elegant and more efficient way of dealing with this?