* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
namespace lyx {
-InsetMathLim::InsetMathLim
- (MathData const & f, MathData const & x, MathData const & x0)
- : InsetMathNest(3)
+InsetMathLim::InsetMathLim(Buffer * buf, MathData const & f, MathData const & x,
+ MathData const & x0)
+ : InsetMathNest(buf, 3)
{
cell(0) = f;
cell(1) = x;
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>"
+ << "<mo>(</mo>" << cell(0) << "<mo>)</mo>" ;
}