@amermathsoc/texml-to-html 20.2.0 → 21.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +1 -2
  3. package/lib/elements/abstract.js +1 -1
  4. package/lib/elements/sec-meta.js +5 -3
  5. package/lib/elements/sec.js +6 -5
  6. package/lib/transformer.js +2 -3
  7. package/package.json +4 -4
  8. package/test/article--alttitle.xml +3 -3
  9. package/test/article--nometa.xml +2 -2
  10. package/test/article.xml +27 -25
  11. package/test/book--metadata.xml +6 -5
  12. package/test/book.xml +121 -65
  13. package/test/element-sec-meta.js +19 -9
  14. package/test/element-sec.js +5 -1
  15. package/test/snapshots/article--alttitle.html +2 -2
  16. package/test/snapshots/article.html +4 -2
  17. package/test/snapshots/book--metadata.html +5 -6
  18. package/test/snapshots/book.html +79 -48
  19. package/test/snapshots/texml-tests/{NLMnote.html → BITSnote.html} +3 -3
  20. package/test/snapshots/texml-tests/{NLMnote.xml → BITSnote.xml} +3 -3
  21. package/test/snapshots/texml-tests/LGR.xml +9 -9
  22. package/test/snapshots/texml-tests/OT1.xml +1 -1
  23. package/test/snapshots/texml-tests/OT1ti.xml +1 -1
  24. package/test/snapshots/texml-tests/OT1tt.xml +1 -1
  25. package/test/snapshots/texml-tests/OT2.xml +1 -1
  26. package/test/snapshots/texml-tests/OT4.xml +1 -1
  27. package/test/snapshots/texml-tests/OT6.xml +2 -2
  28. package/test/snapshots/texml-tests/T1.xml +1 -1
  29. package/test/snapshots/texml-tests/T4.xml +1 -1
  30. package/test/snapshots/texml-tests/T5.xml +1 -1
  31. package/test/snapshots/texml-tests/Ucharcat.xml +1 -1
  32. package/test/snapshots/texml-tests/accent.xml +1 -1
  33. package/test/snapshots/texml-tests/algorithmic.xml +24 -24
  34. package/test/snapshots/texml-tests/algpseudocode.xml +18 -18
  35. package/test/snapshots/texml-tests/ams_measure.xml +1 -1
  36. package/test/snapshots/texml-tests/amsart.html +7 -2
  37. package/test/snapshots/texml-tests/amsart.xml +7 -4
  38. package/test/snapshots/texml-tests/amsbook.html +22 -5
  39. package/test/snapshots/texml-tests/amsbook.xml +36 -11
  40. package/test/snapshots/texml-tests/amscyr.xml +1 -1
  41. package/test/snapshots/texml-tests/amsfonts.xml +1 -1
  42. package/test/snapshots/texml-tests/amsrefs.xml +1 -1
  43. package/test/snapshots/texml-tests/amsthm-swap.xml +1 -1
  44. package/test/snapshots/texml-tests/amsthm.xml +1 -1
  45. package/test/snapshots/texml-tests/amsviet.xml +1 -1
  46. package/test/snapshots/texml-tests/appendix-book.html +32 -27
  47. package/test/snapshots/texml-tests/appendix-book.xml +39 -31
  48. package/test/snapshots/texml-tests/appendix.xml +5 -5
  49. package/test/snapshots/texml-tests/array.xml +1 -1
  50. package/test/snapshots/texml-tests/article.xml +1 -1
  51. package/test/snapshots/texml-tests/arxiv.xml +1 -1
  52. package/test/snapshots/texml-tests/arydshln.xml +1 -1
  53. package/test/snapshots/texml-tests/aufm.xml +1 -1
  54. package/test/snapshots/texml-tests/autoref.html +54 -48
  55. package/test/snapshots/texml-tests/autoref.xml +66 -57
  56. package/test/snapshots/texml-tests/begincsname.xml +1 -1
  57. package/test/snapshots/texml-tests/boldline.xml +1 -1
  58. package/test/snapshots/texml-tests/book-app.html +20 -11
  59. package/test/snapshots/texml-tests/book-app.xml +25 -13
  60. package/test/snapshots/texml-tests/book-new.html +176 -0
  61. package/test/snapshots/texml-tests/book-new.xml +318 -0
  62. package/test/snapshots/texml-tests/book.html +14 -11
  63. package/test/snapshots/texml-tests/book.xml +19 -13
  64. package/test/snapshots/texml-tests/booktabs.xml +2 -2
  65. package/test/snapshots/texml-tests/boxes.xml +1 -1
  66. package/test/snapshots/texml-tests/caption.xml +1 -1
  67. package/test/snapshots/texml-tests/cite.html +1 -1
  68. package/test/snapshots/texml-tests/cite.xml +2 -2
  69. package/test/snapshots/texml-tests/citesort.xml +1 -1
  70. package/test/snapshots/texml-tests/cleveref.xml +2 -2
  71. package/test/snapshots/texml-tests/collection.html +60 -0
  72. package/test/snapshots/texml-tests/collection.xml +237 -0
  73. package/test/snapshots/texml-tests/colortbl.xml +1 -1
  74. package/test/snapshots/texml-tests/combinetoks.xml +1 -1
  75. package/test/snapshots/texml-tests/comments.html +41 -0
  76. package/test/snapshots/texml-tests/comments.xml +33 -0
  77. package/test/snapshots/texml-tests/constants.xml +1 -1
  78. package/test/snapshots/texml-tests/csstring.xml +1 -1
  79. package/test/snapshots/texml-tests/detokenize.xml +1 -1
  80. package/test/snapshots/texml-tests/diacritics.xml +1 -1
  81. package/test/snapshots/texml-tests/dimexpr.xml +1 -1
  82. package/test/snapshots/texml-tests/drm.html +1 -1
  83. package/test/snapshots/texml-tests/drm.xml +3 -3
  84. package/test/snapshots/texml-tests/edgecases.html +42 -0
  85. package/test/snapshots/texml-tests/edgecases.xml +20 -0
  86. package/test/snapshots/texml-tests/escapechar.html +47 -0
  87. package/test/snapshots/texml-tests/escapechar.xml +34 -0
  88. package/test/snapshots/texml-tests/escapeinside.html +44 -0
  89. package/test/snapshots/texml-tests/escapeinside.xml +28 -0
  90. package/test/snapshots/texml-tests/eurosym.html +45 -0
  91. package/test/snapshots/texml-tests/eurosym.xml +23 -0
  92. package/test/snapshots/texml-tests/euscript.xml +1 -1
  93. package/test/snapshots/texml-tests/everyeof.xml +1 -1
  94. package/test/snapshots/texml-tests/expanded.xml +1 -1
  95. package/test/snapshots/texml-tests/expl3.xml +1 -1
  96. package/test/snapshots/texml-tests/extarrows.xml +1 -1
  97. package/test/snapshots/texml-tests/footnote.html +33 -22
  98. package/test/snapshots/texml-tests/footnote.xml +72 -53
  99. package/test/snapshots/texml-tests/framedboxes.xml +1 -1
  100. package/test/snapshots/texml-tests/glueexpr.xml +1 -1
  101. package/test/snapshots/texml-tests/gobble.html +44 -0
  102. package/test/snapshots/texml-tests/gobble.xml +38 -0
  103. package/test/snapshots/texml-tests/gsm_l.html +25 -20
  104. package/test/snapshots/texml-tests/gsm_l.xml +33 -25
  105. package/test/snapshots/texml-tests/halign.xml +1 -1
  106. package/test/snapshots/texml-tests/hello.xml +1 -1
  107. package/test/snapshots/texml-tests/hhline.xml +1 -1
  108. package/test/snapshots/texml-tests/hline.xml +1 -1
  109. package/test/snapshots/texml-tests/hyperams.xml +1 -1
  110. package/test/snapshots/texml-tests/hyperref.xml +1 -1
  111. package/test/snapshots/texml-tests/i283.xml +2 -2
  112. package/test/snapshots/texml-tests/ifcondition.xml +1 -1
  113. package/test/snapshots/texml-tests/ifcsname.xml +1 -1
  114. package/test/snapshots/texml-tests/ifdefined.xml +1 -1
  115. package/test/snapshots/texml-tests/ifdim.xml +1 -1
  116. package/test/snapshots/texml-tests/ifnum.xml +1 -1
  117. package/test/snapshots/texml-tests/ifprimitive.xml +1 -1
  118. package/test/snapshots/texml-tests/immediateassigned.xml +1 -1
  119. package/test/snapshots/texml-tests/immediateassignment.xml +1 -1
  120. package/test/snapshots/texml-tests/index.xml +1 -1
  121. package/test/snapshots/texml-tests/lastbox.xml +1 -1
  122. package/test/snapshots/texml-tests/lastkern.xml +1 -1
  123. package/test/snapshots/texml-tests/lastnamedcs.xml +1 -1
  124. package/test/snapshots/texml-tests/let.xml +1 -1
  125. package/test/snapshots/texml-tests/letcharcode.xml +1 -1
  126. package/test/snapshots/texml-tests/ligatures.xml +3 -3
  127. package/test/snapshots/texml-tests/listings.html +7 -12
  128. package/test/snapshots/texml-tests/listings.xml +19 -10
  129. package/test/snapshots/texml-tests/listoffigures.html +98 -0
  130. package/test/snapshots/texml-tests/listoffigures.xml +180 -0
  131. package/test/snapshots/texml-tests/literate.html +41 -0
  132. package/test/snapshots/texml-tests/literate.xml +26 -0
  133. package/test/snapshots/texml-tests/longtable.xml +1 -1
  134. package/test/snapshots/texml-tests/makecell.xml +1 -1
  135. package/test/snapshots/texml-tests/maketitle.html +6 -2
  136. package/test/snapshots/texml-tests/maketitle.xml +4 -2
  137. package/test/snapshots/texml-tests/manfnt.xml +1 -1
  138. package/test/snapshots/texml-tests/mathscinet.xml +1 -1
  139. package/test/snapshots/texml-tests/mathscr.xml +1 -1
  140. package/test/snapshots/texml-tests/meaning.xml +1 -1
  141. package/test/snapshots/texml-tests/metadata.xml +1 -1
  142. package/test/snapshots/texml-tests/muexpr.xml +1 -1
  143. package/test/snapshots/texml-tests/multicolumn.xml +3 -3
  144. package/test/snapshots/texml-tests/multirow.xml +3 -3
  145. package/test/snapshots/texml-tests/multirowcell.xml +4 -4
  146. package/test/snapshots/texml-tests/multline.xml +1 -1
  147. package/test/snapshots/texml-tests/nameref.xml +2 -2
  148. package/test/snapshots/texml-tests/names.xml +1 -1
  149. package/test/snapshots/texml-tests/natbib.html +41 -26
  150. package/test/snapshots/texml-tests/natbib.xml +66 -44
  151. package/test/snapshots/texml-tests/noexpand.xml +1 -1
  152. package/test/snapshots/texml-tests/noindent.xml +1 -1
  153. package/test/snapshots/texml-tests/numexpr.xml +1 -1
  154. package/test/snapshots/texml-tests/oldfont.html +59 -0
  155. package/test/snapshots/texml-tests/oldfont.xml +37 -0
  156. package/test/snapshots/texml-tests/parshape.xml +1 -1
  157. package/test/snapshots/texml-tests/part.html +33 -25
  158. package/test/snapshots/texml-tests/part.xml +47 -33
  159. package/test/snapshots/texml-tests/perl.html +41 -0
  160. package/test/snapshots/texml-tests/perl.xml +32 -0
  161. package/test/snapshots/texml-tests/protected.xml +1 -1
  162. package/test/snapshots/texml-tests/quote.xml +1 -1
  163. package/test/snapshots/texml-tests/ref.xml +2 -2
  164. package/test/snapshots/texml-tests/refrange.xml +11 -11
  165. package/test/snapshots/texml-tests/scantokens.xml +1 -1
  166. package/test/snapshots/texml-tests/secmeta.html +4 -4
  167. package/test/snapshots/texml-tests/secmeta.xml +4 -4
  168. package/test/snapshots/texml-tests/section.xml +10 -10
  169. package/test/snapshots/texml-tests/showonlyrefs.xml +1 -1
  170. package/test/snapshots/texml-tests/smash.xml +1 -1
  171. package/test/snapshots/texml-tests/stepnumber-1.html +8 -0
  172. package/test/snapshots/texml-tests/stepnumber-1.xml +23 -0
  173. package/test/snapshots/texml-tests/stepnumber-2.html +6 -0
  174. package/test/snapshots/texml-tests/stepnumber-2.xml +21 -0
  175. package/test/snapshots/texml-tests/stepnumber-3.html +6 -0
  176. package/test/snapshots/texml-tests/stepnumber-3.xml +21 -0
  177. package/test/snapshots/texml-tests/strcmp.xml +1 -1
  178. package/test/snapshots/texml-tests/string-m.html +41 -0
  179. package/test/snapshots/texml-tests/string-m.xml +32 -0
  180. package/test/snapshots/texml-tests/string.xml +1 -1
  181. package/test/snapshots/texml-tests/strings.html +41 -0
  182. package/test/snapshots/texml-tests/strings.xml +31 -0
  183. package/test/snapshots/texml-tests/sub_sup.xml +1 -1
  184. package/test/snapshots/texml-tests/subcaption.xml +1 -1
  185. package/test/snapshots/texml-tests/tableofcontents.html +35 -26
  186. package/test/snapshots/texml-tests/tableofcontents.xml +60 -38
  187. package/test/snapshots/texml-tests/tabular.xml +1 -1
  188. package/test/snapshots/texml-tests/tcolorbox.xml +1 -1
  189. package/test/snapshots/texml-tests/texcl.html +18 -0
  190. package/test/snapshots/texml-tests/texcl.xml +68 -0
  191. package/test/snapshots/texml-tests/textequation.xml +1 -1
  192. package/test/snapshots/texml-tests/thm-restate.xml +1 -1
  193. package/test/snapshots/texml-tests/tracingnodes.xml +1 -1
  194. package/test/snapshots/texml-tests/unexpanded.xml +1 -1
  195. package/test/snapshots/texml-tests/unless.xml +1 -1
  196. package/test/snapshots/texml-tests/upgreek.xml +1 -1
  197. package/test/snapshots/texml-tests/url.xml +1 -1
  198. package/test/snapshots/texml-tests/verb.xml +1 -1
  199. package/test/snapshots/texml-tests/vlist.xml +1 -1
  200. package/test/snapshots/texml-tests/xcolor.xml +1 -1
  201. package/test/snapshots/texml-tests/xmllabel.xml +1 -1
