I'm looking to add an arrow underneath an equals sign to explain the step that has been taken. See below:
To achieve the arrow style that I like to use, I used \drsh
from mathabx
.
I tried using \underset
to set this under the equals sign, but could not achieve the result I was looking for.
\documentclass{article}
\usepackage{enumitem}
\newlength\widest
\usepackage{amsmath}
\usepackage{mathabx}
\begin{document}
\begin{equation*}
\implies \frac{d}{dt} \displaystyle\int_{-\infty}^{+\infty} |\psi (x, t)|^2 \, dx
= \frac{i\hbar}{2m} \left[ \psi^* \frac{\partial}{\partial x} \psi - \left( \frac{\partial}{\partial x} \psi^* \right) \psi \right] \bigg|_{-\infty}^{+\infty}
{\underset{\qquad\text{\makebox[0pt]{{\huge$\drsh$} Testing}}}{=}} 0
\end{equation*}
\end{document}
If at all possible, I would also like to be able to draw something like the following:
I have read things about TikZ being very good for this sort of thing, but I have never used it before. If you think this is the right way to go, could you please offer me a push in the right direction?
I believe it's also worth mentioning that I have been using these \drsh
arrows in text as well, for example something like the following:
\documentclass{article}
\usepackage{enumitem}
\newlength\widest
\usepackage{mathabx}
\begin{document}
\noindent
Some text
\settowidth\widest{{\huge$\drsh$}}
\begin{description}[leftmargin=\dimexpr\widest+\labelsep\relax,labelindent=0pt,
labelwidth=\widest]
\item[{\huge$\drsh$}] Some more text
\end{description}
\end{document}
Is there a smarter way to do this?