]> git.lyx.org Git - lyx.git/commitdiff
Ease the use of math with db2latex. (Andreas Vox)
authorJosé Matox <jamatos@lyx.org>
Tue, 5 Oct 2004 15:48:36 +0000 (15:48 +0000)
committerJosé Matox <jamatos@lyx.org>
Tue, 5 Oct 2004 15:48:36 +0000 (15:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9052 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_hullinset.C

index d371a8c66d85b4a51437559a80fb87e4fff4cdce..502a39dd0a5f18c72ff60d25322b2288ce313918 100644 (file)
@@ -1,3 +1,7 @@
+2004-10-05  Andreas Vox  <vox@isp.uni-luebeck.de>
+
+       * math_hullinset.C (docbook): write additional <alt role="tex" > tag for        Docbook  XML
+
 2004-09-21  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * math_hullinset.C (plaintext): remove extraneous spaces
index 27e762754aa8ca475ed562fa1001bbf34b4a1e49..941c4386248975064c05f08dba7b24afcf1476ce 100644 (file)
@@ -1345,8 +1345,14 @@ int MathHullInset::docbook(Buffer const & buf, ostream & os,
                ms <<   MTag("math");
                MathGridInset::mathmlize(ms);
                ms <<   ETag("math");
+               ms <<   MTag("alt role=\"tex\" ");
+               ostringstream ls;
+               WriteStream wi(ls, false, false);
+               MathGridInset::write(wi);
+               ms << ls.str();
+               ms <<   ETag("alt");
        } else {
-               ms <<   MTag("alt");
+               ms <<   MTag("alt role=\"tex\" ");
                res = latex(buf, ms.os(), runparams);
                ms <<   ETag("alt");
        }