
Alimentando
\documentclass{article}
\pagestyle{empty}
\usepackage{mathtools}
\begin{document}
\[
\begin{multlined}[c]
\text{Line}\ 1\\
\begin{aligned}[c]
&\text{Line}\ 2.1\\
\lor\ &\text{Line}\ 2.2\\
\lor\ &\text{Line}\ 2.3
\end{aligned}\text{stuff to the right}
\end{multlined}
\]
\end{document}
para pdflatex
rendimentos
Como você pode ver, há algum espaço em branco antes de “coisas à direita”.
Você pode pensar que isso não é tão ruim assim, mas aqui fica pior:
\documentclass{article}
\pagestyle{empty}
\usepackage{mathtools}
\begin{document}
\[
\begin{multlined}[c]
\text{Line}\ 1\\
\land \begin{aligned}[c]
\left(
\begin{aligned}[c]
&\text{Line}\ 2.1\\
\lor\ &\text{Line}\ 2.2\\
\lor\ &\text{Line}\ 2.3
\end{aligned}
\right)
\end{aligned}
\end{multlined}
\]
\end{document}
produz
Como você pode ver, há um espaço em branco supérfluo à esquerda do parêntese de fechamento direito. Se tivermos fórmulas mais longas e mais aninhamentos de ambiente, o espaço em branco aumenta. De onde vem esse espaço? Como se livrar dele sem colocar distâncias negativas codificadas, como \mskip-5mu
? Aliás, \mleft(…\mright)
em vez de \left(…\right)
resultar no mesmo problema.
Responder1
Suponho que o resultado desejado do seu MWE seja:
Para isso eu uso pmatrix
em vez de aligned
:
\documentclass{article}
\pagestyle{empty}
\usepackage{mathtools}
\begin{document}
\[\setlength\arraycolsep{2pt}
\begin{multlined}
\text{Line}\ 1\\
\land \begin{pmatrix}
&\text{Line } 2.1\\
\lor &\text{Line } 2.2\\
\lor &\text{Line } 2.3
\end{pmatrix}
\end{multlined}
\]
\end{document}
ou com uso de array
:
\documentclass{article}
\pagestyle{empty}
\usepackage{mathtools}
\begin{document}
\[\setlength\arraycolsep{3pt}
\begin{multlined}
\text{Line}\ 1\\
\land \left(\begin{array}{rl}
&\text{Line } 2.1\\
\lor &\text{Line } 2.2\\
\lor &\text{Line } 2.3\\
\end{array}\right)
\end{multlined}
\]
\end{document}
Responder2
Não sei de onde vem o espaço. Veja como se livrar dele enquanto mantém a distância da linha e o estilo de exibição.
\documentclass{article}
\pagestyle{empty}
\usepackage{mathtools}
\begin{document}
\[
\begin{multlined}[c]
\text{Line}\ 1\\
\begin{alignedat}[c]{1}
&\text{Line}\ 2.1\\
\lor\ &\text{Line}\ 2.2\\
\lor\ &\text{Line}\ 2.3
\end{alignedat}\text{stuff to the right}
\end{multlined}
\]
\end{document}
rendimentos