@@ -318,6 +318,7 @@ <h4 class="heading settled heading" data-level=1.1.2 id=using-named-strings><spa
318318
319319< div class =example >
320320CSS:
321+
321322< pre > @page {
322323 size: 15cm 10cm;
323324 margin: 1.5cm;
@@ -386,13 +387,14 @@ <h4 class="heading settled heading" data-level=1.2.1 id=running-syntax><span cla
386387
387388< div class =example >
388389
389- < p > HTML:
390+ < p > HTML:</ p >
391+
390392< pre > <p class="rh"><i>Miranda v. Arizona</i> in Context</p>
391393<h2><i>Miranda v. Arizona</i> in Context</h2>
394+ </ pre >
392395
396+ < p > CSS:</ p >
393397
394-
395- < p > CSS:
396398< pre > @top-center {
397399 content: element(heading);
398400 }
@@ -404,8 +406,7 @@ <h4 class="heading settled heading" data-level=1.2.1 id=running-syntax><span cla
404406 p.rh::before {
405407 content: counter(page) ' / ';
406408 }
407-
408-
409+ </ pre >
409410
410411
411412
@@ -415,7 +416,7 @@ <h4 class="heading settled heading" data-level=1.2.1 id=running-syntax><span cla
415416< p > < img alt ="running header using running elements " src =running-element-gcpm_Page_1.jpg width =480 >
416417</ p > < figcaption > Running element in page margin box</ figcaption >
417418</ figure >
418- </ pre > </ pre > </ div > < p > </ p >
419+ </ div > < p > </ p >
419420
420421
421422
@@ -735,6 +736,7 @@ <h3 class="heading settled heading" data-level=3.2 id=document-sequence-selector
735736
736737< div class =example >
737738CSS:
739+
738740< pre >
739741div { page: A }
740742child { page: B }
@@ -744,6 +746,7 @@ <h3 class="heading settled heading" data-level=3.2 id=document-sequence-selector
744746< figcaption > A page may be part of several page groups.</ figcaption >
745747</ figure >
746748Note that page 5 can be selected in three ways:
749+
747750< pre >
748751@page :nth(5 of A) /* will select 5th page of every <div> */
749752@page :nth(1 of B) /* will select first page of every <child> */
@@ -921,25 +924,27 @@ <h3 class="heading settled heading" data-level=5.1 id=target-counter><span class
921924</ pre >
922925< div class =example >
923926HTML:
927+
924928< pre >
925929…which will be discussed on page <a href="#chapter4_sec2">000</a>.
926930</ pre >
927- < p > CSS:
931+ < p > CSS:</ p >
932+
928933< pre >
929934a::after { content: target-counter(attr(href url), page) }
930-
931-
935+ </ pre >
932936< p > Result:
933937< pre >
934938…which will be discussed on page 137.
935939
936940
937- </ pre > </ pre > </ div >
941+ </ pre > </ div >
938942
939943< div class =example >
940944Page numbers in tables of contents can be generated automatically:
941945
942- < p > HTML:
946+ < p > HTML:</ p >
947+
943948< pre >
944949<nav>
945950 <ol>
@@ -948,25 +953,24 @@ <h3 class="heading settled heading" data-level=5.1 id=target-counter><span class
948953 <li class="bodymatter"><a href="#chap_01">Chapter One</a></li>
949954 </ol>
950955</nav>
956+ </ pre >
951957
958+ < p > CSS:</ p >
952959
953-
954- < p > CSS:
955960< pre >
956961.frontmatter a::after { content: leader('.') target-counter(attr(href url), page, lower-roman) }
957962.bodymatter a::after { content: leader('.') target-counter(attr(href url), page, decimal) }
963+ </ pre >
958964
965+ < p > Result:</ p >
959966
960-
961- < p > Result:
962967< pre >
963968Preface.............vii
964969Introduction.........xi
965970Chapter One...........1
971+ </ pre >
966972
967-
968-
969- </ pre > </ pre > </ pre > </ div >
973+ </ div >
970974
971975
972976
@@ -1043,19 +1047,20 @@ <h3 class="heading settled heading" data-level=6.2 id=bookmark-label><span class
10431047
10441048< div class =example >
10451049HTML:
1050+
10461051< pre >
10471052<h1>Loomings</h1>
10481053</ pre >
1049- < p > CSS:
1054+ < p > CSS:</ p >
1055+
10501056< pre >
10511057h1 {
10521058bookmark-label: content(text);
10531059bookmark-level: 1;
10541060}
1055-
1056-
1061+ </ pre >
10571062< p > The bookmark label will be “Loomings”.
1058- </ pre > </ div > < p > </ p >
1063+ </ div > < p > </ p >
10591064
10601065< h3 class ="heading settled heading " data-level =6.3 id =bookmark-state > < span class =secno > 6.3 </ span > < span class =content >
10611066bookmark-state
0 commit comments