@@ -9,12 +9,12 @@
9
9
  </article-meta>
10
10
  </front>
11
11
  <body id="ltxid2">
12
- <sec disp-level="1" id="ltxid3" specific-use="section">
12
+ <sec id="ltxid3" specific-use="section">
13
13
  <title>misc</title>
14
14
  <p>- + - = –</p>
15
15
  <p>– + - = —</p>
16
16
  </sec>
17
- <sec disp-level="1" id="ltxid4" specific-use="section">
17
+ <sec id="ltxid4" specific-use="section">
18
18
  <title>diaeresis</title>
19
19
  <p>῁ + ι = ῗ</p>
20
20
  <p>῁ + υ = ῧ</p>
@@ -26,7 +26,7 @@
26
26
  <p>¨ + Ι = Ϊ</p>
27
27
  <p>¨ + Υ = ϔ</p>
28
28
  </sec>
29
- <sec disp-level="1" id="ltxid5" specific-use="section">
29
+ <sec id="ltxid5" specific-use="section">
30
30
  <title>omega</title>
31
31
  <p><monospace>W</monospace> + <monospace>|</monospace> = ῼ</p>
32
32
  <p><monospace>W</monospace> + <monospace>'</monospace> = ´</p>
@@ -35,7 +35,7 @@
35
35
  <p><monospace>W</monospace> + <monospace>&gt;</monospace> = Ω᾿</p>
