mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
Fix a few MathML things: the default output and the output of limits.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32542 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
512215606b
commit
9e149b8919
@ -122,8 +122,10 @@ void InsetMath::mathematica(MathematicaStream & os) const
|
||||
|
||||
void InsetMath::mathmlize(MathStream & os) const
|
||||
{
|
||||
os << MTag("mi");
|
||||
NormalStream ns(os.os());
|
||||
normalize(ns);
|
||||
os << ETag("mi");
|
||||
}
|
||||
|
||||
|
||||
|
@ -1768,9 +1768,10 @@ int InsetMathHull::docbook(odocstream & os, OutputParams const & runparams) cons
|
||||
docstring InsetMathHull::xhtml(XHTMLStream & xs, OutputParams const &) const
|
||||
{
|
||||
if (getType() == hullSimple)
|
||||
xs << StartTag("math", "xmlns=\"http://www.w3.org/1998/Math/MathML\"");
|
||||
xs << StartTag("math", "xmlns=\"http://www.w3.org/1998/Math/MathML\"", true);
|
||||
else
|
||||
xs << StartTag("math", "display=\"block\" xmlns=\"http://www.w3.org/1998/Math/MathML\"");
|
||||
xs << StartTag("math",
|
||||
"display=\"block\" xmlns=\"http://www.w3.org/1998/Math/MathML\"", true);
|
||||
MathStream ms(xs.os());
|
||||
InsetMathGrid::mathmlize(ms);
|
||||
xs << EndTag("math");
|
||||
|
@ -73,7 +73,11 @@ void InsetMathLim::mathematica(MathematicaStream & os) const
|
||||
|
||||
void InsetMathLim::mathmlize(MathStream & os) const
|
||||
{
|
||||
os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
|
||||
// FIXME XHTML We need a form of MTag that takes attributes.
|
||||
os << "<munder>"
|
||||
<< "<mo form='prefix'>" << "lim" << "</mo>"
|
||||
<< "<mrow>" << cell(1) << "<mo>→</mo>" << cell(2) << "</mrow></munder>"
|
||||
<< "<mfenced open='(' close=')'>" << cell(0) << "</mfenced>";
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user