How can I left-align text in substack
from amsmath
? If it isn't built for this, is there a command which is?
This answer suggests that a tabular might work, but I don't know enough about fonts to do it myself: https://tex.stackexchange.com/a/728947/319072
I will study it in the mean time.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\xrightarrow
[
\substack
{
\text{This is some text.}\\
\text{This is some more text.}
}
]
{}
\]
\end{document}
To elaborate on my above comment:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\xrightarrow
[
\begin{tabular}{@{}l@{}}
\text{This text is not as small as substack text.}\\
\text{Neither is this text.}
\end{tabular}
]
{
\text{This is the size of substack text.}
}
\]
\end{document}
\substack{...}
just\begin{subarray}{c}... \end{subarray}
making the answer self evident.