MathML for XArrow.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32721 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-12-31 22:02:19 +00:00
parent 791d28bf0b
commit ab1f7c3fc5
3 changed files with 12 additions and 1 deletions

View File

@ -69,7 +69,6 @@ Math
Probably do something with <mover>, again.
- Tabular: This is more or less a text-like table in math. Probably output it
as a table, but set the font.
- XArrow: Contents above and below an arrow. Use...?
- XYMatrix: Not sure how this differs from ordinary ones.

View File

@ -76,6 +76,16 @@ void InsetMathXArrow::normalize(NormalStream & os) const
}
void InsetMathXArrow::mathmlize(MathStream & ms) const
{
char const * const arrow = name_ == "xleftarrow"
? "&larr;" : "&rarr;";
ms << "<munderover accent='false' accentunder='false'>"
<< arrow << cell(1) << cell(0)
<< "</munderover>";
}
void InsetMathXArrow::validate(LaTeXFeatures & features) const
{
features.require("amsmath");

View File

@ -32,6 +32,8 @@ public:
///
void normalize(NormalStream & os) const;
///
void mathmlize(MathStream &) const;
///
void validate(LaTeXFeatures & features) const;
///
InsetCode lyxCode() const { return MATH_XARROW_CODE; }