Author: rgheck
Date: Thu Jul 22 04:47:12 2010
New Revision: 35002
URL: http://www.lyx.org/trac/changeset/35002

Log:
Try again with LaTeX output for XHTML math. 

The previous attempt messed up the inheritance hierarchy somehow. I
think.

Modified:
   lyx-devel/trunk/src/mathed/InsetMathHull.cpp

Modified: lyx-devel/trunk/src/mathed/InsetMathHull.cpp
==============================================================================
--- lyx-devel/trunk/src/mathed/InsetMathHull.cpp        Thu Jul 22 04:20:12 
2010        (r35001)
+++ lyx-devel/trunk/src/mathed/InsetMathHull.cpp        Thu Jul 22 04:47:12 
2010        (r35002)
@@ -1889,7 +1889,14 @@
        } 
        case BufferParams::LaTeX: {
                string const tag = (getType() == hullSimple) ? "span" : "div";
-               docstring const latex = latexString(*this);
+               // Unfortunately, we cannot use latexString() because we do not 
want
+               // $...$ or whatever.
+               odocstringstream ls;
+               WriteStream wi(ls, false, true, WriteStream::wsPreview);
+               ModeSpecifier specifier(wi, MATH_MODE);
+               InsetMathGrid::write(wi);
+               docstring const latex = ls.str();
+               
                // class='math' allows for use of jsMath
                // http://www.math.union.edu/~dpvc/jsMath/
                // FIXME XHTML

Reply via email to