rgheck wrote:
Paul Smith wrote:
On Jan 26, 2008 8:25 AM, Timothy Robinson
<[EMAIL PROTECTED]>
wrote:
I have some long in-line equations which go over the margin. Is it
possible to force lyx to split them over two lines, so as to keep to
the margin?
You can split them yourself with
Insert --> Math --> AMS Multiline environment.
He was asking about inline equations. The multiline environment works
only for display equations.
LaTeX will normally break such equations for you. Presumably, in this
case, there is no good place to break it, and LaTeX is refusing to do
so. I don't myself know how to force a linebreak in such cases, other
than by splitting the equation between two equation boxes.
According to "Math mode - v.2.09" by Herbert Voß (highly recommended),
section 2.6, LaTeX will break a formula only at a relational or binary
operator that is at the outermost level. So, for instance,
{f(x)=a+b+c+d+e+f+g+h+i+j+k+l+m+n} will not break, due to the enclosing
braces, but {f(x)=a+b+c+d+e+f+g}{+h+i+j+k+l+m+n} will break between g
and h. So one possibility, assuming there are suitable operators in
suitable positions, would be to rejigger the use of braces to expose one
or more of them at the outer level.
Richard's idea of splitting into two math insets will work, but it may
require a bit of fiddling -- the space between the two insets won't
match the spacing within the original inset (unless you help it along).
/Paul