Add 'Table des matières' in book preambule. styles
authorFabien Ninoles <fabien@tzone.org>
Sun, 20 Sep 2015 14:39:52 -0400
branchstyles
changeset 21 ce4faf661fca
parent 18 46073a2f0e2d
child 22 dc2252620c02
Add 'Table des matières' in book preambule.
.hgignore
html.xsl
poetry_print.xsl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Sun Sep 20 14:39:52 2015 -0400
@@ -0,0 +1,1 @@
+install
\ No newline at end of file
--- a/html.xsl	Mon Sep 14 11:26:41 2015 -0400
+++ b/html.xsl	Sun Sep 20 14:39:52 2015 -0400
@@ -59,8 +59,9 @@
     <body class="book">
       <xsl:apply-templates select="docinfo/date"/>
       <xsl:apply-templates/>
+      <p><strong>Table des Matières</strong></p>
       <ul>
-	<xsl:apply-templates mode="book-toc" select="section|story|poetry"/>
+	    <xsl:apply-templates mode="book-toc" select="section|story|poetry"/>
       </ul>
       <hr/>
       <address>
--- a/poetry_print.xsl	Mon Sep 14 11:26:41 2015 -0400
+++ b/poetry_print.xsl	Sun Sep 20 14:39:52 2015 -0400
@@ -66,11 +66,17 @@
 	</xsl:with-param>
       </xsl:call-template>
       <xsl:variable name="id">
-	<xsl:call-template name="get-id"/>
+	    <xsl:call-template name="get-id"/>
       </xsl:variable>
       <flow flow-name="xsl-region-body">
-	<block id="{$id}"/>
-	<xsl:apply-templates select="*[name(.)!='section']"/>
+	    <block id="{$id}"/>
+	    <xsl:apply-templates select="*[name(.)!='section']"/>
+        <block space-before="4pt">
+          <inline font-weight="bold">Table des matières</inline>
+          <list-block provisional-distance-between-starts="5mm">
+            <xsl:apply-templates select="section|story|poetry" mode="toc"/>
+          </list-block>
+        </block>
       </flow>
     </page-sequence>
     <xsl:apply-templates select="section"/>