- Documentation
- Manuals
- Tutorials
- Presentations
- LyX Functions
- Troubleshooting
- Suggested reading
- Official web site
Edit Links |
Examples /
## PreventingLinebreakInInlineFormula
<< | Page list | >>
## How can I prevent LaTeX from inserting a linebreak in an inline formula?## ProblemIf I have an inline formula at the end of a line, LaTeX may break this formula and split it over two lines. How can I prevent this? ## Quick solutionPut the formula inside an mbox ## Detailed solution- Enter to math mode (either for inline formula or display formula)
- Type \mbox and then a press ENTER or SPACE
- The text "\mbox" disappears and a blue box appears in its place
- Select math mode (again!)
- Type the equation inside the box
## Example fileuploads:/Examples/preventingLinebreakInInlineFormula.lyx ## Another solutionThis solution simply prevents line breaking formulas unless a very extreme case happens. To use this solution just add the following lines to the latex-preamble: \relpenalty=9999 \binoppenalty=9999 setting the number to 10000 will prevent all the line breaks, including in extreme cases. |

Page last modified on 2012-01-31 15:10 UTC