mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 13:04:58 +00:00
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:
parent
791d28bf0b
commit
ab1f7c3fc5
@ -69,7 +69,6 @@ Math
|
|||||||
Probably do something with <mover>, again.
|
Probably do something with <mover>, again.
|
||||||
- Tabular: This is more or less a text-like table in math. Probably output it
|
- Tabular: This is more or less a text-like table in math. Probably output it
|
||||||
as a table, but set the font.
|
as a table, but set the font.
|
||||||
- XArrow: Contents above and below an arrow. Use...?
|
|
||||||
- XYMatrix: Not sure how this differs from ordinary ones.
|
- XYMatrix: Not sure how this differs from ordinary ones.
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,6 +76,16 @@ void InsetMathXArrow::normalize(NormalStream & os) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void InsetMathXArrow::mathmlize(MathStream & ms) const
|
||||||
|
{
|
||||||
|
char const * const arrow = name_ == "xleftarrow"
|
||||||
|
? "←" : "→";
|
||||||
|
ms << "<munderover accent='false' accentunder='false'>"
|
||||||
|
<< arrow << cell(1) << cell(0)
|
||||||
|
<< "</munderover>";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void InsetMathXArrow::validate(LaTeXFeatures & features) const
|
void InsetMathXArrow::validate(LaTeXFeatures & features) const
|
||||||
{
|
{
|
||||||
features.require("amsmath");
|
features.require("amsmath");
|
||||||
|
@ -32,6 +32,8 @@ public:
|
|||||||
///
|
///
|
||||||
void normalize(NormalStream & os) const;
|
void normalize(NormalStream & os) const;
|
||||||
///
|
///
|
||||||
|
void mathmlize(MathStream &) const;
|
||||||
|
///
|
||||||
void validate(LaTeXFeatures & features) const;
|
void validate(LaTeXFeatures & features) const;
|
||||||
///
|
///
|
||||||
InsetCode lyxCode() const { return MATH_XARROW_CODE; }
|
InsetCode lyxCode() const { return MATH_XARROW_CODE; }
|
||||||
|
Loading…
Reference in New Issue
Block a user