paperlint 18.1.0 → 18.2.1

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 (100) hide show
  1. package/README.md +2 -2
  2. package/dist/adapters/latex/document-class.d.ts +28 -5
  3. package/dist/adapters/latex/document-class.d.ts.map +1 -1
  4. package/dist/adapters/latex/document-class.js +208 -21
  5. package/dist/adapters/latex/document-class.js.map +1 -1
  6. package/dist/adapters/latex/index.d.ts +4 -4
  7. package/dist/adapters/latex/index.d.ts.map +1 -1
  8. package/dist/adapters/latex/index.js +5 -2
  9. package/dist/adapters/latex/index.js.map +1 -1
  10. package/dist/adapters/latex/parse.d.ts.map +1 -1
  11. package/dist/adapters/latex/parse.js +5 -0
  12. package/dist/adapters/latex/parse.js.map +1 -1
  13. package/dist/adapters/latex/prose.d.ts.map +1 -1
  14. package/dist/adapters/latex/prose.js +20 -4
  15. package/dist/adapters/latex/prose.js.map +1 -1
  16. package/dist/domain/body-pages.d.ts.map +1 -1
  17. package/dist/domain/body-pages.js +4 -2
  18. package/dist/domain/body-pages.js.map +1 -1
  19. package/dist/domain/tex-document.d.ts +52 -4
  20. package/dist/domain/tex-document.d.ts.map +1 -1
  21. package/dist/domain/tex-document.js +9 -0
  22. package/dist/domain/tex-document.js.map +1 -1
  23. package/dist/eslint-rules/latex-language.d.ts +10 -0
  24. package/dist/eslint-rules/latex-language.d.ts.map +1 -1
  25. package/dist/eslint-rules/latex-language.js +41 -2
  26. package/dist/eslint-rules/latex-language.js.map +1 -1
  27. package/dist/ports/latex.d.ts +13 -1
  28. package/dist/ports/latex.d.ts.map +1 -1
  29. package/dist/presets.d.ts +15 -0
  30. package/dist/presets.d.ts.map +1 -1
  31. package/dist/presets.js +9 -0
  32. package/dist/presets.js.map +1 -1
  33. package/dist/tex-requirements.d.ts +2 -0
  34. package/dist/tex-requirements.d.ts.map +1 -1
  35. package/dist/tex-requirements.js +7 -2
  36. package/dist/tex-requirements.js.map +1 -1
  37. package/dist/tex-venue-rules.d.ts +36 -3
  38. package/dist/tex-venue-rules.d.ts.map +1 -1
  39. package/dist/tex-venue-rules.js +181 -33
  40. package/dist/tex-venue-rules.js.map +1 -1
  41. package/docs/rules/cycle/port-done.md +3 -0
  42. package/docs/rules/tex/negated-sentences.md +1 -1
  43. package/docs/rules/tex/template.md +96 -1
  44. package/docs/rules.md +19 -14
  45. package/docs/venues.md +51 -12
  46. package/eslint-rules/latex-language.test.mjs +64 -1
  47. package/eslint-rules/latex-language.ts +44 -2
  48. package/eslint.config.mjs +1 -0
  49. package/fixtures/build-e2e/neurips/PIPELINE-STATUS.md +3 -0
  50. package/fixtures/build-e2e/neurips/expect.json +20 -0
  51. package/fixtures/build-e2e/neurips/paper.tex +60 -0
  52. package/fixtures/build-e2e/neurips/paperlint.json +1 -0
  53. package/fixtures/build-e2e/neurips-nostyle/PIPELINE-STATUS.md +3 -0
  54. package/fixtures/build-e2e/neurips-nostyle/expect.json +26 -0
  55. package/fixtures/build-e2e/neurips-nostyle/paper.tex +56 -0
  56. package/fixtures/build-e2e/neurips-nostyle/paperlint.json +1 -0
  57. package/fixtures/build-e2e/neurips-over/PIPELINE-STATUS.md +3 -0
  58. package/fixtures/build-e2e/neurips-over/expect.json +24 -0
  59. package/fixtures/build-e2e/neurips-over/paper.tex +56 -0
  60. package/fixtures/build-e2e/neurips-over/paperlint.json +1 -0
  61. package/fixtures/real-papers.test.ts +17 -6
  62. package/package.json +3 -1
  63. package/presets/aaai-2027.jsonc +126 -0
  64. package/presets/aaai-2027.md +127 -0
  65. package/presets/aaai-press.jsonc +167 -0
  66. package/presets/aaai-press.md +126 -0
  67. package/presets/aidc-2026.jsonc +11 -11
  68. package/presets/icml-2027.jsonc +111 -0
  69. package/presets/icml-2027.md +130 -0
  70. package/presets/icml-style.jsonc +125 -0
  71. package/presets/icml-style.md +77 -0
  72. package/presets/neurips-2026.jsonc +123 -0
  73. package/presets/neurips-2026.md +137 -0
  74. package/presets/neurips-style.jsonc +113 -0
  75. package/presets/neurips-style.md +85 -0
  76. package/presets/venue-profile.schema.json +6 -0
  77. package/skills/build-label-page/scripts/label-page-browser.test.ts +275 -114
  78. package/src/adapters/latex/document-class.ts +292 -20
  79. package/src/adapters/latex/index.test.ts +310 -0
  80. package/src/adapters/latex/index.ts +12 -3
  81. package/src/adapters/latex/parse.ts +5 -0
  82. package/src/adapters/latex/prose.ts +27 -4
  83. package/src/cli.test.ts +6 -1
  84. package/src/domain/body-pages.test.ts +22 -6
  85. package/src/domain/body-pages.ts +4 -2
  86. package/src/domain/tex-document.ts +64 -5
  87. package/src/folder-venue-rule.test.ts +51 -0
  88. package/src/new-paper.test.ts +2 -2
  89. package/src/paper-settings-commands.test.ts +1 -1
  90. package/src/ports/latex.ts +14 -0
  91. package/src/preset-card-rule.test.ts +44 -27
  92. package/src/presets.test.ts +177 -1
  93. package/src/presets.ts +27 -0
  94. package/src/register-bands.test.ts +2 -2
  95. package/src/rule-cases.test.ts +52 -0
  96. package/src/tex-requirements.harness.ts +17 -3
  97. package/src/tex-requirements.ts +13 -2
  98. package/src/tex-venue-rules.test.ts +1020 -0
  99. package/src/tex-venue-rules.ts +248 -38
  100. package/src/venue-rules.test.ts +369 -2
