From: Michael Smith Date: Mon, 21 Nov 2005 09:40:40 +0000 (+0000) Subject: Added a
wrapper around output of X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63deec02474c59487fc9387f1da44961c8ad7433;p=docbook-dsssl Added a
wrapper around output of contents of all formal objects. Also, added an optional
linebreak after all formal objects. WARNING: Because this change places an additional DIV between the DIV wrapper for the equation and the equation contents, it may break some existing CSS stylesheets that have been created with the assumption that there would never be an intervening DIV there. The following is an example of what Equation output looks like as a result of the changes described above.

(1.3)

1+1=3

Rationale: These changes allow CSS control of the placement of the formal-object title relative to the formal-object contents. For example, using the CSS "float" property enables the title and contents to be rendered on the same line. Example stylesheet: .equation { margin-top: 20px; margin-bottom: 20px; } .equation-contents { float: left; } .equation .title { margin-top: 0; float: right; margin-right: 200px; } .equation .title b { font-weight: normal; } .equation-break { clear: both; } Note that the purpose of the ".equation-break" class is to provide a way to clear off the floats. If you want to instead have the equation title rendered to the left of the equation contents, you can do something like this: .equation { margin-top: 20px; width: 300px; margin-bottom: 20px; } .equation-contents { float: right; } .equation .title { margin-top: 0; float: left; margin-right: 200px; } .equation .title b { font-weight: normal; } .equation-break { clear: both; } --- diff --git a/xsl/html/formal.xsl b/xsl/html/formal.xsl index 0bf5fb986..8899efc36 100644 --- a/xsl/html/formal.xsl +++ b/xsl/html/formal.xsl @@ -12,6 +12,8 @@ ******************************************************************** --> +1 + @@ -26,8 +28,9 @@ - - +
+ +
@@ -38,8 +41,7 @@

- - +

@@ -50,6 +52,9 @@
+ +
+