changeset 11:a2740f999f93

better printing?
author ht
date Thu, 05 Jun 2008 08:46:54 +0000
parents c102f6bf9d04
children b9811c04b7a8
files summa/bilingual/bi.xsl
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/summa/bilingual/bi.xsl	Mon Jun 02 21:28:54 2008 +0000
+++ b/summa/bilingual/bi.xsl	Thu Jun 05 08:46:54 2008 +0000
@@ -9,24 +9,25 @@
      <xsl:value-of select="div2/div3/h3"/>
     </title>
     <style>
-     h2, h3, h4 {margin-bottom: 0px}
+     h2, h3, h4 {margin-bottom: 0px; clear: both}
+    @page { size: A4 portrait; margin: 1cm} 
     </style>
    </head>
-   <body>
+   <body style="font-family: Bitstream Vera Serif">
     <xsl:apply-templates/>
    </body>
   </html>
  </xsl:template>
  
  <xsl:template match="div2|div3|div4">
-  <div style="clear: left">
+  <div>
    <xsl:apply-templates select="node()|@*"/>
   </div>
  </xsl:template>
  
- <xsl:template match="div[@class='bilingual']"><div style="clear: both">
-  <div style="width: 48%; float: left"><xsl:apply-templates select="*[1]"/></div>
-  <div style="width: 48%; float: left; margin-left: 2em"><xsl:apply-templates select="*[2]"/></div></div>
+ <xsl:template match="div[@class='bilingual']"><div style="clear: both; margin-top: .5em">
+  <div style="width: 45%; float: left"><xsl:apply-templates select="*[1]"/></div>
+  <div style="width: 45%; float: right"><xsl:apply-templates select="*[2]"/></div></div>
  </xsl:template>
  
  <xsl:template match="*">