@amermathsoc/texml-to-html 18.5.0 → 18.7.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 (110) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +2 -1
  3. package/lib/elements/toc-entry.js +1 -0
  4. package/package.json +6 -6
  5. package/test/book.xml +1 -1
  6. package/test/element-book-meta.js +2 -1
  7. package/test/element-toc-toc-entry.js +14 -3
  8. package/test/snapshots/book.html +1 -1
  9. package/test/snapshots/texml-tests/amsart.html +4 -1
  10. package/test/snapshots/texml-tests/amsart.xml +4 -0
  11. package/test/snapshots/texml-tests/amsbook.html +22 -0
  12. package/test/snapshots/texml-tests/amsbook.xml +61 -0
  13. package/test/snapshots/texml-tests/amscyr.html +2 -6
  14. package/test/snapshots/texml-tests/amscyr.xml +4 -8
  15. package/test/snapshots/texml-tests/amsfonts.html +1 -3
  16. package/test/snapshots/texml-tests/amsfonts.xml +2 -4
  17. package/test/snapshots/texml-tests/amsthm.html +1 -3
  18. package/test/snapshots/texml-tests/amsthm.xml +1 -3
  19. package/test/snapshots/texml-tests/article.html +58 -0
  20. package/test/snapshots/texml-tests/article.xml +30 -0
  21. package/test/snapshots/texml-tests/autoref.html +3 -7
  22. package/test/snapshots/texml-tests/autoref.xml +4 -8
  23. package/test/snapshots/texml-tests/begincsname.html +2 -6
  24. package/test/snapshots/texml-tests/begincsname.xml +2 -6
  25. package/test/snapshots/texml-tests/book-app.html +0 -1
  26. package/test/snapshots/texml-tests/book-app.xml +1 -4
  27. package/test/snapshots/texml-tests/book.html +31 -0
  28. package/test/snapshots/texml-tests/book.xml +81 -0
  29. package/test/snapshots/texml-tests/booktabs.xml +1 -1
  30. package/test/snapshots/texml-tests/cases.html +4 -8
  31. package/test/snapshots/texml-tests/cases.xml +4 -8
  32. package/test/snapshots/texml-tests/ccicons.html +65 -0
  33. package/test/snapshots/texml-tests/ccicons.xml +43 -0
  34. package/test/snapshots/texml-tests/cite.html +1 -3
  35. package/test/snapshots/texml-tests/cite.xml +1 -3
  36. package/test/snapshots/texml-tests/citesort.html +7 -21
  37. package/test/snapshots/texml-tests/citesort.xml +7 -21
  38. package/test/snapshots/texml-tests/cleveref.html +38 -7
  39. package/test/snapshots/texml-tests/cleveref.xml +38 -7
  40. package/test/snapshots/texml-tests/csstring.html +2 -6
  41. package/test/snapshots/texml-tests/csstring.xml +2 -6
  42. package/test/snapshots/texml-tests/detokenize.html +6 -18
  43. package/test/snapshots/texml-tests/detokenize.xml +6 -18
  44. package/test/snapshots/texml-tests/drm.xml +6 -2
  45. package/test/snapshots/texml-tests/edef.html +2 -6
  46. package/test/snapshots/texml-tests/edef.xml +2 -6
  47. package/test/snapshots/texml-tests/empheq.html +2 -4
  48. package/test/snapshots/texml-tests/empheq.xml +2 -4
  49. package/test/snapshots/texml-tests/enclose.html +8 -24
  50. package/test/snapshots/texml-tests/enclose.xml +16 -32
  51. package/test/snapshots/texml-tests/expanded.html +2 -6
  52. package/test/snapshots/texml-tests/expanded.xml +2 -6
  53. package/test/snapshots/texml-tests/footnote.xml +1 -1
  54. package/test/snapshots/texml-tests/frac.html +2 -6
  55. package/test/snapshots/texml-tests/frac.xml +4 -8
  56. package/test/snapshots/texml-tests/graphics.html +7 -5
  57. package/test/snapshots/texml-tests/graphics.xml +7 -5
  58. package/test/snapshots/texml-tests/graphicx.html +14 -0
  59. package/test/snapshots/texml-tests/graphicx.xml +18 -0
  60. package/test/snapshots/texml-tests/gsm_l.html +26 -19
  61. package/test/snapshots/texml-tests/gsm_l.xml +80 -51
  62. package/test/snapshots/texml-tests/hbox.html +3 -7
  63. package/test/snapshots/texml-tests/hbox.xml +4 -8
  64. package/test/snapshots/texml-tests/hhline2.html +9 -0
  65. package/test/snapshots/texml-tests/hhline2.xml +11 -0
  66. package/test/snapshots/texml-tests/href.html +1 -3
  67. package/test/snapshots/texml-tests/href.xml +1 -3
  68. package/test/snapshots/texml-tests/hyperams.html +4 -6
  69. package/test/snapshots/texml-tests/hyperams.xml +1 -3
  70. package/test/snapshots/texml-tests/immediateassigned.html +2 -6
  71. package/test/snapshots/texml-tests/immediateassigned.xml +2 -6
  72. package/test/snapshots/texml-tests/immediateassignment.html +2 -6
  73. package/test/snapshots/texml-tests/immediateassignment.xml +2 -6
  74. package/test/snapshots/texml-tests/ltxthm.html +2 -2
  75. package/test/snapshots/texml-tests/ltxthm.xml +3 -3
  76. package/test/snapshots/texml-tests/maketitle.html +12 -6
  77. package/test/snapshots/texml-tests/maketitle.xml +9 -11
  78. package/test/snapshots/texml-tests/math.html +7 -21
  79. package/test/snapshots/texml-tests/math.xml +12 -26
  80. package/test/snapshots/texml-tests/meaning.html +2 -6
  81. package/test/snapshots/texml-tests/meaning.xml +2 -6
  82. package/test/snapshots/texml-tests/multline.html +8 -16
  83. package/test/snapshots/texml-tests/multline.xml +8 -16
  84. package/test/snapshots/texml-tests/noexpand.html +2 -6
  85. package/test/snapshots/texml-tests/noexpand.xml +2 -6
  86. package/test/snapshots/texml-tests/protected.html +3 -9
  87. package/test/snapshots/texml-tests/protected.xml +3 -9
  88. package/test/snapshots/texml-tests/ref.html +20 -0
  89. package/test/snapshots/texml-tests/ref.xml +23 -0
  90. package/test/snapshots/texml-tests/refrange.html +12 -24
  91. package/test/snapshots/texml-tests/refrange.xml +12 -24
  92. package/test/snapshots/texml-tests/showonlyrefs.html +14 -28
  93. package/test/snapshots/texml-tests/showonlyrefs.xml +14 -28
  94. package/test/snapshots/texml-tests/smash.html +1 -3
  95. package/test/snapshots/texml-tests/smash.xml +2 -4
  96. package/test/snapshots/texml-tests/string.html +2 -6
  97. package/test/snapshots/texml-tests/string.xml +2 -6
  98. package/test/snapshots/texml-tests/tableofcontents.html +1 -1
  99. package/test/snapshots/texml-tests/tableofcontents.xml +2 -2
  100. package/test/snapshots/texml-tests/tag.html +4 -8
  101. package/test/snapshots/texml-tests/tag.xml +4 -8
  102. package/test/snapshots/texml-tests/thm-restate.html +2 -4
  103. package/test/snapshots/texml-tests/thm-restate.xml +2 -4
  104. package/test/snapshots/texml-tests/unexpanded.html +2 -6
  105. package/test/snapshots/texml-tests/unexpanded.xml +2 -6
  106. package/test/snapshots/texml-tests/uri.html +3 -7
  107. package/test/snapshots/texml-tests/uri.xml +3 -7
  108. package/test/snapshots/texml-tests/url.html +4 -4
  109. package/test/snapshots/texml-tests/verb.html +42 -0
  110. package/test/snapshots/texml-tests/verb.xml +20 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [18.7.0](https://github.com/AmerMathSoc/texml-to-html/compare/v18.6.0...v18.7.0) (2025-07-02)
6
+
7
+
8
+ ### Features
9
+
10
+ * **toc-entry.js:** preserve style attribute ([1e500e9](https://github.com/AmerMathSoc/texml-to-html/commit/1e500e9d3a1a6ad87878c69759fe0449ba8b033b)), closes [#484](https://github.com/AmerMathSoc/texml-to-html/issues/484)
11
+
12
+ ## [18.6.0](https://github.com/AmerMathSoc/texml-to-html/compare/v18.5.0...v18.6.0) (2025-06-12)
13
+
14
+
15
+ ### Features
16
+
17
+ * **graphic.js:** adjust to new alt-text placement ([1468543](https://github.com/AmerMathSoc/texml-to-html/commit/146854336e3ef3cc6a34a6b70cfb522bd6ceceb2)), closes [#477](https://github.com/AmerMathSoc/texml-to-html/issues/477)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **package:** upgrade linkedom@0.18.10 ([06d48ac](https://github.com/AmerMathSoc/texml-to-html/commit/06d48ac562b9627c3b6b2e55647526ca2af58937))
23
+
5
24
  ## [18.5.0](https://github.com/AmerMathSoc/texml-to-html/compare/v18.4.0...v18.5.0) (2025-05-19)
6
25
 
7
26
 
package/README.md CHANGED
@@ -133,7 +133,7 @@ Beyond HTML element and attributes, texml-to-html stores data in custom `data-*`
133
133
  - underline
134
134
  - {disp-quote@specific-use}
135
135
  - (inline-)graphic{@specific-use}
136
- - {@style} [expected: theorem styles, sec styles]
136
+ - {@style} [expected: theorem styles, sec styles, toc-entry]
137
137
  - boxed (from boxed-text)
138
138
  - data-ams-ref
139
139
  - {@ref-type} [expected: bibr, fn, disp-formula, sec, fig, table, algorithm, list, statement]
@@ -248,6 +248,7 @@ The following provide a list from the reverse point of view.
248
248
  - @notes-type => @data-ams-content-type (and role=dedication for dedications)
249
249
  - use cases: dedication (articles), article and section notes (NOTI only), drm notice & epub note (books)
250
250
  - toc-entry@specific-use => data-ams-ref
251
+ - toc-entry@style => data-ams-style
251
252
  - attrib => data-ams-doc="attribution"
252
253
  - attributes
253
254
  - @disp-level => data-ams-doc-level [data-ams-doc-level is also added to some elements that lack disp-level]
@@ -26,6 +26,7 @@ export default function (htmlParentNode, xmlnode) {
26
26
  href: `#${xmlnode.querySelector('nav-pointer').getAttribute('rid')}`,
27
27
  "data-ams-ref": xmlnode.getAttribute('specific-use') // NOTE: specific-use contains `ref@ref-type`-like information (e.g., 'chapter', 'section')
28
28
  });
29
+ if (xmlnode.hasAttribute('style')) anchor.setAttribute('data-ams-style', xmlnode.getAttribute('style'));
29
30
  li.appendChild(anchor);
30
31
  // NOTE: label/title handling must stay aligned with other cases
31
32
  const label = xmlnode.querySelector(':scope>label');
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@amermathsoc/texml-to-html",
3
- "version": "18.5.0",
3
+ "version": "18.7.0",
4
4
  "type": "module",
5
5
  "description": "A NodeJS library for converting AMS-style JATS XML to HTML",
6
6
  "scripts": {
7
7
  "coverage": "c8 npm run test && c8 report --reporter html",
8
8
  "release": "commit-and-tag-version",
9
- "texmlTests": "rm ./test/snapshots/texml-tests/* && cp ../texml/tests/*.xml ./test/snapshots/texml-tests/.",
9
+ "texmlTests": "rm ./test/snapshots/texml-tests/* && find ../texml/tests/ -name *.xml -exec cp {} ./test/snapshots/texml-tests/. \\;",
10
10
  "pretest": "node ./test/snapshots/updateTexmlSnapshots.js",
11
11
  "test": "tape test/*.js"
12
12
  },
@@ -31,11 +31,11 @@
31
31
  },
32
32
  "homepage": "https://github.com/AmerMathSoc/texml-to-html#readme",
33
33
  "devDependencies": {
34
- "c8": "8.0.1",
35
- "commit-and-tag-version": "12.4.1",
36
- "tape": "5.7.2"
34
+ "c8": "10.1.3",
35
+ "commit-and-tag-version": "12.5.1",
36
+ "tape": "5.9.0"
37
37
  },
38
38
  "dependencies": {
39
- "linkedom": "0.16.4"
39
+ "linkedom": "0.18.10"
40
40
  }
41
41
  }
package/test/book.xml CHANGED
@@ -91,7 +91,7 @@
91
91
  <title-group>
92
92
  <title>Contents</title>
93
93
  </title-group>
94
- <toc-entry specific-use="chapter">
94
+ <toc-entry specific-use="chapter" style="custom">
95
95
  <title>Chunk</title>
96
96
  <nav-pointer rid="tocid1"/>
97
97
  </toc-entry>
@@ -24,7 +24,7 @@ const jsonSnapshot = require('./book-meta-snapshot.json');
24
24
  const jsonSnapshot2 = require('./book--metadata-meta-snapshot.json');
25
25
 
26
26
  tape('Template: book-meta', async function (t) {
27
- t.plan(7);
27
+ t.plan(8);
28
28
 
29
29
  const document = book;
30
30
  const titlepage = document.querySelector('section[data-ams-doc="titlepage"]');
@@ -46,4 +46,5 @@ tape('Template: book-meta', async function (t) {
46
46
  t.ok(abstractWrapper.querySelector(':scope > [role="doc-abstract"]'), 'wrapper for abstract contains abstract');
47
47
  t.ok(abstractWrapper.querySelector(':scope > [data-ams-doc="keywords"]'), 'wrapper for abstract contains keywords');
48
48
  t.ok(abstractWrapper.querySelector(':scope > [data-ams-doc="MSC 2020"]'), 'wrapper for abstract contains MSCs');
49
+ t.ok(abstractWrapper.querySelector(':scope > [data-ams-doc="funding-group"]'), 'wrapper for abstract contains funding statement');
49
50
  });
@@ -18,7 +18,7 @@ import { book } from './helper.js';
18
18
  import tape from 'tape';
19
19
 
20
20
  tape('Template: (book) toc, toc-entry', async function (t) {
21
- t.plan(14);
21
+ t.plan(16);
22
22
  const document = book;
23
23
 
24
24
  const toc = document.querySelector('nav[role="doc-toc"]#toc');
@@ -28,10 +28,21 @@ tape('Template: (book) toc, toc-entry', async function (t) {
28
28
  const list = toc.querySelector('ol');
29
29
  t.ok(list, 'toc: ordered list');
30
30
  t.equal(list.children.length, 6, 'Nested toc-entries remain nested')
31
+ const toc1 = list.querySelector('li a[href="#tocid1"]');
31
32
  t.equal(
32
- list.querySelector('li a[href="#tocid1"][data-ams-ref="chapter"]').innerHTML,
33
+ toc1.innerHTML,
33
34
  '<span data-ams-doc="title">Chunk</span>',
34
- 'toc-entry and nav-pointer with href and data-ams-ref'
35
+ 'toc-entry and nav-pointer creates link'
36
+ );
37
+ t.equal(
38
+ toc1.getAttribute('data-ams-ref'),
39
+ 'chapter',
40
+ 'toc-entry and nav-pointer creates link with data-ams-ref'
41
+ );
42
+ t.equal(
43
+ toc1.getAttribute('data-ams-style'),
44
+ 'custom',
45
+ 'toc-entry and nav-pointer creates link with data-ams-style'
35
46
  );
36
47
  t.equal(
37
48
  list.querySelector('li a[href="#tocid2"]').innerHTML,
@@ -2,7 +2,7 @@
2
2
 
3
3
  <section data-ams-doc="titlepage"><script type="application/json">{"book":{"identifiers":{"AMS":{"publKey":"series","volumeId":"volume","volumeNr":"volume"},"crossref":{"doi":"doi"},"issn":{"print":"issn print"},"isbn":{"electronic":"isbn pdf","google":"isbn google pdf","print":"isbn print","epub":"isbn epub"},"loc":{"lccn":"0123456789"},"basename":"seriesvolume"},"title":"title","subtitle":"subtitle","alttitle":"title"},"publishers":[{"name":"name1","location":"loc"},{"name":"name2"}],"contributors":{"authors":[{"name":"Given Sur Jr.","bio":"","affiliations":["aff"],"emails":["email"],"mrauth":"mrauthid","orcid":"orcidid","uri":"uri","byline":"comment"}],"contrib-group-type2":[{"name":"Given Sur","bio":"","affiliations":[],"emails":[]}],"contrib-group-type3":[{"name":"String Name","bio":"","affiliations":[],"emails":[],"byline":"comment"}]},"permissions":{"copyrightStatement":"Copyright 2020 American Mathematical Society"},"history":{"published":"2025-04-25"},"collection":{"title":"Collection Title","subseries":"subseriesName","contributors":{}}}</script></section>
4
4
 
5
- <nav id="toc" data-ams-doc-level="0" role="doc-toc"><h1><span data-ams-doc="title">Contents</span></h1><ol><li><a data-ams-ref="chapter" href="#tocid1"><span data-ams-doc="title">Chunk</span></a></li><li><a data-ams-ref="null" href="#tocid2"><span data-ams-doc="label">2<ams-x>.</ams-x></span> <span data-ams-doc="title">Chunk</span></a><ol><li><a data-ams-ref="null" href="#tocid3"><span data-ams-doc="label">1</span> <span data-ams-doc="title">SubChunk</span></a><ol><li><a data-ams-ref="null" href="#tocid4"><span data-ams-doc="label">1</span> <span data-ams-doc="title">SubSubChunk with <span data-ams-href="chapter">Link</span></span></a></li></ol></li></ol></li><li><a data-ams-doc-alttitle="Alt title" data-ams-ref="null" href="#tocid5"><span data-ams-doc="title">Chunk with alt title</span></a></li><li><a data-ams-ref="null" href="#tocid6"><span data-ams-doc="title">Chunk without label but subchunk with label</span></a><ol><li><a data-ams-ref="null" href="#tocid7"><span data-ams-doc="label">1</span> <span data-ams-doc="title">SubChunk</span></a></li></ol></li><li><a data-ams-ref="null" href="#tocid8"><span data-ams-doc="title">Chunk with contrib</span></a><br><em>Chapter Author</em></li><li><a data-ams-ref="null" href="#tocid9"><span data-ams-doc="title">Chunk with multiple contribs</span></a><br><em>Chapter Author</em>, <em>A Nother Author</em></li></ol></nav>
5
+ <nav id="toc" data-ams-doc-level="0" role="doc-toc"><h1><span data-ams-doc="title">Contents</span></h1><ol><li><a data-ams-style="custom" data-ams-ref="chapter" href="#tocid1"><span data-ams-doc="title">Chunk</span></a></li><li><a data-ams-ref="null" href="#tocid2"><span data-ams-doc="label">2<ams-x>.</ams-x></span> <span data-ams-doc="title">Chunk</span></a><ol><li><a data-ams-ref="null" href="#tocid3"><span data-ams-doc="label">1</span> <span data-ams-doc="title">SubChunk</span></a><ol><li><a data-ams-ref="null" href="#tocid4"><span data-ams-doc="label">1</span> <span data-ams-doc="title">SubSubChunk with <span data-ams-href="chapter">Link</span></span></a></li></ol></li></ol></li><li><a data-ams-doc-alttitle="Alt title" data-ams-ref="null" href="#tocid5"><span data-ams-doc="title">Chunk with alt title</span></a></li><li><a data-ams-ref="null" href="#tocid6"><span data-ams-doc="title">Chunk without label but subchunk with label</span></a><ol><li><a data-ams-ref="null" href="#tocid7"><span data-ams-doc="label">1</span> <span data-ams-doc="title">SubChunk</span></a></li></ol></li><li><a data-ams-ref="null" href="#tocid8"><span data-ams-doc="title">Chunk with contrib</span></a><br><em>Chapter Author</em></li><li><a data-ams-ref="null" href="#tocid9"><span data-ams-doc="title">Chunk with multiple contribs</span></a><br><em>Chapter Author</em>, <em>A Nother Author</em></li></ol></nav>
6
6
  <section data-ams-doc-level="0" data-ams-content-type="publishers-note" data-ams-doc="notes" data-ams-specific-use="epub-opening-page"><h1><span data-ams-doc="title">Publisher's Notice</span></h1>
7
7
 
8
8
  <p>Some notes.
@@ -55,7 +55,10 @@
55
55
  }</script><h1>Sample article</h1><section role="doc-abstract" data-ams-doc-level="1"><h2><span data-ams-doc="title">Abstract<ams-x>.</ams-x></span></h2>
56
56
 
57
57
  <p>Abstract text goes here.</p>
58
- </section></section>
58
+ </section><div data-ams-doc="funding-group">
59
+ <p>The first author’s research was supported by...</p>
60
+ <p>The second author’s research was supported by...</p>
61
+ </div></section>
59
62
 
60
63
  <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>
61
64
 
@@ -27,6 +27,10 @@
27
27
  <title>Abstract<x>.</x></title>
28
28
  <p>Abstract text goes here.</p>
29
29
  </abstract>
30
+ <funding-group>
31
+ <funding-statement>The first author’s research was supported by...</funding-statement>
32
+ <funding-statement>The second author’s research was supported by...</funding-statement>
33
+ </funding-group>
30
34
  </article-meta>
31
35
  </front>
32
36
  <body id="ltxid2">
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html> <html dir="ltr" lang="en"><head><meta charset="utf-8"><meta content="width=device-width, initial-scale=1" name="viewport"><title>AMS Publication</title></head><body>
2
+ <section data-ams-doc="titlepage"><script type="application/json">{"book":{"identifiers":{"AMS":{},"crossref":{},"issn":{},"isbn":{},"loc":{},"basename":null},"title":""},"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>
3
+
4
+
5
+
6
+
7
+ <section 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>
8
+ <section data-ams-byline="Jane Doe and John Bull" data-ams-contributors="{&quot;authors&quot;:[{&quot;name&quot;:&quot;Jane Doe&quot;,&quot;bio&quot;:&quot;&quot;,&quot;affiliations&quot;:[],&quot;emails&quot;:[&quot;jane.doe@nowhere&quot;],&quot;mrauth&quot;:&quot;MR author id&quot;,&quot;orcid&quot;:&quot;ORCID id&quot;,&quot;uri&quot;:&quot;https://www.ams.org/&quot;},{&quot;name&quot;:&quot;John Bull&quot;,&quot;bio&quot;:&quot;&quot;,&quot;affiliations&quot;:[],&quot;emails&quot;:[&quot;john.bull@nowhere&quot;],&quot;uri&quot;:&quot;https://www.ams.org/&quot;}]}" data-ams-doc="sec-meta">
9
+
10
+ <section role="doc-abstract" data-ams-doc-level="1"><h2><span data-ams-doc="title">Abstract<ams-x>.</ams-x></span></h2>
11
+
12
+ <p>Abstract text goes here.</p>
13
+ </section>
14
+ </section>
15
+
16
+
17
+ <p>Here is some text.</p>
18
+ </section>
19
+
20
+
21
+
22
+ </body></html>
@@ -0,0 +1,61 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE book PUBLIC "-//NLM//DTD BITS Book Interchange DTD v2.1 20180401//EN" "BITS-book2.dtd">
3
+ <book xmlns:xlink="http://www.w3.org/1999/xlink">
4
+ <book-meta>
5
+ <book-title-group>
6
+ <article-title>Sample book</article-title>
7
+ </book-title-group>
8
+ <contrib-group content-type="authors">
9
+ <contrib contrib-type="author">
10
+ <string-name>Jane Doe</string-name>
11
+ <contrib-id contrib-id-type="orcid">ORCID id</contrib-id>
12
+ <contrib-id contrib-id-type="mrauth">MR author id</contrib-id>
13
+ <aff>First author’s address</aff>
14
+ <aff specific-use="current">First author’s current address</aff>
15
+ <email>jane.doe@nowhere</email>
16
+ <uri>https://www.ams.org/</uri>
17
+ </contrib>
18
+ <contrib contrib-type="author">
19
+ <string-name>John Bull</string-name>
20
+ <aff>Second author’s address</aff>
21
+ <email>john.bull@nowhere</email>
22
+ <uri>https://www.ams.org/</uri>
23
+ </contrib>
24
+ </contrib-group>
25
+ </book-meta>
26
+ <front-matter id="ltxid1"/>
27
+ <book-body id="ltxid2">
28
+ <book-part>
29
+ <body>
30
+ <sec disp-level="1" id="ltxid3" specific-use="section">
31
+ <sec-meta>
32
+ <contrib-group content-type="authors">
33
+ <contrib contrib-type="author">
34
+ <string-name>Jane Doe</string-name>
35
+ <contrib-id contrib-id-type="orcid">ORCID id</contrib-id>
36
+ <contrib-id contrib-id-type="mrauth">MR author id</contrib-id>
37
+ <aff>First author’s address</aff>
38
+ <aff specific-use="current">First author’s current address</aff>
39
+ <email>jane.doe@nowhere</email>
40
+ <uri>https://www.ams.org/</uri>
41
+ </contrib>
42
+ <contrib contrib-type="author">
43
+ <string-name>John Bull</string-name>
44
+ <aff>Second author’s address</aff>
45
+ <email>john.bull@nowhere</email>
46
+ <uri>https://www.ams.org/</uri>
47
+ </contrib>
48
+ </contrib-group>
49
+ <abstract>
50
+ <title>Abstract<x>.</x></title>
51
+ <p>Abstract text goes here.</p>
52
+ </abstract>
53
+ </sec-meta>
54
+ <label>1<x>.</x></label>
55
+ <title>Introduction</title>
56
+ <p>Here is some text.</p>
57
+ </sec>
58
+ </body>
59
+ </book-part>
60
+ </book-body>
61
+ </book>
@@ -41,12 +41,8 @@
41
41
  <p>Dz: Ѕ</p>
42
42
  <p>dzh: џ</p>
43
43
  <p>Dzh: Џ</p>
44
- <p>
45
- <span data-ams-doc="math inline"><tex-math>\mathrm{Ш}</tex-math></span>
46
- </p>
47
- <p>
48
- <span data-ams-doc="math inline"><tex-math>Л = \mathrm{Ш}+ 1</tex-math></span>
49
- </p>
44
+ <p><span data-ams-doc="math inline"><tex-math>\mathrm{Ш}</tex-math></span></p>
45
+ <p><span data-ams-doc="math inline"><tex-math>Л = \mathrm{Ш}+ 1</tex-math></span></p>
50
46
  <p>Л</p>
51
47
  </section>
52
48
 
@@ -19,16 +19,12 @@
19
19
  <p>Dz: Ѕ</p>
20
20
  <p>dzh: џ</p>
21
21
  <p>Dzh: Џ</p>
22
- <p>
23
- <inline-formula content-type="math/tex">
22
+ <p><inline-formula content-type="math/tex">
24
23
  <tex-math>\mathrm{Ш}</tex-math>
25
- </inline-formula>
26
- </p>
27
- <p>
28
- <inline-formula content-type="math/tex">
24
+ </inline-formula></p>
25
+ <p><inline-formula content-type="math/tex">
29
26
  <tex-math>Л = \mathrm{Ш}+ 1</tex-math>
30
- </inline-formula>
31
- </p>
27
+ </inline-formula></p>
32
28
  <p>Л</p>
33
29
  </sec>
34
30
  </body>
@@ -33,9 +33,7 @@
33
33
 
34
34
  <section id="ltxid3" data-ams-doc="section" data-ams-doc-level="1">
35
35
  <p>hello, world</p>
36
- <p>
37
- <span data-ams-doc="math inline"><tex-math>\rightsquigarrow </tex-math></span>
38
- </p>
36
+ <p><span data-ams-doc="math inline"><tex-math>\rightsquigarrow </tex-math></span></p>
39
37
  </section>
40
38
 
41
39
  </section></body></html>
@@ -11,11 +11,9 @@
11
11
  <body id="ltxid2">
12
12
  <sec disp-level="1" id="ltxid3" specific-use="section">
13
13
  <p>hello, world</p>
14
- <p>
15
- <inline-formula content-type="math/tex">
14
+ <p><inline-formula content-type="math/tex">
16
15
  <tex-math>\rightsquigarrow </tex-math>
17
- </inline-formula>
18
- </p>
16
+ </inline-formula></p>
19
17
  </sec>
20
18
  </body>
21
19
  </article>
@@ -44,9 +44,7 @@
44
44
  <p>Theorem text.</p>
45
45
  <p>Emphasized <em>theorem</em> text.</p>
46
46
  </figure>
47
- <p>
48
- <i>After theorem.</i>
49
- </p>
47
+ <p><i>After theorem.</i></p>
50
48
  <figure data-ams-style="thmplain" data-ams-content-type="theorem theorem" id="ltxid6" data-ams-doc="statement"><figcaption><span data-ams-doc="label">Theorem 1.2</span> <span data-ams-doc="title"><ams-x>(</ams-x>Note<ams-x>)</ams-x><ams-x>.</ams-x></span></figcaption>
51
49
 
52
50
 
@@ -22,9 +22,7 @@
22
22
  <p>Theorem text.</p>
23
23
  <p>Emphasized <italic toggle="yes">theorem</italic> text.</p>
24
24
  </statement>
25
- <p>
26
- <italic>After theorem.</italic>
27
- </p>
25
+ <p><italic>After theorem.</italic></p>
28
26
  <statement content-type="theorem theorem" id="ltxid6" style="thmplain">
29
27
  <label>Theorem 1.2</label>
30
28
  <title><x>(</x>Note<x>)</x><x>.</x></title>
@@ -0,0 +1,58 @@
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 article</title></head><body><section data-ams-doc="article">
2
+ <section data-ams-doc="frontmatter"><script type="application/json">{
3
+ "title": "Sample article",
4
+ "alttitle": "Sample article",
5
+ "identifiers": {
6
+ "AMS": {},
7
+ "crossref": {},
8
+ "uri": {},
9
+ "basename": null
10
+ },
11
+ "relatedArticles": {},
12
+ "publishers": [],
13
+ "contributors": {
14
+ "authors": [
15
+ {
16
+ "name": "Jane Doe",
17
+ "bio": "",
18
+ "affiliations": [],
19
+ "emails": []
20
+ },
21
+ {
22
+ "name": "John Bull",
23
+ "bio": "",
24
+ "affiliations": [],
25
+ "emails": []
26
+ }
27
+ ]
28
+ },
29
+ "permissions": {},
30
+ "journal": {
31
+ "identifiers": {
32
+ "AMS": {},
33
+ "issn": {
34
+ "print": "",
35
+ "electronic": ""
36
+ }
37
+ }
38
+ },
39
+ "customMeta": {},
40
+ "categories": {},
41
+ "byline": "Jane Doe and John Bull",
42
+ "volumeInfo": {},
43
+ "history": {
44
+ "rev-recd": []
45
+ },
46
+ "keywords": []
47
+ }</script><h1>Sample article</h1><div data-ams-doc="funding-group">
48
+ <p>A</p>
49
+ <p>B</p>
50
+ </div></section>
51
+
52
+ <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>
53
+
54
+
55
+ <p>Here is some text.</p>
56
+ </section>
57
+
58
+ </section></body></html>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE article PUBLIC "-//AMS TEXML//DTD MODIFIED JATS (Z39.96) Journal Archiving and Interchange DTD with MathML3 v1.3d2 20201130//EN" "texml-jats-1-3d2.dtd">
3
+ <article xmlns:xlink="http://www.w3.org/1999/xlink">
4
+ <front id="ltxid1">
5
+ <article-meta>
6
+ <title-group>
7
+ <article-title>Sample article</article-title>
8
+ </title-group>
9
+ <contrib-group content-type="authors">
10
+ <contrib contrib-type="author">
11
+ <string-name>Jane Doe</string-name>
12
+ </contrib>
13
+ <contrib contrib-type="author">
14
+ <string-name>John Bull</string-name>
15
+ </contrib>
16
+ </contrib-group>
17
+ <funding-group>
18
+ <funding-statement>A</funding-statement>
19
+ <funding-statement>B</funding-statement>
20
+ </funding-group>
21
+ </article-meta>
22
+ </front>
23
+ <body id="ltxid2">
24
+ <sec disp-level="1" id="ltxid3" specific-use="section">
25
+ <label>1<x>.</x></label>
26
+ <title>Introduction</title>
27
+ <p>Here is some text.</p>
28
+ </sec>
29
+ </body>
30
+ </article>
@@ -13,9 +13,7 @@
13
13
  <section role="doc-chapter" id="ltxid1" data-ams-doc="chapter" data-ams-doc-level="0"><h1><span data-ams-doc="label">Chapter 1</span> <span data-ams-doc="title">Chapter heading</span></h1>
14
14
 
15
15
 
16
- <p>
17
- <span data-ams-style="monospace">macro:-&gt;{1}{ltxid1}{sec}{chapter}</span>
18
- </p>
16
+ <p><span data-ams-style="monospace">macro:-&gt;{1}{ltxid1}{sec}{chapter}</span></p>
19
17
  <p>Chapter text.</p>
20
18
  <section id="ltxid2" 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">A section</span></h2>
21
19
 
@@ -33,12 +31,10 @@
33
31
 
34
32
 
35
33
  <p>Subsection text.</p>
36
- <p>
37
- <span data-ams-doc="math block"><span hidden data-ams-doc="tags"><span>1</span></span>
34
+ <p><span data-ams-doc="math block"><span hidden data-ams-doc="tags"><span>1</span></span>
38
35
  <tex-math data-ams-tags="[&quot;1&quot;]">\begin{equation}
39
36
  a^2 + b^2 = c^3 \cssId{texmlid1}{\tag{1}}
40
- \end{equation}</tex-math></span>
41
- </p>
37
+ \end{equation}</tex-math></span></p>
42
38
  <section id="ltxid6" data-ams-doc="subsubsection" data-ams-doc-level="3"><h4><span data-ams-doc="label">1.1.1<ams-x>.</ams-x></span> <span data-ams-doc="title">A subsubsection<ams-x>.</ams-x></span></h4>
43
39
 
44
40
 
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE book PUBLIC "-//NLM//DTD BITS Book Interchange DTD v1.0 20131225//EN" "BITS-book1.dtd">
2
+ <!DOCTYPE book PUBLIC "-//NLM//DTD BITS Book Interchange DTD v2.1 20180401//EN" "BITS-book2.dtd">
3
3
  <book xmlns:xlink="http://www.w3.org/1999/xlink">
4
4
  <p>hello, world</p>
5
5
  <p>appendix: See <xref-group><xref ref-subtype="appendix" ref-type="sec" rid="ltxid12" specific-use="autoref">Appendix A</xref></xref-group>.</p>
@@ -15,9 +15,7 @@
15
15
  <sec disp-level="1" id="ltxid1" specific-use="chapter">
16
16
  <label>Chapter 1</label>
17
17
  <title>Chapter heading</title>
18
- <p>
19
- <monospace>macro:-&gt;{1}{ltxid1}{sec}{chapter}</monospace>
20
- </p>
18
+ <p><monospace>macro:-&gt;{1}{ltxid1}{sec}{chapter}</monospace></p>
21
19
  <p>Chapter text.</p>
22
20
  <sec disp-level="2" id="ltxid2" specific-use="section">
23
21
  <label>1<x>.</x></label>
@@ -35,13 +33,11 @@
35
33
  <label>1.1<x>.</x></label>
36
34
  <title>A subsection<x>.</x></title>
37
35
  <p>Subsection text.</p>
38
- <p>
39
- <disp-formula content-type="math/tex">
36
+ <p><disp-formula content-type="math/tex">
40
37
  <tex-math>\begin{equation}
41
38
  a^2 + b^2 = c^3 <target id="texmlid1"><tag parens="yes">1</tag></target>
42
39
  \end{equation}</tex-math>
43
- </disp-formula>
44
- </p>
40
+ </disp-formula></p>
45
41
  <sec disp-level="4" id="ltxid6" specific-use="subsubsection">
46
42
  <label>1.1.1<x>.</x></label>
47
43
  <title>A subsubsection<x>.</x></title>
@@ -33,13 +33,9 @@
33
33
 
34
34
  <section id="ltxid3" data-ams-doc="section" data-ams-doc-level="1">
35
35
  <p>hello, world</p>
36
- <p>
37
- <span data-ams-style="monospace">macro:-&gt;\XXX </span>
38
- </p>
36
+ <p><span data-ams-style="monospace">macro:-&gt;\XXX </span></p>
39
37
  <p>XXX is defined</p>
40
- <p>
41
- <span data-ams-style="monospace">macro:-&gt;</span>
42
- </p>
38
+ <p><span data-ams-style="monospace">macro:-&gt;</span></p>
43
39
  <p>YYY is undefined</p>
44
40
  </section>
45
41
 
@@ -11,13 +11,9 @@
11
11
  <body id="ltxid2">
12
12
  <sec disp-level="1" id="ltxid3" specific-use="section">
13
13
  <p>hello, world</p>
14
- <p>
15
- <monospace>macro:-&gt;\XXX </monospace>
16
- </p>
14
+ <p><monospace>macro:-&gt;\XXX </monospace></p>
17
15
  <p>XXX is defined</p>
18
- <p>
19
- <monospace>macro:-&gt;</monospace>
20
- </p>
16
+ <p><monospace>macro:-&gt;</monospace></p>
21
17
  <p>YYY is undefined</p>
22
18
  </sec>
23
19
  </body>
@@ -1,5 +1,4 @@
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>AMS Publication</title></head><body>
2
- <section data-ams-doc="titlepage"><script type="application/json">{"book":{"identifiers":{"AMS":{},"crossref":{},"issn":{},"isbn":{},"loc":{},"basename":null},"title":""},"publishers":[],"contributors":{},"permissions":{},"history":{}}</script></section>
3
2
  <section role="doc-chapter" id="ltxid1" data-ams-doc="chapter" data-ams-doc-level="0"><h1><span data-ams-doc="label">Chapter 1</span> <span data-ams-doc="title">Chapter heading</span></h1>
4
3
 
5
4
 
@@ -1,9 +1,6 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE book PUBLIC "-//NLM//DTD BITS Book Interchange DTD v1.0 20131225//EN" "BITS-book1.dtd">
2
+ <!DOCTYPE book PUBLIC "-//NLM//DTD BITS Book Interchange DTD v2.1 20180401//EN" "BITS-book2.dtd">
3
3
  <book xmlns:xlink="http://www.w3.org/1999/xlink">
4
- <book-meta>
5
- <book-id book-id-type="publisher">gsm</book-id>
6
- </book-meta>
7
4
  <sec disp-level="1" id="ltxid1" specific-use="chapter">
8
5
  <label>Chapter 1</label>
9
6
  <title>Chapter heading</title>
@@ -0,0 +1,31 @@
1
+ <!DOCTYPE html> <html dir="ltr" lang="en"><head><meta charset="utf-8"><meta content="width=device-width, initial-scale=1" name="viewport"><title>AMS Publication</title></head><body>
2
+ <section data-ams-doc="titlepage"><script type="application/json">{"book":{"identifiers":{"AMS":{},"crossref":{},"issn":{},"isbn":{},"loc":{},"basename":null},"title":""},"publishers":[],"contributors":{"authors":[{"name":"Jane Doe","bio":"","affiliations":[],"emails":[]},{"name":"John Bull","bio":"","affiliations":[],"emails":[]}]},"permissions":{},"history":{}}</script></section>
3
+
4
+ <nav id="ltxid2" data-ams-doc-level="0" role="doc-toc"><h1><span data-ams-doc="title">Contents</span></h1><ol><li><a data-ams-ref="chapter" href="#ltxid3"><span data-ams-doc="title">Preface</span></a></li><li><a data-ams-ref="chapter" href="#ltxid5"><span data-ams-doc="label">Chapter 1<ams-x>.</ams-x></span> <span data-ams-doc="title">Main matter</span></a></li><li><a data-ams-ref="null" href="#ltxid8"><span data-ams-doc="title">Bibliography</span></a></li></ol></nav>
5
+ <section id="ltxid3" data-ams-doc-level="0" role="doc-preface">
6
+
7
+ <h1><span data-ams-doc="title">Preface</span></h1>
8
+
9
+
10
+ <section data-ams-byline="Jane Doe and John Bull" data-ams-contributors="{&quot;authors&quot;:[{&quot;name&quot;:&quot;Jane Doe&quot;,&quot;bio&quot;:&quot;&quot;,&quot;affiliations&quot;:[],&quot;emails&quot;:[]},{&quot;name&quot;:&quot;John Bull&quot;,&quot;bio&quot;:&quot;&quot;,&quot;affiliations&quot;:[],&quot;emails&quot;:[]}]}" data-ams-doc="sec-meta">
11
+
12
+ </section>
13
+ <p>Here is the preface.</p>
14
+
15
+ </section>
16
+
17
+
18
+
19
+
20
+ <section role="doc-chapter" id="ltxid5" data-ams-doc="chapter" data-ams-doc-level="0"><h1><span data-ams-doc="label">Chapter 1</span> <span data-ams-doc="title">Main matter</span></h1>
21
+
22
+
23
+ <p>Here is the body of the book.</p>
24
+ </section>
25
+
26
+
27
+
28
+
29
+ <section role="doc-bibliography" data-ams-content-type="thebibliography" id="ltxid8" data-ams-doc-level="0"><h1><span data-ams-doc="title">Bibliography</span></h1><dl><dt id="bibr-GrahamKP1994"><ams-x>[</ams-x>1<ams-x>]</ams-x></dt><dd><div data-ams-doc="biblioentry">Graham, Ronald&#160;L., Donald&#160;E. Knuth, and Oren Patashnik, 1994. <em>Concrete Mathematics: A Foundation for Computer Science</em>, second edition. Reprint: Addison-Wesley, Reading, Massachusetts, 1995. This printing incorporates the final corrections made in 1995. 0-201-55802-5.</div></dd></dl></section>
30
+
31
+ </body></html>