On Mon, 25 Oct 2004 12:05:27 +0100, Paul Smith <[EMAIL PROTECTED]> wrote: > > > In the dvi file, the equation looks nice, > > > but in LyX the equation is too wide and does not fit in the window. The > > > problem is that it gets difficult to edit, since I don't see what I > > > write at the end of the equation... > > > > > > Either I would like a way of manually line breaking an equation, only > > > in LyX, not in the dvi/pdf/ps file. > > > > I have recently changed my mind about the difficulties to implement such > > a thing and even know of a working implementation *cough*. However, I am > > not sure how this approach translates from toy sized formulas to the > > amount of formulas that may show up on a LyX screen. Idea is to have a > > 'line break inset' and extend the MathArray dim_ cache to a > > vector<Dimension> linedims_, and handle 'line jumps' when 'drawing' such > > a 'line break inset'. Conceptually not very hard, but costs at least 12 > > bytes for the vector 'wrapper' and around 12 + n x lines for the > > dynamic part, i.e at least 28 more byte for _every_ math 'blue box', even for > > those not using the feature. Of course, situation would improve if the > > size cache were moved off the insets, which is also possible an > > intented. But not today...... > > I am not sure whether I correctly understood the point, but another > solution would be to implement (in case of being easy and doable) a > sort of a "view scaling" of the equation likewise it is already > implemented for pictures.
In addition to what I said above, you can circumvent the problem by adjusting the zoom factor (either permanently or temporarily): Edit-->Preferences-->Look and feel-->Screen fonts--Zoom % Maybe, it could be implemented (in next LyX versions) a local (only in the equation area) zoom adjusting facility. Since I am not a programmer, I cannot assess how difficult it would be such an implementation. Paul