36
36
  <p><monospace>W</monospace> + <monospace> </monospace> = Ω</p>
37
37
  </sec>
38
- <sec disp-level="1" id="ltxid6" specific-use="section">
38
+ <sec id="ltxid6" specific-use="section">
39
39
  <title>omicron</title>
40
40
  <p><monospace>w</monospace> + <monospace>|</monospace> = ῳ</p>
41
41
  <p>ώ: <monospace>w</monospace> + <monospace>'</monospace> = ω´</p>
@@ -44,15 +44,15 @@
44
44
  <p>ω: <monospace>w</monospace> + <monospace>&gt;</monospace> = ω᾿</p>
45
45
  <p>ῶ: <monospace>w</monospace> + <monospace> </monospace> = ω</p>
46
46
  </sec>
47
- <sec disp-level="1" id="ltxid7" specific-use="section">
47
+ <sec id="ltxid7" specific-use="section">
48
48
  <title>wtf</title>
49
49
  <p><monospace>v</monospace> + <monospace>A</monospace> = Α</p>
50
50
  </sec>
51
- <sec disp-level="1" id="ltxid8" specific-use="section">
51
+ <sec id="ltxid8" specific-use="section">
52
52
  <title>final sigma</title>
53
53
  <p>σ + . = ς.</p>
54
54
  </sec>
55
- <sec disp-level="1" id="ltxid9" specific-use="section">
55
+ <sec id="ltxid9" specific-use="section">
56
56
  <title>tonos</title>
57
57
  <p><monospace>'</monospace> + <monospace>a</monospace> = ά</p>
58
58
  <p><monospace>'</monospace> + <monospace>h</monospace> = ή</p>
@@ -62,7 +62,7 @@
62
62
  <p><monospace>'</monospace> + <monospace>i</monospace> = ί</p>
63
63
  <p><monospace>'</monospace> + <monospace>u</monospace> = ύ</p>
