Commit f8912385 authored by Baptiste Perraud's avatar Baptiste Perraud

Add title + authors in PDF generation, prework for list bullet replacement

parent 34b7e4e1
......@@ -63,7 +63,7 @@ This parameter is optional. Your file has been converted, the result is in the o
Known bugs
----------
* Nested ul in ol are sometimes converted to ol and the list-style-type CSS rule isn't supported by the PDFRenderer, which prevent from using the european dash symbol for ul lists
Generic Todo
------------
......
......@@ -55,6 +55,8 @@ p {
hyphens: auto;
}
/* Global headings numbering */
body {counter-reset: h2}
h2 {counter-reset: h3}
h3 {counter-reset: h4}
......@@ -66,3 +68,24 @@ h3:before {counter-increment: h3; content: counter(h2) "." counter(h3) ".\0000a0
h4:before {counter-increment: h4; content: counter(h2) "." counter(h3) "." counter(h4) ".\0000a0\0000a0"}
h5:before {counter-increment: h5; content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ".\0000a0\0000a0"}
h6:before {counter-increment: h6; content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ".\0000a0\0000a0"}
/* Global lists styling */
ul > li > p, ol > li > p {
text-indent: 0;
}
/* Title formatting */
h1 {
padding-top: 20mm;
text-align: center;
}
/* Authors formatting */
p.authors {
text-align: center;
}
......@@ -13,5 +13,13 @@
</xsl:copy>
</xsl:template>
<xsl:template match="body">
<body>
<h1><xsl:value-of select="/html/head/title"/></h1>
<p class="authors"><xsl:value-of select="/html/head/meta[@name='author']/@content"/></p>
<xsl:apply-templates select="node()|@*"/>
</body>
</xsl:template>
</xsl:stylesheet>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment