#include <config.h>
#include "InsetMathKern.h"
-#include "MathStream.h"
+
#include "MathStream.h"
#include "MathSupport.h"
+
#include "Dimension.h"
+#include "MetricsInfo.h"
#include "support/docstring.h"
{
dim.asc = 0;
dim.des = 0;
- dim.wid = wid_.inPixels(0, mathed_char_width(mi.base.font, 'M'));
+ dim.wid = wid_.inPixels(mi.base);
}
{
if (wid_.empty())
os << "\\kern" << ' ';
+ else if (wid_.unit() == Length::MU)
+ os << "\\mkern" << from_utf8(wid_.asLatexString()) << ' ';
else
os << "\\kern" << from_utf8(wid_.asLatexString()) << ' ';
}
}
-docstring InsetMathKern::mathmlize(MathStream &) const
+void InsetMathKern::infoize2(odocstream & os) const
{
- return docstring();
+ os << "Kern";
+ if (!wid_.empty())
+ os << ": " << from_utf8(wid_.asLatexString());
}