h1.title {
    counter-increment: c1;
    counter-reset: c2;
}

h2 {
    counter-increment: c2;
    counter-reset: c3;
}

h3 {
    counter-increment: c3;
    counter-reset: c4;
}

h4 {
    counter-increment: c4;
    counter-reset: c5;
}

h5 {
    counter-increment: c5;
    counter-reset: c6;
}


/* 
 * PDF Bookmarks
 */
h1.title {
    prince-bookmark-label: counter(c1) ' ' content();
    prince-bookmark-level: 1;
}

h1.title::before {
    content: counter(c1) ' '; 
}

h2 {
    prince-bookmark-label: counter(c1) '.' counter(c2) ' ' content();
    prince-bookmark-level: 2;
}

h2::before {
    content: counter(c1) '.' counter(c2) ' ';
}

h3 {
    prince-bookmark-label: counter(c1) '.' counter(c2) '.' counter(c3) ' ' content();
    prince-bookmark-level: 3;
}

h3::before {
    content: counter(c1) '.' counter(c2) '.' counter(c3) ' ';
}

h4 {
    prince-bookmark-label: counter(c1) '.' counter(c2) '.' counter(c3) '.' counter(c4) ' '  content();
    prince-bookmark-level: 4;
}

h4::before {
    content: counter(c1) '.' counter(c2) '.' counter(c3) '.' counter(c4) ' ';
}

h5 {
    prince-bookmark-label: counter(c1) '.' counter(c2) '.' counter(c3) '.' counter(c4) '.' counter(c5) ' '  content();
    prince-bookmark-level: 5;
}

h5::before {
    content: counter(c1) '.' counter(c2) '.' counter(c3) '.' counter(c4) '.' counter(c5) ' ';
}
