Commit cbd59fcd authored by bperraud's avatar bperraud

no break after hn + add ToC page numbers support

parent 1f1411e1
...@@ -45,6 +45,10 @@ ...@@ -45,6 +45,10 @@
@bottom-center { content: counter(page) } @bottom-center { content: counter(page) }
} }
body {
margin: 0;
}
* { * {
font-family: "CMU Serif"; font-family: "CMU Serif";
} }
...@@ -122,14 +126,12 @@ ul.toc.level4 > li {padding-left: 13mm;} ...@@ -122,14 +126,12 @@ ul.toc.level4 > li {padding-left: 13mm;}
ul.toc.level5 > li {padding-left: 15mm;} ul.toc.level5 > li {padding-left: 15mm;}
ul.toc.level6 > li {padding-left: 17mm;} ul.toc.level6 > li {padding-left: 17mm;}
ul.toc > li > a::after {
/*left: 0;*/
content: leader(dotted) target-counter(attr(href), page);
}
/* Main Title formatting */
/* Title formatting */
h1 { h1 {
padding-top: 20mm; padding-top: 20mm;
...@@ -155,3 +157,11 @@ img { ...@@ -155,3 +157,11 @@ img {
page-break-after: auto; page-break-after: auto;
page-break-inside: avoid; page-break-inside: avoid;
} }
/* Widows and orphans processing */
h2, h3, h4, h5, h6 {
/*page-break-before: auto;*/
page-break-after: avoid;
/*page-break-inside: avoid;*/
}
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