]> git.lyx.org Git - wiki-uploads.git/blob - Examples/preventingLinebreakInInlineFormula.lyx
Add memoir-makeindex module and script
[wiki-uploads.git] / Examples / preventingLinebreakInInlineFormula.lyx
1 #LyX 1.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 221
3 \textclass article
4 \language english
5 \inputencoding auto
6 \fontscheme default
7 \graphics default
8 \paperfontsize default
9 \spacing single 
10 \papersize Default
11 \paperpackage a4
12 \use_geometry 0
13 \use_amsmath 0
14 \use_natbib 0
15 \use_numerical_citations 0
16 \paperorientation portrait
17 \secnumdepth 3
18 \tocdepth 3
19 \paragraph_separation indent
20 \defskip medskip
21 \quotes_language english
22 \quotes_times 2
23 \papercolumns 1
24 \papersides 1
25 \paperpagestyle default
26
27 \layout Standard
28
29 This is an example of preventing LaTeX from breaking a formula by using
30  an 
31 \begin_inset Quotes eld
32 \end_inset 
33
34 mbox
35 \begin_inset Quotes erd
36 \end_inset 
37
38 .
39  The solution is to place an 
40 \begin_inset Quotes eld
41 \end_inset 
42
43 mbox
44 \begin_inset Quotes erd
45 \end_inset 
46
47  inside the formula, and then inside the mbox once again enter math mode
48  and there write the formula.
49  
50 \layout Enumerate
51
52 An example of an inline formula that doesn't use an mbox: 
53 \begin_inset Formula $a+b+c+d+e+f+g$
54 \end_inset 
55
56 .
57 \layout Enumerate
58
59 An example of an inline formula that does use an mbox 
60 \begin_inset Formula $\mbox{$a+b+c+d+e+f+g$}$
61 \end_inset 
62
63
64 \layout Standard
65
66 Notice how the formula isn't split up in the second example and instead
67  runs out into the margin.
68 \layout Standard
69
70 /Christian
71 \the_end