Question about carriage returns.

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

$\displaystyle \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:

$\displaystyle \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}}$

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

Re: Question about carriage returns.

Quote:

Originally Posted by

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

$\displaystyle \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:

$\displaystyle \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}}$

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

The answer is simply **no**.

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

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.