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
@@ -30,8 +30,8 @@
30
30
  * compare, and a template-family preset is where it is named.
31
31
  */
32
32
  import { basename, dirname } from "node:path";
33
- import { collapse, documentClassLine, missingOptions, runText, spanIn, } from "./domain/tex-document.js";
34
- import { paperPreset, shippedVenueNames } from "./presets.js";
33
+ import { collapse, documentClassLine, missingOptions, optionsInEffect, readWhole, runText, spanIn, usepackageLine, } from "./domain/tex-document.js";
34
+ import { paperPreset, shippedStyles, shippedVenueNames, } from "./presets.js";
35
35
  import { editionLabel } from "./domain/edition.js";
36
36
  import { readPaper, reportInPaper } from "./tex-paper.js";
37
37
  import { isPorting } from "./domain/cycle.js";
@@ -40,36 +40,51 @@ import { isPorting } from "./domain/cycle.js";
40
40
  const spanOf = (p) => (p.kind === "at" ? p.span : null);
41
41
  /**
42
42
  * A class line that names a class, against the template's: the same class, with every option, and
43
- * none of the options the preset forbids.
43
+ * none of the options the preset forbids. An option `\PassOptionsToClass` gave the class before the
44
+ * line counts as the line's, and a forbidden one is reported where it is passed. When an option is
45
+ * built by a macro, what it carries is not known: no option is said to be missing, and a forbidden
46
+ * option written out is still reported — it is in effect whatever the macro holds.
44
47
  */