@@ -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,CAAC;AAE3E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAkB,MAAM,gBAAgB,CAAC;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}
@@ -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
@@ -80,7 +80,7 @@ No rule options. The band is the preset's: each anchor in `register.anchors` rec
80
80
 
81
81
  The band is the anchors' range of shares widened at each end by two Poisson standard deviations of
82
82
  the anchor standing there, as for the other band rules. For `paperlint:aidc-2026` the anchors are the five
83
- accepted ACSAC papers above: their shares run **5.3–17.8%**, and the band is **3.0–21.8%**.
83
+ accepted ACSAC papers above: their shares run **5.2–17.8%**, and the band is **2.9–21.8%**.
84
84
  `src/register-bands.test.ts` re-measures every anchor that has a fixture. An anchor without the two
85
85
  fields sets no band, so a preset written before this rule leaves it silent.
86
86
 
@@ -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
@@ -48,7 +48,7 @@ reads and when it fails. Errors fail `paperlint lint`; warnings print and do not
48
48
  | [`tex/contrast-frames`](rules/tex/contrast-frames.md) | opt-in: `paperlint:writing` | `paper.tex` and the files it includes → `paperlint.json` | contrast frames (_X, not Y_, _not X but Y_, _rather than_, _instead of_, _as opposed to_) per 10,000 words fall outside the band the venue preset's anchors set (AIDC: 0–10.4, from five accepted ACSAC papers); above it, each frame is reported too — [page](rules/tex/contrast-frames.md) |
49
49
  | [`tex/claim-emphasis`](rules/tex/claim-emphasis.md) | opt-in: `paperlint:writing` | `paper.tex` and the files it includes → `paperlint.json` | claims set in bold inside a sentence (six words or more, or holding a number; not a term, not a label opening a paragraph) per 10,000 words fall outside the preset's band (AIDC: 0–17.8); above it, each is reported too — [page](rules/tex/claim-emphasis.md) |
50
50
  | [`tex/relation-markers`](rules/tex/relation-markers.md) | opt-in: `paperlint:writing` | `paper.tex` and the files it includes → `paperlint.json` | words that name how a sentence relates to the one before (_because_, _therefore_, _however_, _for example_ …) per 10,000 words fall outside the preset's band (AIDC: 25.4–135.0) — the floor that catches relations left to infer — [page](rules/tex/relation-markers.md) |
