mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
Get MathML output for XHTML working a bit.
Turns out MathML is already here, for the most part, so this will not be too bad at all. Anyone else think that is very cool?! git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31979 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6d48b61171
commit
54b4b8e6b4
@ -1735,6 +1735,19 @@ int InsetMathHull::docbook(odocstream & os, OutputParams const & runparams) cons
|
||||
}
|
||||
|
||||
|
||||
docstring InsetMathHull::xhtml(odocstream & os, OutputParams const &) const
|
||||
{
|
||||
if (getType() == hullSimple)
|
||||
os << "<math xmlns=\"&mathml;\">";
|
||||
else
|
||||
os << "<math display=\"block\" xmlns=\"&mathml;\">";
|
||||
MathStream ms(os);
|
||||
InsetMathGrid::mathmlize(ms);
|
||||
os << "</math>";
|
||||
return docstring();
|
||||
}
|
||||
|
||||
|
||||
void InsetMathHull::tocString(odocstream & os) const
|
||||
{
|
||||
plaintext(os, OutputParams(0));
|
||||
|
@ -122,6 +122,8 @@ public:
|
||||
int plaintext(odocstream &, OutputParams const &) const;
|
||||
///
|
||||
int docbook(odocstream &, OutputParams const &) const;
|
||||
///
|
||||
docstring xhtml(odocstream &, OutputParams const &) const;
|
||||
/// the string that is passed to the TOC
|
||||
void tocString(odocstream &) const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user