64
64
  </sec>
65
- <sec disp-level="1" id="ltxid10" specific-use="section">
65
+ <sec id="ltxid10" specific-use="section">
66
66
  <title>varia</title>
67
67
  <p><monospace>`</monospace> + <monospace>a</monospace> = ά</p>
68
68
  <p><monospace>`</monospace> + <monospace>h</monospace> = ὴ</p>
@@ -72,7 +72,7 @@
72
72
  <p><monospace>`</monospace> + <monospace>i</monospace> = ὶ</p>
73
73
  <p><monospace>`</monospace> + <monospace>u</monospace> = ὺ</p>
74
74
  </sec>
75
- <sec disp-level="1" id="ltxid11" specific-use="section">
75
+ <sec id="ltxid11" specific-use="section">
76
76
  <title>Aristophanes, <italic toggle="yes">The Birds</italic>, line 1004–1006</title>
77
77
  <verse-group>
78
78
  <p>ὀρθῷ μετρήσω κανόνι προστιθείς ἳνα<break/> ὁ κύκλος γένηταί σοι τετράγωνος κἀν μέσῳ<break/> ἀγορά</p>
@@ -9,7 +9,7 @@
9
9
  </article-meta>
10
10
  </front>
11
11
  <body id="ltxid2">
12
- <sec disp-level="1" id="ltxid3" specific-use="section">
12
+ <sec id="ltxid3" specific-use="section untagged">
13
13
  <p>hello, world</p>
14
14
  <p><monospace>?</monospace> + <monospace>`</monospace> = ¿</p>
15
15
  <p><monospace>!</monospace> + <monospace>`</monospace> = ¡</p>
@@ -9,7 +9,7 @@
9
9
  </article-meta>
10
10
  </front>
11
11
  <body id="ltxid2">
12
- <sec disp-level="1" id="ltxid3" specific-use="section">
12
+ <sec id="ltxid3" specific-use="section untagged">
13
13
  <p>hello, world</p>
14
14
  <p><monospace>?</monospace> + <monospace>`</monospace> = ¿</p>
15
15
  <p><monospace>!</monospace> + <monospace>`</monospace> = ¡</p>
@@ -9,7 +9,7 @@
9
9
  </article-meta>
10
10
  </front>
11
11
  <body id="ltxid2">
12
- <sec disp-level="1" id="ltxid3" specific-use="section">
12
+ <sec id="ltxid3" specific-use="section untagged">
13
13
  <p>hello, world</p>
14
14
  <p><monospace>?</monospace> + <monospace>`</monospace> = ¿</p>
15
15
  <p><monospace>!</monospace> + <monospace>`</monospace> = ¡</p>
@@ -9,7 +9,7 @@
9
9
  </article-meta>
10
10
  </front>
11
11
  <body id="ltxid2">
12
- <sec disp-level="1" id="ltxid3" specific-use="section">
12
+ <sec id="ltxid3" specific-use="section untagged">
13
13
  <p>hello, world</p>
14
14
  <p>хелло, щорлд</p>
15
15
  <p><monospace>-</monospace> + <monospace>-</monospace> = –</p>
@@ -9,7 +9,7 @@
9
9
  </article-meta>
10
10
  </front>
11
11
  <body id="ltxid2">
12
- <sec disp-level="1" id="ltxid3" specific-use="section">
12
+ <sec id="ltxid3" specific-use="section untagged">
13
13
  <p>hello, world</p>