51
- | [`tex/negated-sentences`](rules/tex/negated-sentences.md) | opt-in: `paperlint:writing` | `paper.tex` and the files it includes → `paperlint.json` | the share of body sentences holding a negator (_not_, _no_, _never_, _without_ …) falls outside the preset's band (AIDC: 3.0–21.8%, from five accepted ACSAC papers); _X, not Y_ is counted here and by `tex/contrast-frames` — [page](rules/tex/negated-sentences.md) |
51
+ | [`tex/negated-sentences`](rules/tex/negated-sentences.md) | opt-in: `paperlint:writing` | `paper.tex` and the files it includes → `paperlint.json` | the share of body sentences holding a negator (_not_, _no_, _never_, _without_ …) falls outside the preset's band (AIDC: 2.9–21.8%, from five accepted ACSAC papers); _X, not Y_ is counted here and by `tex/contrast-frames` — [page](rules/tex/negated-sentences.md) |
52
52
  | [`tex/max-paragraph-words`](rules/tex/max-paragraph-words.md) | opt-in: `paperlint:writing` | `paper.tex` and the files it includes | a paragraph of the body runs past `max` words (default 150) — a wall of text; no call for papers states a limit — [page](rules/tex/max-paragraph-words.md) |
53
53
  | [`tex/max-paragraph-numbers`](rules/tex/max-paragraph-numbers.md) | opt-in: `paperlint:writing` | `paper.tex` and the files it includes | a paragraph of the body holds more than `max` numbers (default 8) — a table written in prose — [page](rules/tex/max-paragraph-numbers.md) |
54
54
  | [`tex/max-sentence-words`](rules/tex/max-sentence-words.md) | opt-in: `paperlint:writing` | `paper.tex` and the files it includes | a sentence of the body runs past `max` words (default 55) — [page](rules/tex/max-sentence-words.md) |
@@ -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 |
package/docs/venues.md CHANGED
@@ -23,12 +23,15 @@ here and that every `paperlint:` id below exists.
23
23
 
24
24
  ### Families
25
25
 
26
- | family | the template |
27
- | --------------------------- | ---------------------------------------- |
28
- | `paperlint:acm-sigconf` | ACM `acmart`, sigconf (two columns) |
29
- | `paperlint:acm-acmsmall` | ACM `acmart`, acmsmall (one column) |
30
- | `paperlint:ieee-conference` | IEEE `IEEEtran`, conference |
31
- | `paperlint:acl-latex` | ACL's style files (`article`, `acl.sty`) |
26
+ | family | the template |
27
+ | --------------------------- | ----------------------------------------------- |
28
+ | `paperlint:acm-sigconf` | ACM `acmart`, sigconf (two columns) |
29
+ | `paperlint:acm-acmsmall` | ACM `acmart`, acmsmall (one column) |
30
+ | `paperlint:ieee-conference` | IEEE `IEEEtran`, conference |
31
+ | `paperlint:acl-latex` | ACL's style files (`article`, `acl.sty`) |
32
+ | `paperlint:neurips-style` | `article` + `\usepackage{neurips_2026}` |
33
+ | `paperlint:icml-style` | `article` + `\usepackage{icml2027}` |
34
+ | `paperlint:aaai-press` | `article` + `\usepackage[submission]{aaai2027}` |
32
35
 
33
36
  The TeX base set, `tex-base.jsonc`, is extended by nothing: every paper gets it.
34
37
 
@@ -67,21 +70,52 @@ MSR is held beside ICSE, but it is a conference of its own, not a workshop, so i
67
70
  | `paperlint:emnlp-2026` | — | `paperlint:acl-latex` | the class line and packages (minimal preset) |
68
71
  | `paperlint:realm-2026` | `paperlint:emnlp-2026` | `paperlint:acl-latex` | the workshop's format; no page limit (its card) |
69
72
 
70
- **Machine learning and AI**, **human–computer interaction**: none shipped yet.
73
+ **Machine learning and AI**
74
+
75
+ | edition | parent | family | what is checked |
76
+ | ------------------------ | ------ | ------------------------- | -------------------------------------------------------- |
77
+ | `paperlint:neurips-2026` | — | `paperlint:neurips-style` | the main track's call and the kit's style file |
78
+ | `paperlint:icml-2027` | — | `paperlint:icml-style` | the call and the kit's style file |
79
+ | `paperlint:aaai-2027` | — | `paperlint:aaai-press` | the main technical track's call and the kit's style file |
80
+
81
+ The template of these three is a style file a paper loads over `article`: each family names the
82
+ class in `template` and the style in `template_style`, and `tex/template` requires both.
83
+
84
+ **Human–computer interaction**: none shipped yet.
71
85
 
