1

I'm trying to TeX some nice equations but there is a strange behaviour when I use an aligned-environment in an align*-environment. I think one little example makes my problem clear:

\begin{align*}
& A \land \\
& \begin{aligned}
B = & B1 \land \\
    & B2
\end{aligned} \\
\Longrightarrow \;& what follows from A \land B
\end{align*}

When I compile this A and B are not equal aligned. It seems like the beginning of the aligned-environment produces a little space. Any idea?

2
  • Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question.
    – Werner
    Commented Jan 19, 2014 at 21:36
  • Could you perhaps provide what exactly you're after? There may be better ways of doing what you're looking for.
    – Werner
    Commented Jan 19, 2014 at 21:45

1 Answer 1

1

You can get the "A" in the first row and the "B" in the second row to line up by insering a "thinspace", \,, in front of "A". Incidentally, in the second row it's preferable to write &= rather than =& in order to get the typographically appropriate amount of spacing around the = symbol.

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
& \,A \land \\
& \begin{aligned}
   B &=  B1 \land \\
   &\phantom{{}={}} B2
\end{aligned} \\
\Longrightarrow &\text{ what follows from A $\land$ B}
\end{align*}
\end{document}

You must log in to answer this question.