Go to page:

Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

LyX /

MathInLyX

Please categorize this page.
<< LyXForX | Page list | InstantPreview >>

Writing math in LyX using the Math Editor.

Here we present especially the things that you can do in MathEd which are not generally known or well documented in the general documentation.

Partitioned matrices

You can create a partitioned matrix by adding partitioning rulers to a matrix. To do this, you have to create the matrix from scratch; in the creation dialogue you are presented with an "alignment string", which looks like "ccccc" for a five-column matrix.

Now, to get a vertical rule, just add a pipe symbol "|" in-between in the right place. Both LyX and LaTeX will render it correctly.

To get a horizontal rule, place the latex command \hline (which will be visible as a red word) at the start of the first cell of the row below the intended rule.

If you save and re-load your document, also the horizontal rule will be rendered WYSIWYG fashion.

Copying and pasting arbitrary rectangles

This just works. Try it! It's a quick way to fix up a matrix that is finished but "wrong", if the standard matrix editing commands are not enough to do what you want to do -- like adding partitioning rules. Then, create a new matrix, and move over the content from the old one, rectangle by rectangle.

Whitespace around horizontal rules

Two different methods, both work, for text tables as well as math arrays:

\usepackage{colortbl}
\setlength\minrowclearance{2pt}

or

\usepackage{array}
\setlength\extrarowheight{2pt}

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2005-12-02 00:20 CET