On Mon, Apr 03, 2006 at 12:28:11PM +0300, Martin Vermeer wrote: > On Sun, Apr 02, 2006 at 08:54:46PM +0300, Martin Vermeer wrote: > > See patch. No GUI support for now. > > Here is a new patch, using enum, and having GUI support. Wasn't so much > work after all. > > Please give this some testing. >
I finally found time and tested it with qt4. The gui was only for qt2, so I typed in \nicefrac \atop \tfrac \dfrac and \choose manually into mathed instead. That's how I work anyway. :-) Everything looked fine in the main window, the dvi and the .tex The tfrac looked the same as an ordinary frac - I have no idea what the difference is supposed to be. The \choose thing looked exactly the same as \atop inside parantheses. Stacking 10 \fracs looks much better than 10 nicefracs, they are clearly not meant to be used that way. :-) "Undo" works as expected, but logs complaints like this: wrong pos 2, max is 1 at level 4. Trying to correct this. correcting cursor to level 3 wrong pos 2, max is 1 at level 4. Trying to correct this. correcting cursor to level 3 wrong pos 2, max is 1 at level 4. Trying to correct this. correcting cursor to level 3 Hm, that may have been something I put inside a nicefrac, for I cannot reproduce right now. Attempts to reproduce lead to a crash though: DocIterator StableDocIterator::asDocIterator(InsetBase*) const Should not happen, but does e.g. after C-n C-l C-z S-C-z dit: inset: 0xdc23f8 idx: 0 par: 1 pos: 11 inset: 0xdcc9a0 idx: 0 par: 0 pos: 0 inset: 0x1098e30 idx: 0 par: 0 pos: 0 lastpos: 0 Assertion triggered in DocIterator StableDocIterator::asDocIterator(InsetBase*) const by failing check "false" in file dociterator.C:566 Again, this may be something else. After the crash I reloaded the emergency saved file, and saw something strange: The \atop and the \choose had red curly braces around them, something they did not have before. Very strange. Looking at an exported .tex shows there is indeed some extra grouping going on, I get ${{binomial \choose choose}}$ This happens on every save+restart+reload cycle. Qt4 seems to have some problems of its own, probably unrelated to this patch. The math panel have many blank buttons, the delimiter dialog have way too low buttons, the arrow buttons are too narrow so tha arrows stick out. And the old problem with squashed toolbar icons is still there. Nice to see the export->tex(pdflatex) stuff merged! Helge Hafting