1 /* this stylesheet is used when generating a PDF */
5 margin: 1.5cm 1.5cm 1.5cm 1.5cm;
13 page-break-after: always;
20 .frontcover #generationdate {
25 /* styles for the right hand spread
26 Bottom left we display the title of the book, bottom right the page using a CSS
27 counter, top right the content of the current chapter
31 margin: 10pt 0 30pt 0;
32 /*border-top: .25pt solid #666;*/
33 content: "The Ardour Manual";
38 margin: 10pt 0 30pt 0;
39 /*border-top: .25pt solid #666;*/
40 content: counter(page);
44 content: string(doctitle);
45 margin: 30pt 0 10pt 0;
51 /* styles for the left hand spread
52 Bottom right book title, bottom left current page
56 margin: 10pt 0 30pt 0;
57 /*border-top: .25pt solid #666;*/
58 content: "The Ardour Manual";
63 margin: 10pt 0 30pt 0;
64 /*border-top: .25pt solid #666;*/
65 content: counter(page);
84 counter-reset: partnum chapternum subchapternum figurenum; /* resets all counters */
85 /*font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;*/
92 string-set: doctitle content(); /* get the title of the current chapter */
93 page-break-before: always;
96 #toc::before { /* the ToC should not count...*/
98 counter-reset: partnum;
99 /*counter-increment: partnum -1;*/
102 h1::before { /* parts */
103 counter-increment: partnum;
104 content: "Part " counter(partnum) " - ";
107 h2::before { /* chapter */
108 counter-increment: chapternum;
109 content: "Chapter " counter(chapternum) " - ";
112 h3::before { /* subchapter */
113 counter-increment: subchapternum;
114 content: counter(chapternum) "." counter(subchapternum) " - " ;
118 counter-increment: figurenum;
119 content: "Fig. " counter(chapternum) "." counter(figurenum) " - ";
122 h1 { font-size: 3em; }
123 h2 { font-size: 2.25em; counter-reset: subchapternum figurenum; }
124 h3 { font-size: 1.75em; }
125 h4 { font-size: 1.4em; }
126 h5 { font-size: 1.2em; }
127 h6 { font-size: 1.1em; }
131 page-break-after: avoid;
132 page-break-inside:avoid;
137 page-break-before: avoid;
141 page-break-inside: avoid;
154 /* create page numbers using target-counter in the TOC */
156 content: target-counter(attr(href), page);
165 text-decoration: none;
169 list-style-position: inside;
176 /* add page number to cross references */
178 content: " (page " target-counter(attr(href, url), page) ")";