From 9e5405e61c4c28b42f464ed52c3cd4fbf8251ba7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matox?= Date: Tue, 5 Oct 2004 15:48:36 +0000 Subject: [PATCH] Ease the use of math with db2latex. (Andreas Vox) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9052 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 4 ++++ src/mathed/math_hullinset.C | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index d371a8c66d..502a39dd0a 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,7 @@ +2004-10-05 Andreas Vox + + * math_hullinset.C (docbook): write additional tag for Docbook XML + 2004-09-21 Jean-Marc Lasgouttes * math_hullinset.C (plaintext): remove extraneous spaces diff --git a/src/mathed/math_hullinset.C b/src/mathed/math_hullinset.C index 27e762754a..941c438624 100644 --- a/src/mathed/math_hullinset.C +++ b/src/mathed/math_hullinset.C @@ -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"); } -- 2.39.2