14
14
  <p><monospace>!</monospace> + <monospace>`</monospace> = ¡</p>
15
15
  <p><monospace>,</monospace> + <monospace>,</monospace> = „</p>
@@ -9,10 +9,10 @@
9
9
  </article-meta>
10
10
  </front>
11
11
  <body id="ltxid2">
12
- <sec disp-level="1" id="ltxid3" specific-use="section">
12
+ <sec id="ltxid3" specific-use="section untagged">
13
13
  <p>բարև աշխարհ</p>
14
14
  </sec>
15
- <sec disp-level="1" id="ltxid4" specific-use="section">
15
+ <sec id="ltxid4" specific-use="section">
16
16
  <label>1<x>.</x></label>
17
17
  <title>լիգատuրես</title>
18
18
  <p>«</p>
@@ -9,7 +9,7 @@
9
9
  </article-meta>
10
10
  </front>
11
11
  <body id="ltxid2">
12
- <sec disp-level="1" id="ltxid3" specific-use="section">
12
+ <sec id="ltxid3" specific-use="section untagged">
13
13
  <p>hello, world</p>
14
14
  <p><monospace>-</monospace> + <monospace>-</monospace> = –</p>
15
15
  <p><monospace>--</monospace> + <monospace>-</monospace> = —</p>
@@ -9,7 +9,7 @@
9
9
  </article-meta>
10
10
  </front>
11
11
  <body id="ltxid2">
12
- <sec disp-level="1" id="ltxid3" specific-use="section">
12
+ <sec id="ltxid3" specific-use="section untagged">
13
13
  <p>hello, world</p>
14
14
  <p>fj ligature: f</p>
15
15
  <p>open E tilde: Ɛ</p>
@@ -9,7 +9,7 @@
9
9
  </article-meta>
10
10
  </front>
11
11
  <body id="ltxid2">
12
- <sec disp-level="1" id="ltxid3" specific-use="section">
12
+ <sec id="ltxid3" specific-use="section untagged">
13
13
  <p>Xin chào thế giới</p>
14
14
  <p><monospace>'</monospace> + <monospace>'</monospace> = ”</p>
15
15
  <p><monospace>`</monospace> + <monospace>`</monospace> = “</p>
@@ -9,7 +9,7 @@
9
9
  </article-meta>
10
10
  </front>
11
11
  <body id="ltxid2">
12
- <sec disp-level="1" id="ltxid3" specific-use="section">
12
+ <sec id="ltxid3" specific-use="section untagged">
13
13
  <p>hello, world</p>
14
14
  <p>1: <monospace>the letter A</monospace></p>
15
15
  <p>2: <monospace>the character A</monospace></p>
@@ -9,7 +9,7 @@
9
9
  </article-meta>
10
10
  </front>
11
11
  <body id="ltxid2">
12
- <sec disp-level="1" id="ltxid3" specific-use="section">
12
+ <sec id="ltxid3" specific-use="section untagged">
13
13
  <p>hello, world</p>
14
14
  <p>ķ</p>
15
15
  <p>ü</p>
@@ -9,13 +9,13 @@
9
9
  </article-meta>
10
10
  </front>
11
11
  <body id="ltxid2">
12
- <sec disp-level="1" id="ltxid3" specific-use="section">
12
+ <sec id="ltxid3" specific-use="section untagged">
13
13
  <p>hello, world</p>
14
14
  </sec>
15
- <sec disp-level="1" id="ltxid4" specific-use="section">
15
+ <sec id="ltxid4" specific-use="section">
16
16
  <label>1<x>.</x></label>
17
17
  <title>Basic forms</title>
18
- <sec disp-level="2" id="ltxid5" specific-use="subsection">
18
+ <sec id="ltxid5" specific-use="subsection">
19
19
  <label>1.1<x>.</x></label>
20
20
  <title>The Simple Statement<x>.</x></title>
21
21
  <alg:algorithm linenodelimiter=":">
@@ -28,7 +28,7 @@
28
28
  </alg:line>
29
29
  </alg:algorithm>
30
30
  </sec>
31
- <sec disp-level="2" id="ltxid6" specific-use="subsection">
31
+ <sec id="ltxid6" specific-use="subsection">
32
32
  <label>1.2<x>.</x></label>
33
33
  <title>Simple Statement with Comment<x>.</x></title>
34
34
  <alg:algorithm linenodelimiter=":">
@@ -42,7 +42,7 @@
42
42
  </alg:line>
43
43
  </alg:algorithm>
44
44
  </sec>
45
- <sec disp-level="2" id="ltxid7" specific-use="subsection">
45
+ <sec id="ltxid7" specific-use="subsection">
46
46
  <label>1.3<x>.</x></label>
47
47
  <title>The Precondition (never numbered)<x>.</x></title>
48
48
  <alg:algorithm linenodelimiter=":">
@@ -52,7 +52,7 @@
52
52
  </alg:line>
53
53
  </alg:algorithm>
54
54
  </sec>
55
- <sec disp-level="2" id="ltxid8" specific-use="subsection">
55
+ <sec id="ltxid8" specific-use="subsection">
56
56
  <label>1.4<x>.</x></label>
57
57
  <title>The Postcondition (never numbered)<x>.</x></title>
58
58
  <alg:algorithm linenodelimiter=":">
@@ -62,7 +62,7 @@
62
62
  </alg:line>
63
63
  </alg:algorithm>
64
64
  </sec>
65
- <sec disp-level="2" id="ltxid9" specific-use="subsection">
65
+ <sec id="ltxid9" specific-use="subsection">
66
66
  <label>1.5<x>.</x></label>
67
67
  <title>Globals<x>.</x></title>
68
68
  <alg:algorithm linenodelimiter=":">
@@ -72,7 +72,7 @@
72
72
  </alg:line>
73
73
  </alg:algorithm>
74
74
  </sec>
75
- <sec disp-level="2" id="ltxid10" specific-use="subsection">
75
+ <sec id="ltxid10" specific-use="subsection">
76
76
  <label>1.6<x>.</x></label>
77
77
  <title>Inputs<x>.</x></title>
78
78
  <alg:algorithm linenodelimiter=":">
@@ -91,7 +91,7 @@
91
91
  </alg:inputs>
92
92
  </alg:algorithm>
93
93
  </sec>
94
- <sec disp-level="2" id="ltxid11" specific-use="subsection">
94
+ <sec id="ltxid11" specific-use="subsection">
95
95
  <label>1.7<x>.</x></label>
96
96
  <title>Outputs<x>.</x></title>
97
97
  <alg:algorithm linenodelimiter=":">
@@ -110,7 +110,7 @@
110
110
  </alg:outputs>
111
111
  </alg:algorithm>
112
112
  </sec>
113
- <sec disp-level="2" id="ltxid12" specific-use="subsection">
113
+ <sec id="ltxid12" specific-use="subsection">
114
114
  <label>1.8<x>.</x></label>
115
115
  <title>The body<x>.</x></title>
116
116
  <alg:algorithm linenodelimiter=":">
@@ -132,7 +132,7 @@
132
132
  </alg:body>
133
133
  </alg:algorithm>
134
134
  </sec>
135
- <sec disp-level="2" id="ltxid13" specific-use="subsection">
135
+ <sec id="ltxid13" specific-use="subsection">
136
136
  <label>1.9<x>.</x></label>
137
137
  <title>The <italic toggle="yes">if-then-else</italic> Statement<x>.</x></title>
138
138
  <alg:algorithm linenodelimiter=":">
@@ -193,7 +193,7 @@
193
193
  </alg:if>
194
194
  </alg:algorithm>
195
195
  </sec>
196
- <sec disp-level="2" id="ltxid14" specific-use="subsection">
196
+ <sec id="ltxid14" specific-use="subsection">
197
197
  <label>1.10<x>.</x></label>
198
198
  <title>The <italic toggle="yes">for</italic> Loop<x>.</x></title>
199
199
  <alg:algorithm linenodelimiter=":">
@@ -251,7 +251,7 @@
251
251
  </alg:for>
252
252
  </alg:algorithm>
253
253
  </sec>
254
- <sec disp-level="2" id="ltxid15" specific-use="subsection">
254
+ <sec id="ltxid15" specific-use="subsection">
255
255
  <label>1.11<x>.</x></label>
256
256
  <title>The <italic toggle="yes">while</italic> Loop<x>.</x></title>
257
257
  <alg:algorithm linenodelimiter=":">
@@ -273,7 +273,7 @@
273
273
  </alg:while>
274
274
  </alg:algorithm>
275
275
  </sec>
276
- <sec disp-level="2" id="ltxid16" specific-use="subsection">
276
+ <sec id="ltxid16" specific-use="subsection">
277
277
  <label>1.12<x>.</x></label>
278
278
  <title>The <italic toggle="yes">repeat-until</italic> Loop<x>.</x></title>
279
279
  <alg:algorithm linenodelimiter=":">
@@ -301,7 +301,7 @@
301
301
  </alg:repeat>
302
302
  </alg:algorithm>
303
303
  </sec>
304
- <sec disp-level="2" id="ltxid17" specific-use="subsection">
304
+ <sec id="ltxid17" specific-use="subsection">
305
305
  <label>1.13<x>.</x></label>
306
306
  <title>The Infinite Loop<x>.</x></title>
307
307
  <alg:algorithm linenodelimiter=":">
@@ -325,7 +325,7 @@
325
325
  </alg:loop>
326
326
  </alg:algorithm>
327
327
  </sec>
328
- <sec disp-level="2" id="ltxid18" specific-use="subsection">
328
+ <sec id="ltxid18" specific-use="subsection">
329
329
  <label>1.14<x>.</x></label>
330
330
  <title>Returning Values<x>.</x></title>
331
331
  <alg:algorithm linenodelimiter=":">
@@ -334,7 +334,7 @@
334
334
  </alg:line>
335
335
  </alg:algorithm>
336
336
  </sec>
337
- <sec disp-level="2" id="ltxid19" specific-use="subsection">
337
+ <sec id="ltxid19" specific-use="subsection">
338
338
  <label>1.15<x>.</x></label>
339
339
  <title>Printing Messages<x>.</x></title>
340
340
  <alg:algorithm linenodelimiter=":">
@@ -344,10 +344,10 @@
344
344
  </alg:algorithm>
345
345
  </sec>
346
346
  </sec>
347
- <sec disp-level="1" id="ltxid20" specific-use="section">
347
+ <sec id="ltxid20" specific-use="section">
348
348
  <label>2<x>.</x></label>
349
349
  <title>Some longer examples</title>
350
- <sec disp-level="2" id="ltxid21" specific-use="subsection">
350
+ <sec id="ltxid21" specific-use="subsection">
351
351
  <label>2.1<x>.</x></label>
352
352
  <title><italic toggle="yes">if-elsif-else</italic><x>.</x></title>
353
353
  <alg:algorithm linenodelimiter=":">
@@ -399,7 +399,7 @@
399
399
  </alg:if>
400
400
  </alg:algorithm>
401
401
  </sec>
402
- <sec disp-level="2" id="ltxid22" specific-use="subsection">
402
+ <sec id="ltxid22" specific-use="subsection">
403
403
  <label>2.2<x>.</x></label>
404
404
  <title>Nested structures<x>.</x></title>
405
405
  <alg:algorithm linenodelimiter=":">
@@ -494,7 +494,7 @@
494
494
  </alg:while>
495
495
  </alg:algorithm>
496
496
  </sec>
497
- <sec disp-level="2" id="ltxid23" specific-use="subsection">
497
+ <sec id="ltxid23" specific-use="subsection">
498
498
  <label>2.3<x>.</x></label>
499
499
  <title>mcom3655<x>.</x></title>
500
500
  <alg:algorithm linenodelimiter=":">
@@ -523,7 +523,7 @@
523
523
  </alg:while>
524
524
  </alg:algorithm>
525
525
  </sec>
526
- <sec disp-level="2" id="ltxid24" specific-use="subsection">
526
+ <sec id="ltxid24" specific-use="subsection">
527
527
  <label>2.4<x>.</x></label>
528
528
  <title>mcom3356<x>.</x></title>
529
529
  <alg:algorithm linenodelimiter=":">
@@ -580,7 +580,7 @@
580
580
  </alg:for>
581
581
  </alg:algorithm>
582
582
  </sec>
583
- <sec disp-level="2" id="ltxid25" specific-use="subsection">
583
+ <sec id="ltxid25" specific-use="subsection">
584
584
  <label>2.5<x>.</x></label>
585
585
  <title>mcom3363<x>.</x></title>
586
586
  <alg:algorithm linenodelimiter=":">
@@ -634,7 +634,7 @@
634
634
  </alg:line>
635
635
  </alg:algorithm>
636
636
  </sec>
637
- <sec disp-level="2" id="ltxid26" specific-use="subsection">
637
+ <sec id="ltxid26" specific-use="subsection">
638
638
  <label>2.6<x>.</x></label>
639
639
  <title>mcom3385 (with endtags=no)<x>.</x></title>
640
640
  <alg:algorithm linenodelimiter=":">
@@ -9,13 +9,13 @@
9
9
  </article-meta>
10
10
  </front>
11
11
  <body id="ltxid2">
12
- <sec disp-level="1" id="ltxid3" specific-use="section">
12
+ <sec id="ltxid3" specific-use="section untagged">
13
13
  <p>hello, world</p>
14
14
  </sec>
15
- <sec disp-level="1" id="ltxid4" specific-use="section">
15
+ <sec id="ltxid4" specific-use="section">
16
16
  <label>1<x>.</x></label>
17
17
  <title>Basic forms</title>
18
- <sec disp-level="2" id="ltxid5" specific-use="subsection">
18
+ <sec id="ltxid5" specific-use="subsection">
19
19
  <label>1.1<x>.</x></label>
20
20
  <title>The Simple Statement<x>.</x></title>
21
21
  <alg:algorithm linenodelimiter=":">
@@ -28,7 +28,7 @@
28
28
  </alg:line>
29
29
  </alg:algorithm>
30
30
  </sec>
31
- <sec disp-level="2" id="ltxid6" specific-use="subsection">
31
+ <sec id="ltxid6" specific-use="subsection">
32
32
  <label>1.2<x>.</x></label>
33
33
  <title>Unnumbered Simple Statement<x>.</x></title>
34
34
  <alg:algorithm linenodelimiter=":">
@@ -48,7 +48,7 @@
48
48
  </alg:line>
49
49
  </alg:algorithm>
50
50
  </sec>
51
- <sec disp-level="2" id="ltxid7" specific-use="subsection">
51
+ <sec id="ltxid7" specific-use="subsection">
52
52
  <label>1.3<x>.</x></label>
53
53
  <title>Simple Statement with Comment<x>.</x></title>
54
54
  <alg:algorithm linenodelimiter=":">
@@ -62,7 +62,7 @@
62
62
  </alg:line>
63
63
  </alg:algorithm>
64
64
  </sec>
65
- <sec disp-level="2" id="ltxid8" specific-use="subsection">
65
+ <sec id="ltxid8" specific-use="subsection">
66
66
  <label>1.4<x>.</x></label>
67
67
  <title>The Precondition (never numbered)<x>.</x></title>
68
68
  <alg:algorithm linenodelimiter=":">
@@ -72,7 +72,7 @@
72
72
  </alg:line>
73
73
  </alg:algorithm>
74
74
  </sec>
75
- <sec disp-level="2" id="ltxid9" specific-use="subsection">
75
+ <sec id="ltxid9" specific-use="subsection">
76
76
  <label>1.5<x>.</x></label>
77
77
  <title>The Postcondition (never numbered)<x>.</x></title>
78
78
  <alg:algorithm linenodelimiter=":">
@@ -82,7 +82,7 @@
82
82
  </alg:line>
83
83
  </alg:algorithm>
84
84
  </sec>
85
- <sec disp-level="2" id="ltxid10" specific-use="subsection">
85
+ <sec id="ltxid10" specific-use="subsection">
86
86
  <label>1.6<x>.</x></label>
87
87
  <title>Procedure<x>.</x></title>
88
88
  <alg:algorithm linenodelimiter=":">
@@ -144,7 +144,7 @@
144
144
  </alg:procedure>
145
145
  </alg:algorithm>
146
146
  </sec>
147
- <sec disp-level="2" id="ltxid11" specific-use="subsection">
147
+ <sec id="ltxid11" specific-use="subsection">
148
148
  <label>1.7<x>.</x></label>
149
149
  <title>Function<x>.</x></title>
150
150
  <alg:algorithm linenodelimiter=":">
@@ -203,7 +203,7 @@
203
203
  </alg:function>
204
204
  </alg:algorithm>
205
205
  </sec>
206
- <sec disp-level="2" id="ltxid12" specific-use="subsection">
206
+ <sec id="ltxid12" specific-use="subsection">
207
207
  <label>1.8<x>.</x></label>
208
208
  <title>The <italic toggle="yes">if-then-else</italic> Statement<x>.</x></title>
209
209
  <alg:algorithm linenodelimiter=":">
@@ -264,7 +264,7 @@
264
264
  </alg:if>
265
265
  </alg:algorithm>
266
266
  </sec>
267
- <sec disp-level="2" id="ltxid13" specific-use="subsection">
267
+ <sec id="ltxid13" specific-use="subsection">
268
268
  <label>1.9<x>.</x></label>
269
269
  <title>The <italic toggle="yes">for</italic> Loop<x>.</x></title>
270
270
  <alg:algorithm linenodelimiter=":">
@@ -304,7 +304,7 @@
304
304
  </alg:forall>
305
305
  </alg:algorithm>
306
306
  </sec>
307
- <sec disp-level="2" id="ltxid14" specific-use="subsection">
307
+ <sec id="ltxid14" specific-use="subsection">
308
308
  <label>1.10<x>.</x></label>
309
309
  <title>The <italic toggle="yes">while</italic> Loop<x>.</x></title>
310
310
  <alg:algorithm linenodelimiter=":">
@@ -326,7 +326,7 @@
326
326
  </alg:while>
327
327
  </alg:algorithm>
328
328
  </sec>
329
- <sec disp-level="2" id="ltxid15" specific-use="subsection">
329
+ <sec id="ltxid15" specific-use="subsection">
330
330
  <label>1.11<x>.</x></label>
331
331
  <title>The <italic toggle="yes">repeat-until</italic> Loop<x>.</x></title>
332
332
  <alg:algorithm linenodelimiter=":">
@@ -354,7 +354,7 @@
354
354
  </alg:repeat>
355
355
  </alg:algorithm>
356
356
  </sec>
357
- <sec disp-level="2" id="ltxid16" specific-use="subsection">
357
+ <sec id="ltxid16" specific-use="subsection">
358
358
  <label>1.12<x>.</x></label>
359
359
  <title>The Infinite Loop<x>.</x></title>
360
360
  <alg:algorithm linenodelimiter=":">
@@ -378,15 +378,15 @@
378
378
  </alg:loop>
379
379
  </alg:algorithm>
380
380
  </sec>
381
- <sec disp-level="2" id="ltxid17" specific-use="subsection">
381
+ <sec id="ltxid17" specific-use="subsection">
382
382
  <label>1.13<x>.</x></label>
383
383
  <title>Returning Values<x>.</x></title>
384
384
  </sec>
385
385
  </sec>
386
- <sec disp-level="1" id="ltxid18" specific-use="section">
386
+ <sec id="ltxid18" specific-use="section">
387
387
  <label>2<x>.</x></label>
388
388
  <title>Some longer examples</title>
389
- <sec disp-level="2" id="ltxid19" specific-use="subsection">
389
+ <sec id="ltxid19" specific-use="subsection">
390
390
  <label>2.1<x>.</x></label>
391
391
  <title><italic toggle="yes">if-elsif-else</italic><x>.</x></title>
392
392
  <alg:algorithm linenodelimiter=":">
@@ -438,7 +438,7 @@
438
438
  </alg:if>
439
439
  </alg:algorithm>
440
440
  </sec>
441
- <sec disp-level="2" id="ltxid20" specific-use="subsection">
441
+ <sec id="ltxid20" specific-use="subsection">
442
442
  <label>2.2<x>.</x></label>
443
443
  <title>Nested structures<x>.</x></title>
444
444
  <alg:algorithm linenodelimiter=":">
@@ -9,7 +9,7 @@
9
9
  </article-meta>
10
10
  </front>
11
11
  <body id="ltxid2">
12
- <sec disp-level="1" id="ltxid3" specific-use="section">
12
+ <sec id="ltxid3" specific-use="section untagged">
13
13
  <p>[]: empty</p>
14
14
  <p>[ ]: not empty</p>
15
15
  <p>[ ]: empty</p>
@@ -15,7 +15,10 @@
15
15
  {
16
16
  "name": "Jane Doe",
17
17
  "bio": "",
18
- "affiliations": [],
18
+ "affiliations": [
19
+ "First author’s address",
20
+ "<span>Address at time of publication:</span> First author’s current address"
21
+ ],
19
22
  "emails": [
20
23
  "jane.doe@nowhere"
21
24
  ],
@@ -26,7 +29,9 @@
26
29
  {
27
30
  "name": "John Bull",
28
31
  "bio": "",
29
- "affiliations": [],
32
+ "affiliations": [
33
+ "Second author’s address"
34
+ ],
30
35
  "emails": [
31
36
  "john.bull@nowhere"
32
37
  ],
@@ -11,17 +11,20 @@
11
11
  <string-name>Jane Doe</string-name>
12
12
  <contrib-id contrib-id-type="orcid">ORCID id</contrib-id>
13
13
  <contrib-id contrib-id-type="mrauth">MR author id</contrib-id>
14
- <aff>First author’s address</aff>
15
- <aff specific-use="current">First author’s current address</aff>
14
+ <xref ref-type="aff" rid="aff1_0l"/>
15
+ <xref ref-type="aff" rid="aff1_1l"/>
16
16
  <email>jane.doe@nowhere</email>
17
17
  <uri>https://www.ams.org/</uri>
18
18
  </contrib>
19
+ <aff id="aff1_0l">First author’s address</aff>
20
+ <aff id="aff1_1l" specific-use="current">First author’s current address</aff>
19
21
  <contrib contrib-type="author">
20
22
  <string-name>John Bull</string-name>
21
- <aff>Second author’s address</aff>
23
+ <xref ref-type="aff" rid="aff2_0l"/>
22
24
  <email>john.bull@nowhere</email>
23
25
  <uri>https://www.ams.org/</uri>
24
26
  </contrib>
27
+ <aff id="aff2_0l">Second author’s address</aff>
25
28
  </contrib-group>
26
29
  <abstract>
27
30
  <title>Abstract<x>.</x></title>
@@ -34,7 +37,7 @@
34
37
  </article-meta>
35
38
  </front>
36
39
  <body id="ltxid2">
37
- <sec disp-level="1" id="ltxid3" specific-use="section">
40
+ <sec id="ltxid3" specific-use="section">
38
41
  <label>1<x>.</x></label>
39
42
  <title>Introduction</title>
40
43
  <p>Here is some text.</p>
@@ -1,15 +1,32 @@
1
1
  <!DOCTYPE html> <html dir="ltr" lang="en"><head><meta charset="utf-8"><meta content="width=device-width, initial-scale=1" name="viewport"><title>Sample book</title></head><body>
2
- <section data-ams-doc="titlepage"><script type="application/json">{"book":{"identifiers":{"AMS":{},"crossref":{},"issn":{},"isbn":{},"loc":{},"basename":null},"title":"Sample book","alttitle":"Sample book"},"publishers":[],"contributors":{"authors":[{"name":"Jane Doe","bio":"","affiliations":[],"emails":["jane.doe@nowhere"],"mrauth":"MR author id","orcid":"ORCID id","uri":"https://www.ams.org/"},{"name":"John Bull","bio":"","affiliations":[],"emails":["john.bull@nowhere"],"uri":"https://www.ams.org/"}]},"permissions":{},"history":{}}</script></section>
2
+ <section data-ams-doc="titlepage"><script type="application/json">{"book":{"identifiers":{"AMS":{},"crossref":{},"issn":{},"isbn":{},"loc":{},"basename":null},"title":"Sample book","alttitle":"Sample book"},"publishers":[],"contributors":{"authors":[{"name":"Jane Doe","bio":"","affiliations":["First author’s address","<span>Address at time of publication:</span> First author’s current address"],"emails":["jane.doe@nowhere"],"mrauth":"MR author id","orcid":"ORCID id","uri":"https://www.ams.org/"},{"name":"John Bull","bio":"","affiliations":["Second author’s address"],"emails":["john.bull@nowhere"],"uri":"https://www.ams.org/"}]},"permissions":{},"history":{}}</script></section>
3
3
 
4
+ <section role="doc-introduction" id="ltxid2" data-ams-doc="chapter" data-ams-doc-level="0">
5
+ <div data-ams-doc="sec-meta">
6
+ <h1><span data-ams-doc="title">Introduction</span></h1>
7
+ </div>
8
+
9
+ <section id="ltxid3" data-ams-doc="section" data-ams-doc-level="1">
10
+ <p>Here is some text.</p>
11
+ </section>
12
+
13
+ </section>
4
14
 
5
-
15
+
16
+ <section role="doc-chapter" id="ltxid5" data-ams-doc="chapter" data-ams-doc-level="0">
17
+ <div data-ams-doc="sec-meta">
18
+ <h1><span data-ams-doc="label">Chapter 1</span> <span data-ams-doc="title">Main chapter</span></h1>
19
+ </div>
6
20
 
7
- <section role="doc-introduction" id="ltxid3" data-ams-doc="section" data-ams-doc-level="1"><h2><span data-ams-doc="label">1<ams-x>.</ams-x></span> <span data-ams-doc="title">Introduction</span></h2>
21
+ <section id="ltxid6" data-ams-doc="section" data-ams-doc-level="1">
22
+ <p>Blah blah blah.</p>
23
+ </section>
24
+ <section id="ltxid7" data-ams-doc="section" data-ams-doc-level="1"><h2><span data-ams-doc="label">1<ams-x>.</ams-x></span> <span data-ams-doc="title">First section</span></h2>
8
25
 
9
26
 
10
- <p>Here is some text.</p>
27
+ <p>More of the same.</p>
11
28
  </section>
12
29
 
13
-
30
+ </section>
14
31
 
15
32
  </body></html>