paperlint 18.0.0 → 18.2.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 (130) hide show
  1. package/README.md +3 -3
  2. package/dist/adapters/hotcrp/index.d.ts +11 -1
  3. package/dist/adapters/hotcrp/index.d.ts.map +1 -1
  4. package/dist/adapters/hotcrp/index.js +11 -1
  5. package/dist/adapters/hotcrp/index.js.map +1 -1
  6. package/dist/adapters/hotcrp/site.d.ts.map +1 -1
  7. package/dist/adapters/hotcrp/site.js +3 -1
  8. package/dist/adapters/hotcrp/site.js.map +1 -1
  9. package/dist/adapters/hotcrp/token.d.ts +11 -0
  10. package/dist/adapters/hotcrp/token.d.ts.map +1 -1
  11. package/dist/adapters/hotcrp/token.js +34 -7
  12. package/dist/adapters/hotcrp/token.js.map +1 -1
  13. package/dist/adapters/latex/document-class.d.ts +28 -5
  14. package/dist/adapters/latex/document-class.d.ts.map +1 -1
  15. package/dist/adapters/latex/document-class.js +208 -21
  16. package/dist/adapters/latex/document-class.js.map +1 -1
  17. package/dist/adapters/latex/index.d.ts +4 -4
  18. package/dist/adapters/latex/index.d.ts.map +1 -1
  19. package/dist/adapters/latex/index.js +5 -2
  20. package/dist/adapters/latex/index.js.map +1 -1
  21. package/dist/adapters/latex/parse.d.ts.map +1 -1
  22. package/dist/adapters/latex/parse.js +5 -0
  23. package/dist/adapters/latex/parse.js.map +1 -1
  24. package/dist/cli.d.ts.map +1 -1
  25. package/dist/cli.js +4 -3
  26. package/dist/cli.js.map +1 -1
  27. package/dist/domain/body-pages.d.ts.map +1 -1
  28. package/dist/domain/body-pages.js +4 -2
  29. package/dist/domain/body-pages.js.map +1 -1
  30. package/dist/domain/portal-token.d.ts +26 -10
  31. package/dist/domain/portal-token.d.ts.map +1 -1
  32. package/dist/domain/portal-token.js +19 -12
  33. package/dist/domain/portal-token.js.map +1 -1
  34. package/dist/domain/tex-document.d.ts +52 -4
  35. package/dist/domain/tex-document.d.ts.map +1 -1
  36. package/dist/domain/tex-document.js +9 -0
  37. package/dist/domain/tex-document.js.map +1 -1
  38. package/dist/eslint-rules/latex-language.d.ts +10 -0
  39. package/dist/eslint-rules/latex-language.d.ts.map +1 -1
  40. package/dist/eslint-rules/latex-language.js +41 -2
  41. package/dist/eslint-rules/latex-language.js.map +1 -1
  42. package/dist/ports/latex.d.ts +13 -1
  43. package/dist/ports/latex.d.ts.map +1 -1
  44. package/dist/ports/submission-portal.d.ts +7 -0
  45. package/dist/ports/submission-portal.d.ts.map +1 -1
  46. package/dist/presets.d.ts +15 -0
  47. package/dist/presets.d.ts.map +1 -1
  48. package/dist/presets.js +9 -0
  49. package/dist/presets.js.map +1 -1
  50. package/dist/submission.d.ts +3 -2
  51. package/dist/submission.d.ts.map +1 -1
  52. package/dist/submission.js +24 -12
  53. package/dist/submission.js.map +1 -1
  54. package/dist/tex-requirements.d.ts +2 -0
  55. package/dist/tex-requirements.d.ts.map +1 -1
  56. package/dist/tex-requirements.js +7 -2
  57. package/dist/tex-requirements.js.map +1 -1
  58. package/dist/tex-venue-rules.d.ts +36 -3
  59. package/dist/tex-venue-rules.d.ts.map +1 -1
  60. package/dist/tex-venue-rules.js +181 -33
  61. package/dist/tex-venue-rules.js.map +1 -1
  62. package/docs/rules/cycle/port-done.md +3 -0
  63. package/docs/rules/tex/template.md +96 -1
  64. package/docs/rules.md +18 -13
  65. package/docs/submission.md +26 -9
  66. package/docs/venues.md +51 -12
  67. package/eslint-rules/latex-language.test.mjs +64 -1
  68. package/eslint-rules/latex-language.ts +44 -2
  69. package/eslint.config.mjs +1 -0
  70. package/fixtures/build-e2e/neurips/PIPELINE-STATUS.md +3 -0
  71. package/fixtures/build-e2e/neurips/expect.json +20 -0
  72. package/fixtures/build-e2e/neurips/paper.tex +60 -0
  73. package/fixtures/build-e2e/neurips/paperlint.json +1 -0
  74. package/fixtures/build-e2e/neurips-nostyle/PIPELINE-STATUS.md +3 -0
  75. package/fixtures/build-e2e/neurips-nostyle/expect.json +26 -0
  76. package/fixtures/build-e2e/neurips-nostyle/paper.tex +56 -0
  77. package/fixtures/build-e2e/neurips-nostyle/paperlint.json +1 -0
  78. package/fixtures/build-e2e/neurips-over/PIPELINE-STATUS.md +3 -0
  79. package/fixtures/build-e2e/neurips-over/expect.json +24 -0
  80. package/fixtures/build-e2e/neurips-over/paper.tex +56 -0
  81. package/fixtures/build-e2e/neurips-over/paperlint.json +1 -0
  82. package/fixtures/real-papers.test.ts +17 -6
  83. package/package.json +3 -1
  84. package/presets/aaai-2027.jsonc +126 -0
  85. package/presets/aaai-2027.md +127 -0
  86. package/presets/aaai-press.jsonc +167 -0
  87. package/presets/aaai-press.md +126 -0
  88. package/presets/icml-2027.jsonc +111 -0
  89. package/presets/icml-2027.md +130 -0
  90. package/presets/icml-style.jsonc +125 -0
  91. package/presets/icml-style.md +77 -0
  92. package/presets/neurips-2026.jsonc +123 -0
  93. package/presets/neurips-2026.md +137 -0
  94. package/presets/neurips-style.jsonc +113 -0
  95. package/presets/neurips-style.md +85 -0
  96. package/presets/venue-profile.schema.json +6 -0
  97. package/skills/build-label-page/scripts/label-page-browser.test.ts +275 -114
  98. package/src/adapters/hotcrp/cassette/README.md +1 -1
  99. package/src/adapters/hotcrp/index.ts +12 -0
  100. package/src/adapters/hotcrp/site.ts +4 -0
  101. package/src/adapters/hotcrp/token.test.ts +39 -1
  102. package/src/adapters/hotcrp/token.ts +40 -7
  103. package/src/adapters/latex/document-class.ts +292 -20
  104. package/src/adapters/latex/index.test.ts +263 -0
  105. package/src/adapters/latex/index.ts +12 -3
  106. package/src/adapters/latex/parse.ts +5 -0
  107. package/src/cli.test.ts +6 -1
  108. package/src/cli.ts +4 -3
  109. package/src/domain/body-pages.test.ts +22 -6
  110. package/src/domain/body-pages.ts +4 -2
  111. package/src/domain/portal-token.test.ts +121 -2
  112. package/src/domain/portal-token.ts +39 -15
  113. package/src/domain/tex-document.ts +64 -5
  114. package/src/folder-venue-rule.test.ts +51 -0
  115. package/src/new-paper.test.ts +2 -2
  116. package/src/paper-settings-commands.test.ts +1 -1
  117. package/src/ports/latex.ts +14 -0
  118. package/src/ports/submission-portal.ts +7 -0
  119. package/src/preset-card-rule.test.ts +44 -27
  120. package/src/presets.test.ts +177 -1
  121. package/src/presets.ts +27 -0
  122. package/src/rule-cases.test.ts +52 -0
  123. package/src/submission-show.test.ts +1 -1
  124. package/src/submission.test.ts +98 -7
  125. package/src/submission.ts +28 -11
  126. package/src/tex-requirements.harness.ts +17 -3
  127. package/src/tex-requirements.ts +13 -2
  128. package/src/tex-venue-rules.test.ts +1020 -0
  129. package/src/tex-venue-rules.ts +248 -38
  130. package/src/venue-rules.test.ts +369 -2
