Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Consider the .tex extract from below:

\begin{equation*}
A=U\Lambda U^T=\left[\begin{array}{ccc}
&   &  \\
u_1 & \cdots  & u_n \\
&  & 
\end{array}\right]\left[\begin{array}{ccc}
 \lambda_1 &  &  \\
 & \ddots  &  \\
&  & \lambda_n
\end{array}\right]\left[\begin{array}{ccc}
& u_1^T  &  \\
& \vdots  &  \\
& u_n^T & 
\end{array}\right],
\end{equation*}

As you may notice, the surrounding square brackets are not of the same height. How could one achieve the above expression with the same bracket height? (the expression within should be intact)

share|improve this question
    
I do not see any problems. You could look at \begin{bmatrix}\end{bmatrix} if it does not work. –  utdiscant May 15 '12 at 11:28
add comment

1 Answer

up vote 4 down vote accepted

You can use some extra space by \\[3pt] for first and second lines.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
A=U\Lambda U^T=\left[\begin{array}{ccc}
&   &  \\[3pt]
u_1 & \cdots   & u_n \\[3pt]
&  &
\end{array}\right]\left[\begin{array}{ccc}
 \lambda_1 &  &  \\
 & \ddots  &  \\
&  & \lambda_n
\end{array}\right]\left[\begin{array}{ccc}

& u_1^T  &  \\
& \vdots  &  \\
& u_n^T &

\end{array}\right],
\end{equation*}
\end{document}

enter image description here

share|improve this answer
    
It helped, thanks. –  boy May 15 '12 at 11:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.