On Feb 14, 2007, at 4:48 PM, Enrico Forestieri wrote:

Karl-Filip Faxen writes:

I've used LaTeX before and just started using LyX. Now I have trouble
making arrays inside arrays; if I have the cursor in an array cell and
hit the matrix button in math panel, I get "command disabled" and the
array item in the "Insert->Math" menu is greyed out.

Doh!

I have figured out a workaround, though, which is to create the inner
matrix somewhere else and then pasting it into the enclosing cell, but
that procedure is not exactly convenient. Is there a saner way?

No, I am afraid. There is no reason to not allow an array inside an array.
LaTeX allows this, so it is wrong to disallow it in LyX. Please file a
bug report at http://bugzilla.lyx.org/

--
Enrico


Hi,
there is another way, if you're willing to use the \matrix or \pmatrix commands provided by AMSmath. If you're in a math environment and type \pmatrix, a matrix is created whose dimensions you can change using the "Edit>Rows&Columns" menu (it's not accessible if you're not in a matrix environment). Now if you want to create a block (or "sub-matrix") inside that matrix, just type \pmatrix again, and go through the same dimensioning steps. Type \matrix to get an "array" without surrounding brackets, or try \bmatrix, \Bmatrix, \vmatrix, \Vmatrix. This is described in the AMSmath documentation, but also in Uwe Stöhr's excellent LyX math manual (which I only have in German - is it out in English yet?).

Jens




Reply via email to