- Documentation
- Manuals
- Tutorials
- Presentations
- LyX Functions
- Troubleshooting
- Suggested reading
- Official web site
Edit Links |
Examples /
## FormulaOnMultipleLinesCategories: Math mode << | Page list | >>## Illustration of how you can enter a formula on two or more lines
The purpose of this example is to illustrate how you can enter a formula like this: which on this page will be written as below: F = a + b + c + d + e + f + g + h + i + j + l + m + n + o
## Instructions- Start a new math-inset by pressing S-C-m.
- Type F=a+b+c+d+e+f+g+h+i+ to enter the first line. It should look like this: F = a + b + c + d + e + f + g + h + i +|
where ' `|` ' indicates the position of the cursor.
- Now press C-Enter. This will move the cursor to between the '
`F` ' and the '`=` ', like this: F | = a + b + c + d + e + f + g + h + i +
Note that the cursor has moved and the space around the equal sign has increased. You have actually changed into a new math-mode where you can enter equations over several lines.
- Now press End twice to move the cursor to the rightmost position, i.e. like this:
F = a + b + c + d + e + f + g + h + i +| - Now press C-Enter to add a second line (which will contain three empty blue boxes) and Down to move the cursor down.
F = a + b + c + d + e + f + g + h + i + | - Finally type j + l +m + n + o and you are done. The result should look like this:
## CommentsIf you have an object that is within big brackets and it needs to span two lines, e.g. something like this: F = (a+b+c+d+e+ f+g+h+i+j+k)^^2^^ Then, you could use the math-panel to insert a special pair of brackets. On the upper line, you insert a pair of brackets where the right side is empty, and on the lower line you insert a pair of brackets where the left side is empty. The result would look like this: - Herbert pointed out that this approach can look ugly because the parenthesis are of different size...
One solution is to insert a \vphantom{} like this which amounts to making the parenthesis big enoug to cover an 'A' on both lines. See FAQ.Unsorted#phantom for some more information. ## Related material- german LyX-Math-Manual? chapter 18.
- PDF-document [CTAN] about different math-environments.
- uploads:/Examples/formulaOnMultipleLines/multline.lyx — an example created by Herbert that uses the environment multline.
## DiscussionFeel free to discuss or comment this example here. ## Contributors |

Page last modified on 2008-06-14 02:17 UTC