I would like to define a command using verbatim like in the commented line in the following code.
\documentclass{article}
\usepackage{amsmath,amsfonts,amssymb}
% \newcommand{\example}[1]{\verb!#1! : #1}
\begin{document}
\noindent \verb!$\textbf{A}^\intercal$! : $\textbf{A}^\intercal$
\\
\example{$\textbf{A}^\intercal$}$
\end{document}
How can I acheive this? Is it possible to give the argument without the dollars?
