I'm having some small spacing glitches with this stack, and I'm wondering about the best way to do this:
\documentclass[11pt,letterpaper,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry}
\usepackage{microtype}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{mathtools}
\usepackage{tensor}
\begin{document}
\begin{equation}
A_{\mu \nu \lambda} +
\left[ \: \substack{
\mu \; \rightarrow \; \lambda \\
\nu \; \rightarrow \; \mu \\
\lambda \; \rightarrow \; \nu
} \: \right] +
\left[ \: \substack{
\mathstrut \smash{\mu \; \rightarrow \; \nu} \\
\mathstrut \smash{\nu \; \rightarrow \; \lambda} \\
\mathstrut \smash{\lambda \; \rightarrow \; \mu}
} \: \right]
\end{equation}
\end{document}
Preview:
As you can see on the preview, the second part has variable vertical spacings (mostly because of the lambda symbol), which I find very ugly. I hacked it (last part) by smashing everything and added a phantom vertical space (using \mathstrut
). But is there a better or simpler way of doing this? How can I get a better result?
\substack
instead of something like anarray
? – Vincent Jul 24 '20 at 17:14