Skip to content

Commit

Permalink
updating counter-reset handling, see STYL-259
Browse files Browse the repository at this point in the history
  • Loading branch information
slynchoreilly committed Feb 25, 2015
1 parent f0afb97 commit ce8a77b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pdf/pdf.css
Expand Up @@ -1139,16 +1139,18 @@ section[data-type="appendix"] div[data-type="equation"] h5:before {
/* ----------------------- Counter Reset -------------------------*/
/* -------------------------------------------------------------- */

section.pagenumrestart {
counter-reset: page 1;
}

section[data-type="chapter"] {
page: chapter;
page-break-before: right; /* forces new chapters to start on a right hand page */
counter-reset: TableNumber FigureNumber ExampleNumber EquationNumber footnote;
}

section[data-type="chapter"].pagenumrestart
{ counter-reset: page 1 FigureNumber TableNumber ExampleNumber EquationNumber footnote}

div[data-type="part"].pagenumrestart
{ counter-reset: page 1 FigureNumber TableNumber ExampleNumber EquationNumber footnote}

/* -------------------------------------------------------------- */
/* ------------------------ Appendicies --------------------------*/
/* -------------------------------------------------------------- */
Expand Down

0 comments on commit ce8a77b

Please sign in to comment.