]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathKern.cpp
Improve the list of equations
[lyx.git] / src / mathed / InsetMathKern.cpp
index 80e3243ae615b9fb047ee9bc1ebd2b080e534f2f..d223887e3b6c2d712f0c9a4a1b577dc1e285b70c 100644 (file)
 #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"
 
@@ -59,6 +61,8 @@ void InsetMathKern::write(WriteStream & os) const
 {
        if (wid_.empty())
                os << "\\kern" << ' ';
+       else if (wid_.unit() == Length::MU)
+               os << "\\mkern" << from_utf8(wid_.asLatexString()) << ' ';
        else
                os << "\\kern" << from_utf8(wid_.asLatexString()) << ' ';
 }
@@ -73,4 +77,12 @@ void InsetMathKern::normalize(NormalStream & os) const
 }
 
 
+void InsetMathKern::infoize2(odocstream & os) const
+{
+       os << "Kern";
+       if (!wid_.empty())
+               os << ": " << from_utf8(wid_.asLatexString());
+}
+
+
 } // namespace lyx