45
48
  function judgeClass(line, want, data) {
46
49
  const at = spanOf(line.place);
47
50
  if (line.cls !== want.cls.cls)
48
51
  return [{ messageId: "wrongClass", data: { ...data, got: line.cls }, at }];
49
- const forbidden = want.forbids.filter((o) => line.options.includes(o));
50
52
  const without = want.forbids.map((o) => `\`${o}\``).join(", ");
53
+ const forbidden = (options, where) => want.forbids
54
+ .filter((o) => options.includes(o))
55
+ .map((option) => ({
56
+ messageId: "forbiddenOption",
57
+ data: { ...data, option, without },
58
+ at: where,
59
+ }));
60
+ const missing = readWhole(line)
61
+ ? missingOptions(optionsInEffect(line), want.cls)
62
+ : [];
51
63
  return [
52
- ...forbidden.map((option) => ({
53
- messageId: "forbiddenOption",
54
- data: { ...data, option, without },
55
- at,
56
- })),
57
- ...missingOptions(line, want.cls).map((option) => ({
64
+ ...line.passed.flatMap((p) => forbidden(p.options, spanOf(p.place))),
65
+ ...forbidden(line.options, at),
66
+ ...missing.map((option) => ({
58
67
  messageId: "missingOption",
59
68
  data: { ...data, option },
60
69
  at,
61
70
  })),
62
71
  ];
63
72
  }
64
- /** A candidate as the message names it: its line, or an empty `\documentclass{}`. */
73
+ /**
74
+ * A candidate as the message names it: its line, or an empty `\documentclass{}` — the one other
75
+ * kind a message names, since an unread candidate may match and silences the switch.
76
+ */
65
77
  const candidateLine = (c) => c.kind === "class" ? documentClassLine(c) : "\\documentclass{}";
78
+ /** Whether a candidate may be the template's line: a class line with no finding, or an unread one. */
79
+ const mayMatch = (c, want, data) => c.kind === "unread" ||
80
+ (c.kind === "class" && judgeClass(c, want, data).length === 0);
66
81
  /**
67
82
  * Several class lines behind a TeX switch: satisfied when any candidate is the template's class
68
- * with its options; otherwise one finding, at the first candidate, naming every one.
83
+ * with its options, or may be (one built by a macro); otherwise one finding, at the first
84
+ * candidate, naming every one.
69
85
  */
70
86
  function judgeCandidates(candidates, want, data) {
71
- const matches = candidates.some((c) => c.kind === "class" && judgeClass(c, want, data).length === 0);
72
- if (matches)
87
+ if (candidates.some((c) => mayMatch(c, want, data)))
73
88
  return [];
74
89
  const named = candidates.map((c) => `\`${candidateLine(c)}\``).join(", ");
75
90
  const found = { ...data, count: candidates.length, candidates: named };
@@ -82,6 +97,10 @@ function judgeClassLine(line, want, data) {
82
97
  switch (line.kind) {
83
98
  case "missing":
84
99
  return [{ messageId: "noClass", data, at: null }];
100
+ // A class this reader cannot see or read is not judged: it may be the venue's.
101
+ case "unseen":
102
+ case "unread":
103
+ return [];
85
104
  case "empty":
86
105
  return [{ messageId: "emptyClass", data, at: spanOf(line.place) }];
87
106
  case "class":
@@ -95,7 +114,7 @@ function judgeClassLine(line, want, data) {
95
114
  * once; then the class must be there, name a class, be the template's class, and carry every
96
115
  * option the template names.
97
116
  */
98
- export function judgeTemplate(line, preset, latex) {
117
+ export function judgeTemplate(line, preset, latex, style = NO_STYLE_INPUT) {
99
118
  const t = preset.template;
100
119
  if (t === null)
101
120
  return [];
@@ -105,7 +124,118 @@ export function judgeTemplate(line, preset, latex) {
105
124
  return [{ messageId: "badTemplate", data, at: null }];
106
125
  }
107
126
  const data = { venue: preset.label, template: documentClassLine(want) };
108
- return judgeClassLine(line, { cls: want, forbids: t.forbids }, data);
127
+ // The style is judged only over the template's class: another class (or one this reader cannot
128
+ // read) may load a style of its own, and its finding is the class's.
129
+ return [
130
+ ...judgeClassLine(line, { cls: want, forbids: t.forbids }, data),
131
+ ...(isClass(line, want.cls) ? judgeStyle(style, preset, latex) : []),
132
+ ];
133
+ }
134
+ /** Whether the class line is `cls` — behind a switch, whether one of its candidates is. */
135
+ const isClass = (line, cls) => line.kind === "ambiguous"
136
+ ? line.candidates.some((c) => c.kind === "class" && c.cls === cls)
137
+ : line.kind === "class" && line.cls === cls;
138
+ const NO_STYLE_INPUT = { packages: [], others: [], unseen: false };
139
+ /**
140
+ * The same package name in another case (`NeurIPS_2026`): a case-insensitive file system loads the
141
+ * style under it and a case-sensitive one does not, so nothing is said either way.
142
+ */
143
+ const sameNameOtherCase = (a, b) => a !== b && a.toLowerCase() === b.toLowerCase();
144
+ /**
145
+ * A style's series: its name without the edition and what follows it — `neurips_2026` → `neurips`,
146
+ * `iclr2027_conference` → `iclr`, `ijcai26` → `ijcai`. Two names of one series and two editions are
147
+ * another year's style.
148
+ */
149
+ const seriesOf = (name) => name.replace(/[-_]?\d{2,4}(?:[-_].*)?$/u, "");
150
+ /**
151
+ * Another style than the template's, loaded in its place: one a shipped preset off this paper's chain
152
+ * names, or one of the same series and another edition. Any other package is the paper's own.
153
+ */
154
+ const isOtherStyle = (name, want, others) => name !== want &&
155
+ (others.includes(name) ||
156
+ (seriesOf(name) !== "" && seriesOf(name) === seriesOf(want)));
157
+ /** Whether a load is the style with every option the template names, among the options LaTeX hands it. */
158
+ const carries = (load, want) => load.name === want.name &&
159
+ want.options.every((o) => load.options.includes(o));
160
+ /**
161
+ * Whether the paper is known to load the preset's style with its options: a load that carries them,
162
+ * read whole. True when the preset names no style; false for a style line the reader cannot read.
163
+ * Silence from `judgeStyle` is not enough: it is also silent when a macro may carry an option.
164
+ */
165
+ export function isStyleLoaded(packages, preset, latex) {
166
+ if (preset.templateStyle === null)
167
+ return true;
168
+ const want = latex.templateStyle(preset.templateStyle.text);
169
+ return want !== null && packages.some((p) => carries(p, want));
170
+ }
171
+ /**
172
+ * The lines that load the template's style, none carrying every option it names (the caller
173
+ * checked): each option the first line lacks, at that line.
174
+ */
175
+ function judgeLoaded(first, loads, want, data) {
176
+ // An option built by a macro may be the one wanted: what it holds is not known, so nothing is said.
177
+ if (loads.some((l) => l.unread.length > 0))
178
+ return [];
179
+ return want.options
180
+ .filter((o) => !first.options.includes(o))
181
+ .map((option) => ({
182
+ messageId: "missingStyleOption",
183
+ data: { ...data, option },
184
+ at: spanOf(first.place),
185
+ }));
186
+ }
187
+ /**
188
+ * The paper's packages against the preset's `template_style`: loaded with every option it names (by
189
+ * any of the lines, as several class lines behind a switch); loaded without one; another venue's or
190
+ * another year's style loaded instead; or not loaded at all.
191
+ */
192
+ export function judgeStyle({ packages, others, unseen }, preset, latex) {
193
+ const s = preset.templateStyle;
194
+ if (s === null)
195
+ return [];
196
+ const want = latex.templateStyle(s.text);
197
+ if (want === null) {
198
+ const data = { file: s.file, text: JSON.stringify(s.text) };
199
+ return [{ messageId: "badStyle", data, at: null }];
200
+ }
201
+ const data = { venue: preset.label, style: usepackageLine(want) };
202
+ const loads = packages.filter((p) => p.name === want.name);
203
+ if (loads.some((l) => carries(l, want)))
204
+ return [];
205
+ // What the reader cannot see may load the style or pass its options: an error never fires on that.
206
+ if (unseen || packages.some((p) => sameNameOtherCase(p.name, want.name)))
207
+ return [];
208
+ const [first] = loads;
209
+ if (first !== undefined)
210
+ return judgeLoaded(first, loads, want, data);
211
+ const instead = packages.find((p) => isOtherStyle(p.name, want.name, others));
212
+ return instead === undefined
213
+ ? [{ messageId: "missingStyle", data, at: null }]
214
+ : [
215
+ {
216
+ messageId: "wrongStyle",
217
+ data: { ...data, got: instead.name },
218
+ at: spanOf(instead.place),
219
+ },
220
+ ];
221
+ }
222
+ /**
223
+ * Whether the paper's class line is known to be the template's: read whole — no class or option
224
+ * built by a macro, no class unseen — and judged without a finding; behind a switch, one candidate
225
+ * so. Silence from `judgeTemplate` is not enough: it is also silent on a line it cannot read.
226
+ */
227
+ export function isTemplate(line, t, venue, latex) {
228
+ const want = latex.template(t.text);
229
+ if (want === null)
230
+ return false;
231
+ const wanted = { cls: want, forbids: t.forbids };
232
+ const data = { venue, template: documentClassLine(want) };
233
+ const proved = (c) => c.kind === "class" &&
234
+ readWhole(c) &&
235
+ judgeClass(c, wanted, data).length === 0;
236
+ return line.kind === "ambiguous"
237
+ ? line.candidates.some(proved)
238
+ : proved(line);
109
239
  }
110
240
  /** Where a heading starts, or null when the parser gave it no place. */
111
241
  const startOf = (p) => p.kind === "at" ? p.span.start : null;
@@ -245,7 +375,11 @@ export function judgeLayout(overrides, preset) {
245
375
  }
246
376
  const RULES = {
247
377
  template: {
248
- judge: (r) => judgeTemplate(r.latex.documentClass(r.src), r.preset, r.latex),
378
+ judge: (r) => judgeTemplate(r.latex.documentClass(r.src), r.preset, r.latex, {
379
+ packages: r.latex.packages(r.src),
380
+ others: r.styles(),
381
+ unseen: r.latex.packagesUnseen(r.src),
382
+ }),
249
383
  meta: {
250
384
  type: "problem",
251
385
  docs: {
@@ -260,6 +394,10 @@ const RULES = {
260
394
  wrongClass: "the class is `{{got}}`, and {{venue}} requires `{{template}}` — the page size, fonts and layout the venue checks come from the class",
261
395
  missingOption: "the class option `{{option}}` is missing: {{venue}} requires `{{template}}`",
262
396
  forbiddenOption: "the class option `{{option}}` is forbidden: {{venue}} requires `{{template}}` without {{without}}",
397
+ badStyle: '{{file}}: the preset\'s "template_style" {{text}} is not one \\usepackage line naming one package, so the style cannot be checked',
398
+ missingStyle: "{{venue}} requires `{{style}}`; paper.tex loads no such package — the page, the fonts and the margins the venue checks come from it",
399
+ wrongStyle: "paper.tex loads `{{got}}`, another venue's or another year's style; {{venue}} requires `{{style}}`",
400
+ missingStyleOption: "the style option `{{option}}` is missing: {{venue}} requires `{{style}}`",
263
401
  noCandidate: "none of the {{count}} \\documentclass lines is `{{template}}`, which {{venue}} requires: {{candidates}}. The source picks one behind a TeX switch, which is not evaluated; make one of them the venue's",
264
402
  },
265
403
  },
@@ -333,6 +471,18 @@ export function otherVenues(preset, deps) {
333
471
  declaredAliases,
334
472
  }));
335
473
  }
474
+ /**
475
+ * The package names of the styles every shipped venue off this paper's chain loads into its class:
476
+ * what `tex/template` reports when a paper loads one instead of its own venue's.
477
+ */
478
+ export function otherStyles(preset, deps) {
479
+ return shippedStyles(deps)
480
+ .filter((s) => !s.chain.every((f) => preset.chain.includes(f)))
481
+ .flatMap((s) => {
482
+ const parsed = deps.latex.templateStyle(s.text);
483
+ return parsed === null ? [] : [parsed.name];
484
+ });
485
+ }
336
486
  /**
337
487
  * What a judge reads for the paper whose `paper.tex` is `filename` — the paper with its includes
338
488
  * spliced (`readPaper`) — or null when the paper has no resolved preset (`pdf/measured` and
@@ -349,9 +499,10 @@ function readingOf(filename, src, deps) {
349
499
  return null;
350
500
  const preset = p.preset;
351
501
  const others = () => otherVenues(preset, deps);
502
+ const styles = () => otherStyles(preset, deps);
352
503
  const paper = readPaper(filename, src, deps);
353
504
  return {
354
- reading: { src: paper.text, latex: deps.latex, preset, others },
505
+ reading: { src: paper.text, latex: deps.latex, preset, others, styles },
355
506
  paper,
356
507
  };
357
508
  }
@@ -395,22 +546,19 @@ export function formatRules(deps) {
395
546
  * button. Silent when the preset names no template: there is nothing to compare, as for `tex/template`.
396
547
  */
397
548
  export function judgePortDone(r, cycleId) {
398
- if (r.preset.template === null)
549
+ const t = r.preset.template;
550
+ if (t === null)
399
551
  return [];
400
- const mismatch = judgeTemplate(r.latex.documentClass(r.src), r.preset, r.latex);
401
- return mismatch.length > 0
402
- ? []
403
- : [
404
- {
405
- messageId: "done",
406
- data: {
407
- venue: r.preset.label,
408
- template: r.preset.template.text,
409
- id: cycleId,
410
- },
411
- at: null,
412
- },
413
- ];
552
+ const line = r.latex.documentClass(r.src);
553
+ // Only a class line read whole and found to be the venue's ends the port: one built by a macro
554
+ // gets no finding from tex/template, and is not the venue's for that. And the style with it: a
555
+ // port from one article-based style to another is not done while the class line already matches.
556
+ if (!isTemplate(line, t, r.preset.label, r.latex))
557
+ return [];
558
+ if (!isStyleLoaded(r.latex.packages(r.src), r.preset, r.latex))
559
+ return [];
560
+ const data = { venue: r.preset.label, template: t.text, id: cycleId };
561
+ return [{ messageId: "done", data, at: null }];
414
562
  }
415
563
  const PORT_DONE_META = {
416
564
  type: "problem",
@@ -1 +1 @@
1
- {"version":3,"file":"tex-venue-rules.js","sourceRoot":"","sources":["../src/tex-venue-rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EACL,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,OAAO,EACP,MAAM,GAUP,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAe,MAAM,cAAc,C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AAC;YACJ,CAAC;SACF;KACF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,sBAAsB,GAE/B,EAAE,iBAAiB,EAAE,OAAO,EAAE,CAAC"}
@@ -52,6 +52,9 @@ Passing:
52
52
  - a cycle still porting whose `paper.tex` still has the old venue's class line — the port is open
53
53
  work, as declared;
54
54
  - a preset that names no `template`: there is nothing to compare, as for `tex/template`;
55
+ - a class line the rule cannot read whole — its class or an option built by a macro, or a class kept
56
+ in a preamble file with no build yet: `tex/template` is silent on it, and it is not known to be
57
+ the venue's either;
55
58
  - a paper whose `paperlint.json` has no `cycles`.
56
59
 
57
60
  ## Options / preset fields
@@ -20,6 +20,19 @@ candidate names every one:
20
20
  \if\venue2 \documentclass[conference,compsoc]{IEEEtran} \fi % passes: the second candidate matches
21
21
  ```
22
22
 
23
+ An option given to the class before its line with `\PassOptionsToClass` is in effect, as LaTeX
24
+ reads it, and counts as the line's: it satisfies a required option, and a forbidden one is reported
25
+ where it is passed. One passed after the `\documentclass`, or to another class, does nothing in
26
+ LaTeX and counts for nothing here:
27
+
28
+ ```latex
29
+ \PassOptionsToClass{compsoc}{IEEEtran}
30
+ \documentclass[conference]{IEEEtran} % passes under AIDC: compsoc is passed above
31
+ ```
32
+
33
+ With a build's record, a class line kept in a file `paper.tex` `\input`s is read where the
34
+ `\input` stands, and a finding in it is reported at that `\input`, naming the file and line.
35
+
23
36
  It only knows the class a preset names. A paper whose `paperlint.json` names no preset, or a
24
37
  preset with no `template`, gets no finding.
25
38
 
@@ -79,16 +92,98 @@ Class options the venue's call forbids, each reported where the class line carri
79
92
  `template` of the same file, and only with it: the schema refuses it alone, and a child preset's
80
93
  `template` replaces both.
81
94
 
95
+ ```jsonc
96
+ "template": "\\documentclass{article}",
97
+ "template_style": "\\usepackage{neurips_2026}"
98
+ ```
99
+
100
+ For a template that is a style file from the venue's author kit, loaded into a plain class
101
+ (NeurIPS's `neurips_2026.sty` into `article`): the whole `\usepackage[…]{…}` line, one package and
102
+ the options it requires. The paper must then load that package (`\usepackage`, `\RequirePackage`
103
+ or `\RequirePackageWithOptions`, in the preamble or a file it `\input`s, alone or in a list, from
104
+ a folder or not: `sty/aaai2027` is the package `aaai2027`) with every option named, among the
105
+ options LaTeX hands it (latex.ltx, TeX Live 2026):
106
+
107
+ - **a global option**, on the `\documentclass` line: the kernel keeps the line's options as
108
+ `\@classoptionslist`, and every package's `\ProcessOptions` takes the ones it declares
109
+ (`\@process@ptions`). `\documentclass[letterpaper,submission]{article}` then
110
+ `\usepackage{aaai2027}` passes. An option the class gets from `\PassOptionsToClass` is not
111
+ global: it goes to the class's own list (`\@pass@ptions`) and reaches no package;
112
+ - **an option passed before the load** with `\PassOptionsToPackage`, which adds to the package's
113
+ own list. One passed after the load is not in effect;
114
+ - **an option on the load's own line**. `\RequirePackageWithOptions` replaces the package's list
115
+ with that of the file that loads it (`\@loadwithoptions`): in a paper's preamble, none, so the
116
+ global options alone count for it.
117
+
118
+ Options of the paper's own are allowed, and one of several lines behind a TeX switch is enough. An
119
+ option built by a macro (`\documentclass[\opts]{article}`) may hold the one required: the rule says
120
+ nothing then, and `cycle/port-done` does not call the port done. A package loaded twice keeps its
121
+ first load's options, and a second load asking for more stops the build («Option clash»). What is
122
+ reported, at error:
123
+
124
+ ```latex
125
+ \documentclass{article} % fails: NeurIPS requires `\usepackage{neurips_2026}`;
126
+ % paper.tex loads no such package
127
+ \usepackage{neurips_2025} % fails: another year's style, named
128
+ \usepackage{icml2027} % fails: another shipped venue's style, named
129
+ \usepackage[preprint]{neurips_2026} % passes: an option of the paper's own
130
+ ```
131
+
132
+ "Instead" covers two cases only: a package another shipped preset names as its `template_style`, and
133
+ a package of the same series as the template's in another edition — the name with its trailing
134
+ year and what follows removed (`neurips_2025` and `neurips_2026` are both `neurips`). Any other
135
+ package is the paper's own. A child preset's `template_style` replaces its parent's.
136
+
82
137
  ## What it does not check
83
138
 
139
+ - The style file's content: a `neurips_2026.sty` edited, or another file saved under that name,
140
+ passes (the build records its sha256 in `_build/sources.json`; no rule compares it yet).
141
+
84
142
  - An option a venue forbids that its preset does not list in `template_forbids` (`review` in a
85
143
  camera-ready).
86
144
  - The version of the class file (#94).
87
- - A `\documentclass` inside a comment: the rule reads the parse tree, so it does not count.
145
+ - A `\documentclass` inside a comment, a `verbatim` or `filecontents` block, or behind `\iffalse …
146
+ \fi`: TeX does not read it, and the rule does not count it.
88
147
  - Which branch of a TeX switch builds: with several class lines, one matching candidate is enough.
148
+ - A line it cannot read, which stays silent rather than guess. No macro is expanded, so the rule
149
+ does not know what a macro holds:
150
+ - an option built by a macro (`\documentclass[\opts]{IEEEtran}`, or `\PassOptionsToClass{\opts}{…}`):
151
+ no option is said to be missing; a forbidden option written out beside it is still reported,
152
+ since it is in effect whatever the macro holds;
153
+ - a class name built by a macro (`\documentclass{\cls}`): no finding; behind a TeX switch, such a
154
+ candidate may be the venue's, so the switch gets no finding either;
155
+ - no `\documentclass` at the top of `paper.tex`, but one inside another macro's argument, or an
156
+ `\input` before `\begin{document}` whose file the rule has not read (no build yet, so no record
157
+ of the files TeX read): no finding — the class may be there. After `paperlint build`, the
158
+ included file is read and judged.
159
+
160
+ [`cycle/port-done`](../cycle/port-done.md) does not take such a line for the venue's either.
161
+
162
+ - The style where the reader cannot see it. A `template_style` finding is an error, so it is said
163
+ only when the whole preamble is in view; otherwise nothing is said, and `cycle/port-done` does not
164
+ call the port done:
165
+
166
+ | where the style may be | the style check |
167
+ | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
168
+ | a file the preamble `\input`s, `\include`s or `\subfile`s, not read yet (no build, or a stale record) | silent until `paperlint build` reads it |
169
+ | a file read by `\InputIfFileExists`, `\import` or `\subimport` | silent: such files are not followed |
170
+ | a package name built by a macro (`\usepackage{\style}`, `\csname usepackage\endcsname`, `\expandafter`) | silent |
171
+ | a load or a `\PassOptionsToPackage` inside a definition or another macro's argument (`\makeatletter` code, `\@ifpackageloaded`) | silent |
172
+ | an option built by a macro | silent |
173
+ | the name in another case (`NeurIPS_2026`): a case-insensitive file system loads it | silent |
174
+ | a class other than the template's, or one the reader cannot read: that class may load a style | the class finding alone |
175
+ | behind `\iffalse … \fi` or in a comment | not a load: reported |
176
+ | after `\end{document}` (a load, a `\PassOptionsToPackage`, a macro holding one) | not read by TeX: not a load, hides nothing |
177
+ | behind a TeX switch (`\ifdefined … \else … \fi`) | a load |
178
+ | an `\input` only after `\begin{document}` | hides nothing: reported |
179
+ | in a folder (`sty/aaai2027`) | the package of the file's base name |
89
180
 
90
181
  ## How to fix
91
182
 
92
183
  Set the `\documentclass` line to the one the message quotes, keeping your own extra options
93
184
  and dropping a forbidden one. A new
94
185
  paper made with `paperlint new <name> --venue <preset>` already has it.
186
+
187
+ If a finding is wrong for your paper, put a comment with the reason on the line above the one it
188
+ points at — `% eslint-disable-next-line tex/template -- <why>` — or, for a finding at the top of the
189
+ file, `% eslint-disable tex/template -- <why>` on the first line.
package/docs/rules.md CHANGED
@@ -149,21 +149,25 @@ for papers, each with the quote it came from, the TeX packages its template need
149
149
  the venue implies. A preset may itself extend another: the ACM venues extend the `acm-sigconf`
150
150
  family, which holds everything the ACM template decides.
151
151
 
152
- | preset | extends | template | kinds | page limit checked | rules it turns on |
153
- | --------------------------- | --------------------------- | ------------------------------------------------- | -------------------------------------------------------- | -------------------------------------- | ------------------------------------------- |
154
- | `paperlint:acm-sigconf` | — | ACM `acmart` sigconf | none | no (no kinds) | — |
155
- | `paperlint:agenticdev-2026` | `paperlint:acm-sigconf` | ACM `acmart` sigconf | `short` (5 + 2 refs), `full` (10 + 2), `demo` (5 + 2) | yes | `pdf/last-page-balance`, `tex/heading-case` |
156
- | `paperlint:aisec-2026` | `paperlint:acm-sigconf` | ACM `acmart` sigconf | `research`, `benchmark`, `position`, `sok` (10 + 2 each) | yes | — |
157
- | `paperlint:acm-acmsmall` | — | ACM `acmart` acmsmall (single-column) | none | no (no kinds) | — |
158
- | `paperlint:fse-2027` | `paperlint:acm-acmsmall` | ACM `acmart` acmsmall (single-column) | `research` (18 + 4 refs), `major-revision` (20 + 4) | yes | — (`blind`) |
159
- | `paperlint:realm-2026` | `paperlint:acl-latex` | ACL (`article`, `acl.sty`) | `long`, `short` | no — see below | — |
160
- | `paperlint:ieee-conference` | — | IEEE `IEEEtran` conference | none | no (no kinds) | — |
161
- | `paperlint:aidc-2026` | `paperlint:ieee-conference` | IEEE `IEEEtran` conference, `compsoc` | `regular` (12), `short` (6) | yes, before the references — see below | — (`blind`) |
162
- | `paperlint:msr-2027` | `paperlint:ieee-conference` | IEEE `IEEEtran` `[10pt,conference]`, no `compsoc` | `technical` (10 + 2 of only references) | yes, appendices included — see below | — (`blind`) |
152
+ | preset | extends | template | kinds | page limit checked | rules it turns on |
153
+ | --------------------------- | --------------------------- | ------------------------------------------------- | -------------------------------------------------------- | ---------------------------------------- | ------------------------------------------- |
154
+ | `paperlint:acm-sigconf` | — | ACM `acmart` sigconf | none | no (no kinds) | — |
155
+ | `paperlint:agenticdev-2026` | `paperlint:acm-sigconf` | ACM `acmart` sigconf | `short` (5 + 2 refs), `full` (10 + 2), `demo` (5 + 2) | yes | `pdf/last-page-balance`, `tex/heading-case` |
156
+ | `paperlint:aisec-2026` | `paperlint:acm-sigconf` | ACM `acmart` sigconf | `research`, `benchmark`, `position`, `sok` (10 + 2 each) | yes | — |
157
+ | `paperlint:acm-acmsmall` | — | ACM `acmart` acmsmall (single-column) | none | no (no kinds) | — |
158
+ | `paperlint:fse-2027` | `paperlint:acm-acmsmall` | ACM `acmart` acmsmall (single-column) | `research` (18 + 4 refs), `major-revision` (20 + 4) | yes | — (`blind`) |
159
+ | `paperlint:realm-2026` | `paperlint:acl-latex` | ACL (`article`, `acl.sty`) | `long`, `short` | no — see below | — |
160
+ | `paperlint:ieee-conference` | — | IEEE `IEEEtran` conference | none | no (no kinds) | — |
161
+ | `paperlint:aidc-2026` | `paperlint:ieee-conference` | IEEE `IEEEtran` conference, `compsoc` | `regular` (12), `short` (6) | yes, before the references — see below | — (`blind`) |
162
+ | `paperlint:msr-2027` | `paperlint:ieee-conference` | IEEE `IEEEtran` `[10pt,conference]`, no `compsoc` | `technical` (10 + 2 of only references) | yes, appendices included — see below | — (`blind`) |
163
+ | `paperlint:neurips-style` | — | `article` + NeurIPS's `neurips_2026.sty` | none | no (no kinds) | — |
164
+ | `paperlint:neurips-2026` | `paperlint:neurips-style` | `article` + NeurIPS's `neurips_2026.sty` | `main` (9 content pages), `camera-ready` (10) | yes, references and the rest not counted | — (`blind`) |
163
165
 
164
166
  The table shows one venue of each kind; every edition that ships, by field, with its parent and its
165
- family, is in [`venues.md`](venues.md#what-paperlint-ships). There is no NeurIPS, USENIX or
166
- Springer preset. A paper for an ACM or
167
+ family, is in [`venues.md`](venues.md#what-paperlint-ships). There is no ICLR, IJCAI, USENIX or
168
+ Springer preset. The templates of NeurIPS, ICML and AAAI are style files loaded into `article`, not
169
+ classes: each family names the class in `template` and the style in `template_style`, and
170
+ `tex/template` requires both ([`neurips-style.md`](../presets/neurips-style.md)). A paper for an ACM or
167
171
  IEEE conference venue nobody has profiled can extend `paperlint:acm-sigconf` or
168
172
  `paperlint:ieee-conference` directly: page size, columns and fonts are checked, and `pdf/profile`
169
173
  says the page limit is not. For anything else, write your own preset
@@ -281,6 +285,7 @@ The numbers and packages above illustrate the shape; take yours from the venue's
281
285
  | `name` | a venue's name without a year, required on a venue: how messages name it, and one of the names `tex/venue-leftover` looks for. The year is the file name's (`usenix-sec-2027.jsonc`); a year in the name is refused. A family's messages use its file name |
282
286
  | `url` | a venue's call for papers or author instructions (`https://`), required on a venue — the page its numbers are quoted from |
283
287
  | `template` | the `\documentclass` the venue's template uses — a whole line (`\documentclass[conference,compsoc]{IEEEtran}`) or a bare class name; `tex/template` requires the paper's class and every option named here |
288
+ | `template_style` | for a template that is a style file loaded into its class (NeurIPS's `neurips_2026.sty`): the whole `\usepackage[…]{…}` line, `"\\usepackage{neurips_2026}"`. `tex/template` requires the paper to load that package with every option named here, and names another shipped venue's style or another year's of the same series (`neurips_2025`) loaded instead. Set with `template`; a child's value replaces its parent's |
284
289
  | `aliases` | other names the venue goes by in a paper's text — its acronym: `["AISec"]`, without a year. Collected along `extends`, with `name`. Read by `tex/venue-leftover` and `paper/folder-venue-leftover` |
285
290
  | `workshop` | `true` on a workshop: then `parent` is required (the schema refuses one without the other) |
286
291
  | `parent` | the conference edition a workshop is held at, on a workshop only: `paperlint:<series>-<year>` or a relative path to a venue preset (`"parent": "paperlint:ccs-2026"` in AISec's). Its names, and its own parent's, count as the paper's own: `tex/venue-leftover` and `paper/folder-venue-leftover` never report them in a paper of this venue, and report them as the parent in any other venue's paper. A parent that is not a venue preset, a parent of another year, a bare series, or parents that name each other, are refused; a child's value replaces its parent's |
@@ -19,15 +19,32 @@ npx paperlint submission update papers/my-paper --save # changes the real sub
19
19
  | the venue preset | `"portal": { "kind": "hotcrp", "url": "https://…" }` | where the venue takes submissions (`paperlint:aidc-2026`, `paperlint:msr-2027`) |
20
20
  | the paper's `paperlint.json` | `"authors": [{ "name", "email", "affiliation"? }]` | for `new`: every author, in the paper's order — never guessed |
21
21
  | the paper's `paperlint.json` | `"submission": { "id": 7 }` | which submission is this paper's — `new --save` writes it |
22
- | the environment | `HOTCRP_TOKEN_<SITE>`, e.g. `HOTCRP_TOKEN_MSR2027` | your API token for that site |
23
-
24
- **The token** works on the site it was made on only, so each site has its own variable:
25
- `HOTCRP_TOKEN_MSR2027` for `msr2027.hotcrp.com`; for a site not on hotcrp.com, its whole host
26
- (with a port other than the default) and path, every other character becoming `_`, so two paths
27
- on one host that differ only in punctuation (`/conf-a`, `/conf/a`) share one variable. A plain
28
- `HOTCRP_TOKEN` is not read. When the token is missing, misnamed or refused, the command prints
29
- where on that site to make one, which permissions to tick, and the exact variable to set. Set it
30
- in your environment — never paste it into a chat; paperlint never prints it.
22
+ | the environment | `HOTCRP_TOKEN_HOTCRP_COM`, or `HOTCRP_TOKEN_<SITE>` | your API token: one for all of hotcrp.com, one per self-hosted site |
23
+
24
+ **The token** is read from the environment. One shared token for all of hotcrp.com is the normal
25
+ case; a separate token is the exception — a self-hosted server, or a token made as "This site only".
26
+ HotCRP's source says so ([`kohler/hotcrp`](https://github.com/kohler/hotcrp), `src/init.php` and
27
+ `src/userinfo/u_developer.php`). Which variable is read depends on where the site is:
28
+
29
+ - **A `*.hotcrp.com` site** (the hosted service): `HOTCRP_TOKEN_HOTCRP_COM`, one variable for every
30
+ site on it, because they share one account system. A per-site variable overrides it for that
31
+ site alone and is read first: `HOTCRP_TOKEN_MSR2027` for `msr2027.hotcrp.com`.
32
+ - **A self-hosted install** (any other host): its own variable, named after its whole host (with a
33
+ port other than the default) and path, every other character becoming `_`, e.g.
34
+ `HOTCRP_TOKEN_AIDC_SUBMIT_ACSAC_ORG` for `aidc.submit.acsac.org`. Two paths on one host that
35
+ differ only in punctuation (`/conf-a`, `/conf/a`) share one variable. It never reads
36
+ `HOTCRP_TOKEN_HOTCRP_COM`: a self-hosted install is a separate installation and does not know a
37
+ hotcrp.com token (a token made on one answered `401` from `msr2027.hotcrp.com`, measured
38
+ 2026-10-19).
39
+
40
+ When you make the token (Account settings → Developer), HotCRP asks for "Site availability": choose
41
+ **All sites** for the shared variable. An all-sites token starts `hcT_`; a "This site only" token
42
+ starts `hct_` and works on one site, so it belongs in that site's own variable. A `hct_` token in
43
+ `HOTCRP_TOKEN_HOTCRP_COM` is refused with a message saying so.
44
+
45
+ A plain `HOTCRP_TOKEN` is not read. When the token is missing, misnamed or refused, the command
46
+ prints where on that site to make one, which permissions to tick, and the exact variable to set. Set
47
+ it in your environment — never paste it into a chat; paperlint never prints it.
31
48
 
32
49
  A missing key or token stops the command with exit 2 and a line naming what to set.
33
50