72
86
  A minimal preset carries the edition's names, its call and its family, and no page limit or deadline:
73
87
  it exists so the workshops held there can name it as their parent. Its card says so.
74
88
 
75
89
  ### In progress
76
90
 
77
- NeurIPS, ICML, ICLR, AAAI and IJCAI have been measured and are not shipped yet. Their templates are
78
- not classes but style files a paper loads over `article` (`\usepackage{neurips_2026}`), and
79
- `tex/template` compares only the `\documentclass` line: every one of them would pass as `article`.
80
- They ship when the template check can see a style file.
91
+ ICLR and IJCAI have been measured and are not shipped yet. Their templates are style files a paper
92
+ loads over `article`, as NeurIPS's, ICML's and AAAI's are, and `template_style` can name them; what
93
+ holds them back is the page count: statements their calls keep out of the limit stand before the
94
+ references, where they count as body.
95
+
96
+ ### Seen, not added yet
97
+
98
+ Venues we have come across in this repository's work and not added: each has a source to point to.
99
+ «Notable venues not covered», below, lists well-known venues nobody here has looked at yet.
100
+
101
+ | venue (series, edition) | parent | where we saw it | what blocks it |
102
+ | ----------------------------------------------------------------------------------------- | ------------ | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
103
+ | JAWS 2026 (workshop) | ASE 2026 | the acceptance comment of arXiv 2611.01265v1 (#545's candidate search, 2026-11-19) | nothing: on request |
104
+ | POVC 2026 (workshop) | ASE 2026 | arXiv 2609.05978v2 (#545) | nothing: on request |
105
+ | LLMSC 2026 (workshop) | FSE 2026 | arXiv 2604.27789v1 (#545) | on request; its parent edition, FSE 2026, has no preset (FSE 2027 ships) |
106
+ | FSE 2026, its tracks on sigconf (Ideas, Visions and Reflections; Industry) | — | arXiv 2603.28166v2, 2604.06448v2 and three more (#545) | the track's class is still to be confirmed from its call |
107
+ | ACM ASIA CCS 2026 | — | arXiv 2601.12634v1, `acmart` sigconf (#545) | nothing: on request |
108
+ | ISSTA 2026 | — | the arXiv comment searches of 2026-11-19, not probed (#545) | nothing: on request |
109
+ | ICLR 2027 | — | measured from its call and author kit | statements its call keeps out of the page limit stand before the references and count as body (`body_ends_before`, #544) |
110
+ | IJCAI 2027 | — | measured from its call and author kit | the same as ICLR (#544) |
111
+ | NeurIPS 2026, its Evaluations & Datasets and Position Paper tracks | — | the 2026 call page, beside the main track (`neurips-2026.md`) | their own calls, not read: on request |
112
+ | NeurIPS 2026 workshops: «Who Verifies the Agents?», Interp4Discovery, TAE (Trust-AI-Eval) | NeurIPS 2026 | `fixtures/arxiv-papers/2611.08666v1`, `2611.09818v1`, `2611.09147v1` | on request; they load NeurIPS's style file, whose kit has workshop options (`dblblindworkshop`, `sglblindworkshop`) |
113
+ | ICML 2027, its position paper track | — | the ICML 2027 call (`icml-2027.md`) | its call is not published |
114
+ | AAAI-27, its AI Alignment track | — | the AAAI-27 call (`aaai-2027.md`) | on request: the main track's page limit, its own dates |
81
115
 
82
116
  ### Notable venues not covered
83
117
 
84
- USENIX Security and NDSS (security); ISSTA, OOPSLA and PLDI (software and programming languages);
118
+ USENIX Security and NDSS (security); OOPSLA and PLDI (software and programming languages);
85
119
  ACL, NAACL and EACL main conferences (NLP); KDD and The Web Conference (data); CHI, CSCW and UIST
86
120
  (HCI); OSDI and SOSP (systems); Springer LNCS venues.
87
121
 
@@ -94,6 +128,11 @@ own, `venues/<series>-<year>.jsonc`, that extends a family (`paperlint:ieee-conf
94
128
  conference edition (`paperlint:icse-2027`), and points the paper's `"extends"` at it
95
129
  ([`rules.md`](rules.md#writing-your-own-venue-preset)).
96
130
 
131
+ How long one workshop takes is not in the history: no past addition is one workshop alone. AGENT,
132
+ AGENTVERIFY and NLBSE came in one commit (#305, the branch's first commit at 2026-10-26 22:32 UTC,
133
+ merged 2026-10-27 09:35 UTC, the wait for review included), AIDC with the IEEE family and three rules
134
+ (#130), and the work before a first commit is not recorded; the repository is squash-merged.
135
+
97
136
  ## The corpus of accepted papers
98
137
 
99
138
  `<papers-root>` is the papers directory: `papersDir` in the project's `paperlint.json`, default
@@ -5,7 +5,11 @@
5
5
  */
6
6
  import assert from "node:assert/strict";
7
7
  import { test } from "vitest";
8
- import { texLanguage, texToMdast } from "./latex-language.ts";
8
+ import {
9
+ preambleDirectives,
10
+ texLanguage,
11
+ texToMdast,
12
+ } from "./latex-language.ts";
9
13
 
10
14
  /** The projection plus each node's type, lang/title and start–end offsets. */
11
15
  const project = (src) => {
@@ -216,3 +220,62 @@ test("🔴 a heading written over several lines keeps every newline, so the proj
216
220
  );
217
221
  assert.equal(text.split("\n")[3], "Text.");
218
222
  });
223
+
224
+ test("🔴 a disable directive in the preamble is one the source code gives ESLint; other preamble comments are not", () => {
225
+ const body = [
226
+ "% a note, not a directive",
227
+ "\\usepackage{x} % eslint-disable-line format/layout-override -- allowed",
228
+ "% eslint-disable-next-line tex/template -- the chair allowed it",
229
+ "\\documentclass{article}",
230
+ "\\begin{document}",
231
+ "% eslint-disable-next-line tex/heading-case -- the body's own",
232
+ "\\section{a}",
233
+ "\\end{document}",
234
+ ].join("\n");
235
+ const parsed = texLanguage.parse({ body });
236
+ const code = texLanguage.createSourceCode({ body }, parsed);
237
+ assert.deepEqual(
238
+ code
239
+ .getDisableDirectives()
240
+ .directives.map((d) => [d.type, d.value, d.node.position.start.line]),
241
+ [
242
+ ["disable-line", "format/layout-override", 2],
243
+ ["disable-next-line", "tex/template", 3],
244
+ ["disable-next-line", "tex/heading-case", 6],
245
+ ],
246
+ );
247
+ // Each spans its `%` to the end of its line, in source order among the projection's nodes.
248
+ assert.deepEqual(
249
+ parsed.ast.children
250
+ .filter((c) => c.type === "html")
251
+ .map((c) => [
252
+ c.position.start.line,
253
+ c.position.start.column,
254
+ c.position.end.column,
255
+ ]),
256
+ [
257
+ [2, 16, 71],
258
+ [3, 1, 64],
259
+ [6, 1, 62],
260
+ ],
261
+ );
262
+ });
263
+
264
+ test("a source with no document environment is all body: its directive is read once, not twice", () => {
265
+ const body =
266
+ "% eslint-disable-next-line tex/template -- x\n\\documentclass{a}\n";
267
+ const parsed = texLanguage.parse({ body });
268
+ const code = texLanguage.createSourceCode({ body }, parsed);
269
+ assert.deepEqual(
270
+ code.getDisableDirectives().directives.map((d) => d.value),
271
+ ["tex/template"],
272
+ );
273
+ });
274
+
275
+ test("preambleDirectives: a comment the parser gave no position is skipped", () => {
276
+ const tree = {
277
+ content: [{ type: "comment", content: " eslint-disable tex/template" }],
278
+ };
279
+ const src = "\\begin{document}\\end{document}";
280
+ assert.deepEqual(preambleDirectives(tree, src), []);
281
+ });
@@ -695,6 +695,40 @@ const DIRECTIVES: ReadonlyMap<string, DirectiveType> = new Map([
695
695
  ["eslint-disable-line", "disable-line"],
696
696
  ]);
697
697
 
698
+ /** Where an offset of `src` stands, as the projection's `loc` counts it. */
699
+ const pointAt = (src: string, offset: number): Point => ({
700
+ offset,
701
+ line: src.slice(0, offset).split("\n").length,
702
+ column: offset - src.lastIndexOf("\n", offset - 1),
703
+ });
704
+
705
+ /**
706
+ * 🔴 The disable directives of the preamble, as the `html` nodes ESLint reads directives from. The
707
+ * projection blanks the preamble and makes no node of anything in it, so a directive there was not
708
+ * seen — measured 2026-11-19: `% eslint-disable-next-line tex/template -- …` above the class line
709
+ * left the finding standing. The rules that report in the preamble (`tex/template` at the
710
+ * `\documentclass`, `format/layout-override` at a `\usepackage{geometry}`) need it. Only
711
+ * directives: nothing else in the preamble is a note a rule reads. A comment node may start at the
712
+ * newline before its `%` and end with the newline after it; the span is the `%` to the line's end.
713
+ */
714
+ export function preambleDirectives(
715
+ tree: TexRoot,
716
+ src: string,
717
+ ): readonly MdNode[] {
718
+ const beginDoc = src.indexOf("\\begin{document}");
719
+ const preEnd = beginDoc > 0 ? beginDoc + "\\begin{document}".length : 0;
720
+ return tree.content.flatMap((n) => {
721
+ const pos = n.position;
722
+ if (n.type !== "comment" || !pos || pos.start.offset >= preEnd) return [];
723
+ if (!directiveStart.test(n.content)) return [];
724
+ const text = src.slice(pos.start.offset, pos.end.offset);
725
+ const start = pos.start.offset + text.indexOf("%");
726
+ const end = pos.start.offset + text.trimEnd().length;
727
+ const position = { start: pointAt(src, start), end: pointAt(src, end) };
728
+ return [{ type: "html" as const, value: n.content, position }];
729
+ });
730
+ }
731
+
698
732
  class TexSourceCode extends TextSourceCodeBase<{
699
733
  LangOptions: LanguageOptions;
700
734
  RootNode: MdNode;
@@ -794,8 +828,16 @@ export const texLanguage: Language<{
794
828
  parse(file: File): ParseResult<MdNode> {
795
829
  try {
796
830
  const raw = String(file.body);
797
- const { root, text } = texToMdast(raw);
798
- return { ok: true, ast: root, projected: text, raw };
831
+ // One parse, read twice: by the projection, and for the preamble's directives.
832
+ const tree: TexRoot = getParser().parse(raw);
833
+ const { root, text } = texToMdast(raw, { parse: () => tree });
834
+ // In source order, as the projection keeps its own nodes.
835
+ const children = [
836
+ ...root.children,
837
+ ...preambleDirectives(tree, raw),
838
+ ].toSorted((a, b) => a.position.start.offset - b.position.start.offset);
839
+ const ast = { ...root, children };
840
+ return { ok: true, ast, projected: text, raw };
799
841
  } catch (ex) {
800
842
  // What the parser throws is an Error: its own syntax error, or the stack exhausted. ESLint
801
843
  // prints a parse failure at its `line` and `column`, and a failure of the whole parse has
package/eslint.config.mjs CHANGED
@@ -604,6 +604,7 @@ export default [
604
604
  // Other people's papers (fixtures/arxiv-papers/README.md): judged by the real-papers test against a
605
605
  // baseline, not by this repository's own lint.
606
606
  "fixtures/arxiv-papers/",
607
+ "fixtures/venue-papers/",
607
608
  "docs/prior-art/repro/",
608
609
  "dist/",
609
610
  "skills/*/scripts/*.js",
@@ -0,0 +1,3 @@
1
+ # Fixture
2
+
3
+ Stage: draft
@@ -0,0 +1,20 @@
1
+ {
2
+ "$comment": "A paper in NeurIPS 2026's author-kit template, \\documentclass{article} with the kit's neurips_2026.sty beside it, that meets every number of paperlint:neurips over the neurips-style family: one column on a letter page, Times (NimbusRomNo9L) at 10 pt, references in \\small, 7 content pages, then the references, an appendix and the paper checklist. Its twins: neurips-over (too many content pages) and neurips-nostyle (no style file).",
3
+ "needs": [
4
+ {
5
+ "file": "neurips_2026.sty",
6
+ "from": "https://media.neurips.cc/Conferences/NeurIPS2026/Formatting_Instructions_For_NeurIPS_2026.zip"
7
+ }
8
+ ],
9
+ "build": {
10
+ "outcome": "pdf",
11
+ "pages": 10
12
+ },
13
+ "fonts": {
14
+ "all": "^(NimbusRomNo9L|NimbusSanL|SFTT)",
15
+ "none": "^(CMR|CMBX|CMTI|SFRM|SFBX|LMRoman)"
16
+ },
17
+ "lint": {
18
+ "findings": []
19
+ }
20
+ }