Discussion:
Entering a vertical vector with brackets
Rich Shepard
2004-02-09 17:35:32 UTC
Permalink
I've looked in Chapter 5 of the Users Guide and the latest edition of
Herbert's Math-mode book, as well as on the math panel and Edit->Math menu
without seeing how to enter a vertical vector with brackets on either side.

I've tried using the matrix mode from the math panel, with 2 columns and 3
rows and I can get:

W_1
W = W_2
W_3

but I cannot get square brackets on either side of the vector. I can do this
for a single cell, but not all three. It must be something simple I've
missed.

Thanks,

Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com>
Nirmal Govind
2004-02-09 17:46:38 UTC
Permalink
Post by Rich Shepard
but I cannot get square brackets on either side of the vector. I can do this
for a single cell, but not all three. It must be something simple I've
missed.
In math mode, first insert the square brackets, then insert a matrix
with three rows and one column.. you'll see the square brackets
expand vertically.

nirmal
Rich Shepard
2004-02-09 18:18:22 UTC
Permalink
In math mode, first insert the square brackets, then insert a matrix with
three rows and one column.. you'll see the square brackets expand
vertically.
nirmal,

Sigh. It's all in the wrist, isn't it? I kept entering the matrix then
trying to put brackets around it. In retrospect it makes sense to work from
the outside in.

Many thanks,

Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com>
Christian Ridderström
2004-02-09 19:06:17 UTC
Permalink
Post by Rich Shepard
In math mode, first insert the square brackets, then insert a matrix with
three rows and one column.. you'll see the square brackets expand
vertically.
nirmal,
Sigh. It's all in the wrist, isn't it? I kept entering the matrix then
trying to put brackets around it. In retrospect it makes sense to work from
the outside in.
You can do that too... just select what you put brackets around and then
type M-m [
(or M-m ( etc)

/Christian
--
Christian Ridderström http://www.md.kth.se/~chr
Christian Ridderström
2004-02-09 17:48:56 UTC
Permalink
Post by Rich Shepard
I've looked in Chapter 5 of the Users Guide and the latest edition of
Herbert's Math-mode book, as well as on the math panel and Edit->Math menu
without seeing how to enter a vertical vector with brackets on either side.
Just type M-m [ to insert a pair of square brackets. For similar tips, see
http://wiki.lyx.org/pmwiki.php/Tips/FrequentlyUsedShortcuts

/Christian
--
Christian Ridderström http://www.md.kth.se/~chr
Jean-Pierre.Chretien
2004-02-09 17:46:46 UTC
Permalink
Post by Rich Shepard
but I cannot get square brackets on either side of the vector. I can do this
for a single cell, but not all three. It must be something simple I've
missed.
AFAIR, you should call the brackets or parentheses BEFORE callind
the vector (i.e. the underlying array).
--
Jean-Pierre
Herbert Voss
2004-02-09 18:01:31 UTC
Permalink
Post by Rich Shepard
I've looked in Chapter 5 of the Users Guide and the latest edition of
Herbert's Math-mode book, as well as on the math panel and Edit->Math menu
without seeing how to enter a vertical vector with brackets on either side.
I've tried using the matrix mode from the math panel, with 2 columns and 3
W_1
W = W_2
W_3
but I cannot get square brackets on either side of the vector. I can do this
for a single cell, but not all three. It must be something simple I've
missed.
insert \[W = \begin{bmatrix}W_1\\W_2\\W_3\end{bmatrix}\]

mark it with the cursor/mouse and hit ctrl-m andbe sure, that
use amsmath is enabled. Do _not_ use brackets and an array.
p. 57 in my math doc

Herbert
Karsten Heymann
2004-02-09 19:56:16 UTC
Permalink
On Mon, 09 Feb 2004 19:01:31 +0100
Post by Herbert Voss
insert \[W = \begin{bmatrix}W_1\\W_2\\W_3\end{bmatrix}\]
If you're like me: "insert" must *not* be typed in (and trying to insert
it as a lfun doesn't work either...). Then it works beautifully.
Post by Herbert Voss
mark it with the cursor/mouse and hit ctrl-m andbe sure, that
use amsmath is enabled. Do _not_ use brackets and an array.
p. 57 in my math doc
Yes, it looks much better than brackets+array.

Thanks,
Karsten

Loading...