@@ -271,13 +271,13 @@ describe("pdf/profile — the declaration must resolve, or nothing is judged", (
271
271
  "an unknown venue (a typo would silently disable every check)",
272
272
  { extends: "paperlint:agentic-dev", kind: "short" },
273
273
  "preset",
274
- /acsac-2026, agent-2027, agenticdev-2026, agentverify-2027, aidc-2026, aisec-2026, ase-2026, ccs-2026, emnlp-2026, fse-2027, icse-2027, icse-2028, ieee-conference, msr-2027, nlbse-2027, realm-2026, sp-2027/,
274
+ /acsac-2026, agent-2027, agenticdev-2026, agentverify-2027, aidc-2026, aisec-2026, ase-2026, ccs-2026, emnlp-2026, fse-2027, icml-2027, icml-style, icse-2027, icse-2028, ieee-conference, msr-2027, neurips-2026, neurips-style, nlbse-2027, realm-2026, sp-2027/,
275
275
  ],
276
276
  [
277
277
  "the base TeX set is not a venue",
278
278
  { extends: "paperlint:tex-base" },
279
279
  "preset",
280
- /acsac-2026, agent-2027, agenticdev-2026, agentverify-2027, aidc-2026, aisec-2026, ase-2026, ccs-2026, emnlp-2026, fse-2027, icse-2027, icse-2028, ieee-conference, msr-2027, nlbse-2027, realm-2026, sp-2027/,
280
+ /acsac-2026, agent-2027, agenticdev-2026, agentverify-2027, aidc-2026, aisec-2026, ase-2026, ccs-2026, emnlp-2026, fse-2027, icml-2027, icml-style, icse-2027, icse-2028, ieee-conference, msr-2027, neurips-2026, neurips-style, nlbse-2027, realm-2026, sp-2027/,
281
281
  ],
282
282
  [
283
283
  "paperlint.json that is not JSON",
@@ -915,6 +915,373 @@ describe("format/page-limit on FSE: 18 body pages and 4 of references, 20 and 4
915
915
  });
916
916
  });
