From: Jirka Kosek Date: Sat, 15 Dec 2001 15:48:33 +0000 (+0000) Subject: Improved support for TeX math inside equations. X-Git-Tag: release/1.79.1~6^2~6042 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5836de499712c9b013ced6a0934b7f402b63813e;p=docbook-dsssl Improved support for TeX math inside equations. --- diff --git a/xsl/common/common.xsl b/xsl/common/common.xsl index bbcda48e6..c487e0f94 100644 --- a/xsl/common/common.xsl +++ b/xsl/common/common.xsl @@ -785,7 +785,7 @@ of media objects is that the first acceptable graphic should be used. 0 - + 1 diff --git a/xsl/fo/math.xsl b/xsl/fo/math.xsl index 9ea86c3d8..a1af70d40 100644 --- a/xsl/fo/math.xsl +++ b/xsl/fo/math.xsl @@ -17,7 +17,7 @@ - + @@ -42,7 +42,8 @@ - + $ @@ -52,7 +53,9 @@ - + $$ @@ -62,7 +65,7 @@ - + Your equation is misplaced. It should be in inlineequation, equation or informalequation. diff --git a/xsl/html/graphics.xsl b/xsl/html/graphics.xsl index dc95c33a3..b9b64538e 100644 --- a/xsl/html/graphics.xsl +++ b/xsl/html/graphics.xsl @@ -283,7 +283,7 @@ - + diff --git a/xsl/html/math.xsl b/xsl/html/math.xsl index c13fb8e73..d640d5c30 100644 --- a/xsl/html/math.xsl +++ b/xsl/html/math.xsl @@ -62,9 +62,9 @@ - + - + @@ -78,7 +78,7 @@ } $ - + $ \vfill\eject @@ -102,7 +102,7 @@ } $$ - + $$ \vfill\eject @@ -124,9 +124,9 @@ - + - + @@ -140,7 +140,7 @@ } $ - + $ \newpage @@ -164,7 +164,7 @@ } $$ - + $$ \newpage diff --git a/xsl/params/tex.math.in.alt.xml b/xsl/params/tex.math.in.alt.xml index 8b2baa5d4..9bfd7e642 100644 --- a/xsl/params/tex.math.in.alt.xml +++ b/xsl/params/tex.math.in.alt.xml @@ -16,11 +16,31 @@ Description -If you want type math directly in TeX notation into -alt element, this parameter specifies notation -used. Currently are supported two values -- -plain and latex. Empty value -means that you are not using TeX math. +If you want type math directly in TeX notation in equations, +this parameter specifies notation used. Currently are supported two +values -- plain and latex. Empty +value means that you are not using TeX math at all. + +Preferred way for including TeX alternative of math is inside of +textobject element. Eg.: + + + + + + +E=mc squared +E=mc^2 + +]]> + +If you are using graphic element, you can +store TeX inside alt element: + + +a^2+b^2=c^2 + +]]> If you want use this feature, you should process your FO with PassiveTeX, which only supports TeX math notation. When calling