[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [eLyXer-users] non-breaking formulas at end of line
From: |
Alex Fernandez |
Subject: |
Re: [eLyXer-users] non-breaking formulas at end of line |
Date: |
Mon, 6 Dec 2010 13:32:19 +0100 |
Hi,
On Mon, Dec 6, 2010 at 2:02 AM, Jose Ramon Alvarez Sanchez
<address@hidden> wrote:
>> How does it behave otherwise? Does it just stretch to the right?
>> Formulas must become pretty unreadable too, don't they?
>
> Yes, to see the effect, for example, just look at the last line of
> section 4.2 in eLyXer math show http://elyxer.nongnu.org/math.html
> while at the same time shrink slowly the width of the browser
> window so the right margin reaches the integral, then only the
> "x" could go to another line while the rest of the equation (integral
> sign and limits) remains at the end of the line, etc. Not all possible
> breaking points in html have some sense in general in an equation
> (except for equal or operators signs, etc.).
Fine, now I think I understand the problem better. I think that your
modification applies to inline formulas, but not to standalone
formulas: the latter would otherwise stretch to the right beyond the
page when the page is shrunk, which is probably not what the author
wanted anyway. Letting standalone formulas wrap alleviates the problem
somehow, although the ideal solution would be to let formulas just
wrap at designated points as you say.
>> > This behaviour can be avoided by just adding the property
>> > "white-space: nowrap;" inside the ".formula{}" style in the css.
>> Done.
>
> Thanks, with that property in the css the previous case does not occur,
> because the whole equation goes to another line if required (no break
> points inside equations).
Let me know if what I committed right now works for you.
Alex.