Jean-Marc's patch, BUGS update

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2759 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-09-14 11:03:41 +00:00
parent 520deae094
commit 5ca510e4c5
4 changed files with 17 additions and 13 deletions

View File

@ -79,10 +79,10 @@ Misc:
// - If I change '\alpha' to bold, the result is \mathbf{a}
- Just moving the cursor in a math inset causes changing the buffer status
to (changed).
// - Just moving the cursor in a math inset causes changing the buffer status
// to (changed).
- disable the insert->label menu item when in inline formula.
// - disable the insert->label menu item when in inline formula.
Eran Tromer:
@ -211,12 +211,13 @@ From:
won't repeat that. Only that the flattening option would be then easier to
implement on top of that.
- There's something I keep wondering about.. how do new math symbols get into
LyX. Do they get ever?. I don't know if it can be done, but if you tell me
where to "draw" those symbols or how, I would very glad start doing it. LyX
deserves to have support (visual support) for all the AMSTeX constructs. But
there must be something structural going on there, because otherwise more
math symbols would be ready by now.. just a thought.
// - There's something I keep wondering about.. how do new math symbols get
// into LyX. Do they get ever?. I don't know if it can be done, but if you
// tell me where to "draw" those symbols or how, I would very glad start
// doing it. LyX deserves to have support (visual support) for all the
// AMSTeX constructs. But there must be something structural going on
// there, because otherwise more math symbols would be ready by now..
// just a thought.
- Some math symbols aren't very well supported (to my knowledge). I'm
thinking of underbraces with extra data in them,or [] options.

View File

@ -1,3 +1,8 @@
2001-09-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* formula.C (insetAllowed): disallow label insertion in inline
formula
2001-09-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* formulabase.C (mathDispatchCreation): pass second argument

View File

@ -356,7 +356,7 @@ void InsetFormula::validate(LaTeXFeatures & features) const
bool InsetFormula::insetAllowed(Inset::Code code) const
{
return code == Inset::LABEL_CODE;
return code == Inset::LABEL_CODE && display();
}

View File

@ -550,10 +550,8 @@ int mathed_char_descent(MathTextCodes type, MathStyles size, unsigned char c)
int mathed_char_width(MathTextCodes type, MathStyles size, unsigned char c)
{
LyXFont const font = whichFont(type, size);
LyXFont const f1 = whichFont(LM_TC_TEXTRM, size);
#warning why f1 is used ?
if (isBinaryOp(c, type))
return lyxfont::width(c, font) + 2 * lyxfont::width(' ', f1);
return lyxfont::width(c, font) + 2 * lyxfont::width(' ', font);
else
return lyxfont::width(c, font);
}