On Fri, 22 Oct 2004 19:42:29 +0200, Andre Poenitz <[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. Paul
