4

In the following LaTeX document, which uses the aligned environment inside multlined, there is an superfluous space after the opening { compared to when multlined is replaced by split:

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{gather}
  \begin{multlined}
  %\begin{split}
    \begin{rcases}
      a_1\\
      a_2
    \end{rcases} = \\
    \left\{\begin{aligned}
      b_1\\
      b_2
    \end{aligned}\right\} x
  %\end{split}
  \end{multlined}
\end{gather}
\end{document}

How can I remove the superfluous space? I have seen similar questions, e.g. aligned in multlined produces superfluous space, but they are different, because there, the superfluous space is before the closing } instead.

Example with multlined: Example with multlined

Example with split: Example with split

1
  • I believe you've discovered another “feature” of multlined
    – egreg
    Commented Jun 18 at 20:44

1 Answer 1

5

it looks like a bug that aligned is picking up the nested settings (I think I have seen that before) but you can work around it by setting it outside the display

enter image description here

\documentclass[a4paper]{article}
\usepackage{mathtools}
\begin{document}

\sbox0{$\begin{aligned}b_1\\b_2\end{aligned}$}
\begin{gather}
\begin{multlined}
%\begin{split}
\begin{rcases}a_1\\
a_2\end{rcases} = \\
\left\{\usebox{0}\right\}x
%\end{split}
\end{multlined}
\end{gather}
\end{document}
4
  • Thanks for the quick reply, David. Since you consider the behavior a bug, would it make sense to open an issue on github? Or is this already being tracked?
    – usertcl
    Commented Jun 21 at 17:13
  • yes if you open the issue (rather than me) you'll get notified if we ever get round to fixing it. I guess on mathtools rather than amsmath github @usertcl Commented Jun 21 at 17:51
  • Okay, I have opened github.com/latex3/mathtools/issues/60
    – usertcl
    Commented Jun 23 at 15:05
  • @usertcl yes, it mailed me, thanks:-) Commented Jun 23 at 15:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .