1

For some reason, the following code compiles as shown on the picture.

\begin{equation}
    t_{0\rightarrow1}
    \equiv\frac{1}{2}(X-iY)
    = \begin{pmatrix}
       0 & 0 \\
       1 & 0
      \end{pmatrix}
\end{equation}

Where is this extra space at the bottom coming from, and how do I remove it? It looks like the parenthesis are correctly vertically aligned, but the rows are not... Also, clearly, the parenthesis are too big.

enter image description here

UPDATE: RESOLUTION

So it turned out that earlier in the code I used the solution from this answer to align my equations nicely. Namely, I added a line

\savebox\strutbox{$\vphantom{\sum\limits_{k}}$}

to my code. However, I forgot to put the equation into {}, and so this caused the weird alignment later.

mavzolej
  • 556

1 Answers1

4

There is nothing wrong with your code.

The MWE

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\begin{equation}
t_{0\rightarrow1}
\equiv\frac{1}{2}(X-iY)
= \begin{pmatrix}
   0 & 0 \\
   1 & 0
\end{pmatrix}
\end{equation}

\end{document}

results in the following output.

Output of the MWE.

There seems to be a side-effect due to another package loaded. You can add the other packages you employ one by one and thereby determine where the problem comes from.

Matthias
  • 1,956