917
917
 
918
+ /**
919
+ * The facts of the e2e fixture `fixtures/build-e2e/neurips`, measured for neurips-style.jsonc
920
+ * (2026-11-19): the author kit's neurips_2026.sty, references in \small, an appendix and the
921
+ * checklist after them.
922
+ */
923
+ const neuripsFacts = (patch: Patch = () => {}): Facts =>
924
+ withFacts((f) => {
925
+ f.page_w_in = 8.5;
926
+ f.page_h_in = 11;
927
+ f.columns = 1;
928
+ f.body_pt = 10.3;
929
+ f.ref_pt = 9.3;
930
+ f.npages = 10;
931
+ f.body_pages = 7;
932
+ f.ref_pages = 1;
933
+ f.fonts = type1([
934
+ "NimbusRomNo9L-Medi",
935
+ "NimbusRomNo9L-Regu",
936
+ "NimbusRomNo9L-ReguItal",
937
+ "NimbusSanL-Regu",
938
+ "SFTT1000",
939
+ ]);
940
+ patch(f);
941
+ });
942
+
943
+ const NEURIPS_STYLE = { extends: "paperlint:neurips-style" };
944
+ const NEURIPS = {
945
+ extends: "paperlint:neurips-2026",
946
+ kind: "main",
947
+ identity: ["Ada Example", "adaexample", "ada@example.org"],
948
+ };
949
+
950
+ describe("the NeurIPS style family and NeurIPS", () => {
951
+ it.each([
952
+ ["the family", NEURIPS_STYLE],
953
+ ["neurips/main", NEURIPS],
954
+ ])("the measured build passes %s", (_, venue) => {
955
+ expect(lint({ venue, facts: neuripsFacts() })).toEqual([]);
956
+ });
957
+
958
+ it("references at the body's size: banal gives no reference size, and nothing is judged", () => {
959
+ const facts = neuripsFacts((f) => (f.ref_pt = null));
960
+ expect(lint({ venue: NEURIPS, facts })).toEqual([]);
961
+ });
962
+
963
+ it("🔴 the planted build without the style fails: Computer Modern, no NimbusRomNo9L", () => {
964
+ const facts = neuripsFacts(
965
+ (f) =>
966
+ (f.fonts = type1([
967
+ "SFBX0900",
968
+ "SFBX1440",
969
+ "SFRM1000",
970
+ "SFRM1728",
971
+ "SFTI0900",
972
+ ])),
973
+ );
974
+ const fs = lint({ venue: NEURIPS, facts });
975
+ expect(ids(fs)).toEqual(["pdf/fonts:noFamily"]);
976
+ expect(fs[0]?.message).toMatch(/NimbusRomNo9L/);
977
+ });
978
+
979
+ it("🔴 an A4 page or two columns fail pdf/geometry", () => {
980
+ const facts = neuripsFacts((f) => {
981
+ f.page_w_in = 8.27;
982
+ f.page_h_in = 11.69;
983
+ f.columns = 2;
984
+ });
985
+ expect(ids(lint({ venue: NEURIPS, facts }))).toEqual([
986
+ "pdf/geometry:columns",
987
+ "pdf/geometry:dim",
988
+ "pdf/geometry:dim",
989
+ ]);
990
+ });
991
+
992
+ it("🔴 a bibliography in \\footnotesize, below the \\small the kit permits, fails pdf/body-size", () => {
993
+ const fs = lint({
994
+ venue: NEURIPS,
995
+ facts: neuripsFacts((f) => (f.ref_pt = 8.3)),
996
+ });
997
+ expect(fs.map((f) => f.message)).toEqual([
998
+ "the reference font size is 8.3 pt, outside 9–10 pt for NeurIPS (allowing ±0.5 pt for the measuring drift) — fix the bibliography's font size",
999
+ ]);
1000
+ });
1001
+ });
1002
+
1003
+ describe("format/page-limit on NeurIPS: 9 content pages, 10 in the camera-ready; references, appendices and the checklist not counted", () => {
1004
+ const CAMERA = { ...NEURIPS, kind: "camera-ready" };
1005
+ it.each([
1006
+ { name: "main: 9 + 12 pass", venue: NEURIPS, body: 9, refs: 12, want: [] },
1007
+ {
1008
+ name: "🔴 main: a 10th content page fails",
1009
+ venue: NEURIPS,
1010
+ body: 10,
1011
+ refs: 1,
1012
+ want: ["format/page-limit:pages"],
1013
+ },
1014
+ {
1015
+ name: "camera-ready: 10 pass",
1016
+ venue: CAMERA,
1017
+ body: 10,
1018
+ refs: 1,
1019
+ want: [],
1020
+ },
1021
+ {
1022
+ name: "🔴 camera-ready: an 11th content page fails",
1023
+ venue: CAMERA,
1024
+ body: 11,
1025
+ refs: 1,
1026
+ want: ["format/page-limit:pages"],
1027
+ },
1028
+ ])("$name", ({ venue, body, refs, want }) => {
1029
+ const facts = neuripsFacts((f) => {
1030
+ f.body_pages = body;
1031
+ f.ref_pages = refs;
1032
+ f.npages = body + refs;
1033
+ });
1034
+ expect(ids(lint({ venue, facts }))).toEqual(want);
1035
+ });
1036
+ });
1037
+
1038
+ /**
1039
+ * The facts of a build on the AAAI-27 kit's preamble, measured for aaai-press.jsonc (2026-11-19):
1040
+ * aaai2027.sty, 7 body pages, references in \small on pages 8-9.
1041
+ */
1042
+ const aaaiFacts = (patch: Patch = () => {}): Facts =>
1043
+ withFacts((f) => {
1044
+ f.page_w_in = 8.5;
1045
+ f.page_h_in = 11;
1046
+ f.columns = 2;
1047
+ f.body_pt = 10.3;
1048
+ f.ref_pt = 9.3;
1049
+ f.npages = 9;
1050
+ f.body_pages = 7;
1051
+ f.ref_pages = 2;
1052
+ f.fonts = type1([
1053
+ "CMMI10",
1054
+ "CMR10",
1055
+ "NimbusMonL-Regu",
1056
+ "TeXGyreTermesX-Bold",
1057
+ "TeXGyreTermesX-Italic",
1058
+ "TeXGyreTermesX-Regular",
1059
+ ]);
1060
+ patch(f);
1061
+ });
1062
+
1063
+ const AAAI_PRESS = { extends: "paperlint:aaai-press" };
1064
+ const AAAI = {
1065
+ extends: "paperlint:aaai-2027",
1066
+ kind: "main",
1067
+ identity: ["Ada Example", "adaexample", "ada@example.org"],
1068
+ };
1069
+
1070
+ describe("the AAAI Press style family and AAAI-27", () => {
1071
+ it.each([
1072
+ ["the family", AAAI_PRESS],
1073
+ ["aaai-2027/main", AAAI],
1074
+ ])("the measured build passes %s", (_, venue) => {
1075
+ expect(lint({ venue, facts: aaaiFacts() })).toEqual([]);
1076
+ });
1077
+
1078
+ it("references at the body's size: banal gives no reference size, and nothing is judged", () => {
1079
+ const facts = aaaiFacts((f) => (f.ref_pt = null));
1080
+ expect(lint({ venue: AAAI, facts })).toEqual([]);
1081
+ });
1082
+
1083
+ it("🔴 the AAAI-26 kit (its paper loads times) fails pdf/fonts: NimbusRomNo9L, no TeXGyreTermesX", () => {
1084
+ const facts = aaaiFacts(
1085
+ (f) =>
1086
+ (f.fonts = type1([
1087
+ "CMMI10",
1088
+ "CMR10",
1089
+ "CMSY10",
1090
+ "NimbusMonL-Regu",
1091
+ "NimbusRomNo9L-Medi",
1092
+ "NimbusRomNo9L-Regu",
1093
+ "NimbusRomNo9L-ReguItal",
1094
+ ])),
1095
+ );
1096
+ const fs = lint({ venue: AAAI, facts });
1097
+ expect(ids(fs)).toEqual(["pdf/fonts:noFamily"]);
1098
+ expect(fs[0]?.message).toMatch(/TeXGyreTermesX/);
1099
+ });
1100
+
1101
+ it("🔴 `[a4paper]` for `[letterpaper]`: the measured A4 page fails pdf/geometry", () => {
1102
+ const facts = aaaiFacts((f) => {
1103
+ f.page_w_in = 8.264;
1104
+ f.page_h_in = 11.694;
1105
+ });
1106
+ expect(ids(lint({ venue: AAAI, facts }))).toEqual([
1107
+ "pdf/geometry:dim",
1108
+ "pdf/geometry:dim",
1109
+ ]);
1110
+ });
1111
+
1112
+ it("🔴 one column fails pdf/geometry", () => {
1113
+ const facts = aaaiFacts((f) => (f.columns = 1));
1114
+ expect(ids(lint({ venue: AAAI, facts }))).toEqual(["pdf/geometry:columns"]);
1115
+ });
1116
+
1117
+ it("🔴 \\tiny after \\maketitle (body 6.3) and a bibliography in \\scriptsize (7.3) fail pdf/body-size", () => {
1118
+ expect(
1119
+ lint({ venue: AAAI, facts: aaaiFacts((f) => (f.body_pt = 6.3)) }).map(
1120
+ (f) => f.message,
1121
+ ),
1122
+ ).toEqual([
1123
+ "the body font size measures 6.3 pt against 10 ± 0.5 pt for AAAI. The measurement is the mode of the rendered text, not the declared size — check \\documentclass and its options",
1124
+ ]);
1125
+ expect(
1126
+ lint({ venue: AAAI, facts: aaaiFacts((f) => (f.ref_pt = 7.3)) }).map(
1127
+ (f) => f.message,
1128
+ ),
1129
+ ).toEqual([
1130
+ "the reference font size is 7.3 pt, outside 9–10 pt for AAAI (allowing ±0.5 pt for the measuring drift) — fix the bibliography's font size",
1131
+ ]);
1132
+ });
1133
+ });
1134
+
1135
+ describe("format/page-limit on AAAI-27: 7 pages of content, 2 more only of references, 9 in all", () => {
1136
+ it.each([
1137
+ { name: "7 + 2 pass", body: 7, refs: 2, want: [] },
1138
+ { name: "6 + 1 pass", body: 6, refs: 1, want: [] },
1139
+ {
1140
+ name: "🔴 an 8th content page fails, though the total is 9",
1141
+ body: 8,
1142
+ refs: 1,
1143
+ want: ["format/page-limit:pages"],
1144
+ },
1145
+ {
1146
+ name: "🔴 a third page of references fails, and so does the total",
1147
+ body: 7,
1148
+ refs: 3,
1149
+ want: ["format/page-limit:pages", "format/page-limit:pages"],
1150
+ },
1151
+ ])("$name", ({ body, refs, want }) => {
1152
+ const facts = aaaiFacts((f) => {
1153
+ f.body_pages = body;
1154
+ f.ref_pages = refs;
1155
+ f.npages = body + refs;
1156
+ });
1157
+ expect(ids(lint({ venue: AAAI, facts }))).toEqual(want);
1158
+ });
1159
+ });
1160
+
1161
+ /**
1162
+ * The facts of the ICML kit's example_paper.tex, measured for icml-style.jsonc (2026-11-19): the
1163
+ * kit's icml2027.sty, references at the body's size (banal gives no reference size), an appendix
1164
+ * after them. The kit's figure draws a non-embedded Times-Roman; left out here, it is pdf/fonts'
1165
+ * finding on any venue.
1166
+ */
1167
+ const icmlFacts = (patch: Patch = () => {}): Facts =>
1168
+ withFacts((f) => {
1169
+ f.page_w_in = 8.5;
1170
+ f.page_h_in = 11;
1171
+ f.columns = 2;
1172
+ f.body_pt = 10.3;
1173
+ f.ref_pt = null;
1174
+ f.npages = 7;
1175
+ f.body_pages = 5;
1176
+ f.ref_pages = 2;
1177
+ f.fonts = type1([
1178
+ "NimbusRomNo9L-Regu",
1179
+ "NimbusRomNo9L-Medi",
1180
+ "NimbusRomNo9L-ReguItal",
1181
+ "NimbusRomNo9L-MediItal",
1182
+ "NimbusMonL-Regu",
1183
+ "CMMI10",
1184
+ "CMSY10",
1185
+ ]);
1186
+ patch(f);
1187
+ });
1188
+
1189
+ const ICML_STYLE = { extends: "paperlint:icml-style" };
1190
+ const ICML = {
1191
+ extends: "paperlint:icml-2027",
1192
+ kind: "main",
1193
+ identity: ["Ada Example", "adaexample", "ada@example.org"],
1194
+ };
1195
+
1196
+ describe("the ICML style family and ICML", () => {
1197
+ it.each([
1198
+ ["the family", ICML_STYLE],
1199
+ ["icml-2027/main", ICML],
1200
+ ])("the measured build passes %s", (_, venue) => {
1201
+ expect(lint({ venue, facts: icmlFacts() })).toEqual([]);
1202
+ });
1203
+
1204
+ it("🔴 the planted build in Computer Modern (\\rmdefault cmr) fails pdf/fonts", () => {
1205
+ const facts = icmlFacts(
1206
+ (f) =>
1207
+ (f.fonts = type1(["CMBX10", "CMR10", "SFRM1000", "NimbusMonL-Regu"])),
1208
+ );
1209
+ const fs = lint({ venue: ICML, facts });
1210
+ expect(ids(fs)).toEqual(["pdf/fonts:noFamily"]);
1211
+ expect(fs[0]?.message).toMatch(/NimbusRomNo9L/);
1212
+ });
1213
+
1214
+ it("🔴 another venue's one-column style (NeurIPS 2025's, measured) fails pdf/geometry", () => {
1215
+ const fs = lint({ venue: ICML, facts: icmlFacts((f) => (f.columns = 1)) });
1216
+ expect(fs.map((f) => f.message)).toEqual([
1217
+ "1 column(s), ICML requires 2 — the wrong document class or class option",
1218
+ ]);
1219
+ });
1220
+
1221
+ it("🔴 an A4 page fails pdf/geometry", () => {
1222
+ const facts = icmlFacts((f) => {
1223
+ f.page_w_in = 8.27;
1224
+ f.page_h_in = 11.69;
1225
+ });
1226
+ expect(ids(lint({ venue: ICML, facts }))).toEqual([
1227
+ "pdf/geometry:dim",
1228
+ "pdf/geometry:dim",
1229
+ ]);
1230
+ });
1231
+
1232
+ it("🔴 [11pt] (banal 11.3, measured) fails pdf/body-size", () => {
1233
+ const fs = lint({
1234
+ venue: ICML,
1235
+ facts: icmlFacts((f) => (f.body_pt = 11.3)),
1236
+ });
1237
+ expect(ids(fs)).toEqual(["pdf/body-size:body"]);
1238
+ });
1239
+
1240
+ it("🔴 a bibliography in \\small (banal 9.3, measured), below the body's size, fails pdf/body-size", () => {
1241
+ const fs = lint({ venue: ICML, facts: icmlFacts((f) => (f.ref_pt = 9.3)) });
1242
+ expect(fs.map((f) => f.message)).toEqual([
1243
+ "the reference font size is 9.3 pt, outside 10 pt for ICML (allowing ±0.5 pt for the measuring drift) — fix the bibliography's font size",
1244
+ ]);
1245
+ });
1246
+ });
1247
+
1248
+ describe("format/page-limit on ICML: 8 main-body pages, 9 in the camera-ready; references, statements and appendices not counted", () => {
1249
+ const CAMERA = { ...ICML, kind: "camera-ready" };
1250
+ // banal's counts on the kit's example with filler text (icml-2027.jsonc): 8 with the Impact
1251
+ // Statement on page 9, 9 with the body run onto page 9.
1252
+ it.each([
1253
+ { name: "main: 8 + 4 pass", venue: ICML, body: 8, refs: 4, want: [] },
1254
+ {
1255
+ name: "🔴 main: a 9th body page fails",
1256
+ venue: ICML,
1257
+ body: 9,
1258
+ refs: 4,
1259
+ want: ["format/page-limit:pages"],
1260
+ },
1261
+ {
1262
+ name: "camera-ready: 9 pass",
1263
+ venue: CAMERA,
1264
+ body: 9,
1265
+ refs: 4,
1266
+ want: [],
1267
+ },
1268
+ {
1269
+ name: "🔴 camera-ready: a 10th body page fails",
1270
+ venue: CAMERA,
1271
+ body: 10,
1272
+ refs: 4,
1273
+ want: ["format/page-limit:pages"],
1274
+ },
1275
+ ])("$name", ({ venue, body, refs, want }) => {
1276
+ const facts = icmlFacts((f) => {
1277
+ f.body_pages = body;
1278
+ f.ref_pages = refs;
1279
+ f.npages = body + refs;
1280
+ });
1281
+ expect(ids(lint({ venue, facts }))).toEqual(want);
1282
+ });
1283
+ });
1284
+
918
1285
  describe("pdf/body-size on the IEEE family: 10 pt body, 8 pt references", () => {
919
1286
  it("a body size off the family's 10 pt fails pdf/body-size", () => {
920
1287
  expect(