Specially number appendices
This commit is contained in:
parent
e438085e74
commit
35726436c9
|
@ -6,7 +6,7 @@ body {
|
||||||
hr { display: none; }
|
hr { display: none; }
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
@page { margin: 4rem 0rem 4.333rem 0rem; }
|
@page { size: letter; margin: 4rem 0rem 4.333rem 0rem; }
|
||||||
body { margin-left: 4.5rem; margin-right: 4.5rem; }
|
body { margin-left: 4.5rem; margin-right: 4.5rem; }
|
||||||
h1, h2 { page-break-before: always; margin-top: 0; }
|
h1, h2 { page-break-before: always; margin-top: 0; }
|
||||||
h1:first-of-type, h2:first-of-type { page-break-before: auto; }
|
h1:first-of-type, h2:first-of-type { page-break-before: auto; }
|
||||||
|
@ -20,7 +20,7 @@ code { font-size: 75%; }
|
||||||
pre { padding: 0.33rem; }
|
pre { padding: 0.33rem; }
|
||||||
|
|
||||||
body {
|
body {
|
||||||
counter-reset: section 0 subsection 0;
|
counter-reset: section 0 subsection 0 appendix 0;
|
||||||
}
|
}
|
||||||
h2:before, h3:before {
|
h2:before, h3:before {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
@ -44,3 +44,16 @@ h3:before {
|
||||||
counter-increment: subsection;
|
counter-increment: subsection;
|
||||||
content: counter(section) "." counter(subsection) ". ";
|
content: counter(section) "." counter(subsection) ". ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h2[id^="appendix-"]:before {
|
||||||
|
counter-increment: appendix;
|
||||||
|
content: counter(appendix,upper-latin) ". ";
|
||||||
|
}
|
||||||
|
h2[id^="appendix-"] ~ h3:before {
|
||||||
|
counter-increment: subsection;
|
||||||
|
content: counter(appendix,upper-latin) "." counter(subsection) ". ";
|
||||||
|
}
|
||||||
|
|
||||||
|
h2#notes:before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue