# Math Help - Question about carriage returns.

1. ## Question about carriage returns.

Let's say that I'd like to type in the following matrix equation.

$\begin{bmatrix}1 & 0 & 0 & 0 \\0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} 1 \\ 1 \\ 1 \\ 1 \end{bmatrix} = \begin{bmatrix} 1 \\ 1 \\ 1 \\ 1 \end{bmatrix}}$

But let's say that I'd like to actually type in the Latex as follows: For clarity of editing the text.

[ TEX]\begin{bmatrix}
1 & 0 & 0 & 0 \\
0 & 1 & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 0 & 0 & 1 \end{bmatrix}
\begin{bmatrix}
1 \\
1 \\
1 \\
1 \end{bmatrix}
= \begin{bmatrix}
1 \\
1 \\
1 \\
1 \end{bmatrix}}[/TEX ]

Is there any way I can do that and suppress the breaks from showing up as they do in the following:

$\begin{bmatrix}
1 & 0 & 0 & 0 \\
0 & 1 & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 0 & 0 & 1 \end{bmatrix}
\begin{bmatrix}
1 \\
1 \\
1 \\
1 \end{bmatrix}
= \begin{bmatrix}
1 \\
1 \\
1 \\
1 \end{bmatrix}}$

$\begin{bmatrix} T \\ h \\ a \\ n \\k \\s \end{bmatrix}}$

2. ## Re: Question about carriage returns.

Originally Posted by Zeno
Let's say that I'd like to type in the following matrix equation.

$\begin{bmatrix}1 & 0 & 0 & 0 \\0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} 1 \\ 1 \\ 1 \\ 1 \end{bmatrix} = \begin{bmatrix} 1 \\ 1 \\ 1 \\ 1 \end{bmatrix}}$

But let's say that I'd like to actually type in the Latex as follows: For clarity of editing the text.

[ TEX]\begin{bmatrix}
1 & 0 & 0 & 0 \\
0 & 1 & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 0 & 0 & 1 \end{bmatrix}
\begin{bmatrix}
1 \\
1 \\
1 \\
1 \end{bmatrix}
= \begin{bmatrix}
1 \\
1 \\
1 \\
1 \end{bmatrix}}[/TEX ]

Is there any way I can do that and suppress the breaks from showing up as they do in the following:

$\begin{bmatrix}
1 & 0 & 0 & 0 \\
0 & 1 & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 0 & 0 & 1 \end{bmatrix}
\begin{bmatrix}
1 \\
1 \\
1 \\
1 \end{bmatrix}
= \begin{bmatrix}
1 \\
1 \\
1 \\
1 \end{bmatrix}}$

$\begin{bmatrix} T \\ h \\ a \\ n \\k \\s \end{bmatrix}}$

The LaTeX compiler used here inserts a <br> at every 'linefeed' within the [TEX][/TEX] wrap.

3. ## Re: Question about carriage returns.

Oh pooh.

Well, that's ok. I have a trick I can use in my word processor to get around this. It'll just cost a few extra steps is all. But it'll be worth it since I'm going to be doing a lot of matrices. Thanks for the quick reply.