You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by he...@apache.org on 2006/07/08 17:49:21 UTC

svn commit: r420150 - /jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl

Author: henning
Date: Sat Jul  8 08:49:20 2006
New Revision: 420150

URL: http://svn.apache.org/viewvc?rev=420150&view=rev
Log:
Add example and title style information


Modified:
    jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl

Modified: jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl
URL: http://svn.apache.org/viewvc/jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl?rev=420150&r1=420149&r2=420150&view=diff
==============================================================================
--- jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl (original)
+++ jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl Sat Jul  8 08:49:20 2006
@@ -207,6 +207,7 @@
         <!--<xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
         <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
         <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>-->
+
         <xsl:attribute name="border-color">#444444</xsl:attribute>
         <xsl:attribute name="border-style">solid</xsl:attribute>
         <xsl:attribute name="border-width">0.1pt</xsl:attribute>
@@ -225,6 +226,23 @@
     </xsl:attribute-set>
 
 <!--###################################################
+        Title information for Figures, Examples etc.
+    ################################################### -->
+
+    <xsl:attribute-set name="formal.title.properties" use-attribute-sets="normal.para.spacing">
+      <xsl:attribute name="font-weight">normal</xsl:attribute>
+      <xsl:attribute name="font-style">italic</xsl:attribute>
+      <xsl:attribute name="font-size">
+        <xsl:value-of select="$body.font.master"/>
+        <xsl:text>pt</xsl:text>
+      </xsl:attribute>
+      <xsl:attribute name="hyphenate">false</xsl:attribute>
+      <xsl:attribute name="space-before.minimum">0.1em</xsl:attribute>
+      <xsl:attribute name="space-before.optimum">0.1em</xsl:attribute>
+      <xsl:attribute name="space-before.maximum">0.1em</xsl:attribute>
+    </xsl:attribute-set>
+
+<!--###################################################
                          Callouts
     ################################################### -->
 
@@ -242,7 +260,7 @@
     <!-- Placement of titles -->
     <xsl:param name="formal.title.placement">
         figure after
-        example before
+        example after
         equation before
         table before
         procedure before
@@ -260,6 +278,9 @@
       <l:context name="title-numbered">
         <l:template name="chapter" text="%n.&#160;%t"/>
         <l:template name="section" text="%n&#160;%t"/>
+      </l:context>
+      <l:context name="title">
+        <l:template name="example" text="Example&#160;%n&#160;%t"/>
       </l:context>
     </l:l10n>
   </l:i18n>



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org