From: Richard Heck Date: Thu, 22 Jul 2010 02:47:12 +0000 (+0000) Subject: Try again with LaTeX output for XHTML math. X-Git-Tag: 2.0.0~2910 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3d6fb3bd1d18591c51d77d2df5e2b7e39659759b;p=features.git Try again with LaTeX output for XHTML math. The previous attempt messed up the inheritance hierarchy somehow. I think. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35002 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 4de876f01f..234bb56d82 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -1889,7 +1889,14 @@ docstring InsetMathHull::xhtml(XHTMLStream & xs, OutputParams const & op) const } 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