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.
- package/README.md +2 -2
- package/dist/adapters/latex/document-class.d.ts +28 -5
- package/dist/adapters/latex/document-class.d.ts.map +1 -1
- package/dist/adapters/latex/document-class.js +208 -21
- package/dist/adapters/latex/document-class.js.map +1 -1
- package/dist/adapters/latex/index.d.ts +4 -4
- package/dist/adapters/latex/index.d.ts.map +1 -1
- package/dist/adapters/latex/index.js +5 -2
- package/dist/adapters/latex/index.js.map +1 -1
- package/dist/adapters/latex/parse.d.ts.map +1 -1
- package/dist/adapters/latex/parse.js +5 -0
- package/dist/adapters/latex/parse.js.map +1 -1
- package/dist/adapters/latex/prose.d.ts.map +1 -1
- package/dist/adapters/latex/prose.js +20 -4
- package/dist/adapters/latex/prose.js.map +1 -1
- package/dist/domain/body-pages.d.ts.map +1 -1
- package/dist/domain/body-pages.js +4 -2
- package/dist/domain/body-pages.js.map +1 -1
- package/dist/domain/tex-document.d.ts +52 -4
- package/dist/domain/tex-document.d.ts.map +1 -1
- package/dist/domain/tex-document.js +9 -0
- package/dist/domain/tex-document.js.map +1 -1
- package/dist/eslint-rules/latex-language.d.ts +10 -0
- package/dist/eslint-rules/latex-language.d.ts.map +1 -1
- package/dist/eslint-rules/latex-language.js +41 -2
- package/dist/eslint-rules/latex-language.js.map +1 -1
- package/dist/ports/latex.d.ts +13 -1
- package/dist/ports/latex.d.ts.map +1 -1
- package/dist/presets.d.ts +15 -0
- package/dist/presets.d.ts.map +1 -1
- package/dist/presets.js +9 -0
- package/dist/presets.js.map +1 -1
- package/dist/tex-requirements.d.ts +2 -0
- package/dist/tex-requirements.d.ts.map +1 -1
- package/dist/tex-requirements.js +7 -2
- package/dist/tex-requirements.js.map +1 -1
- package/dist/tex-venue-rules.d.ts +36 -3
- package/dist/tex-venue-rules.d.ts.map +1 -1
- package/dist/tex-venue-rules.js +181 -33
- package/dist/tex-venue-rules.js.map +1 -1
- package/docs/rules/cycle/port-done.md +3 -0
- package/docs/rules/tex/negated-sentences.md +1 -1
- package/docs/rules/tex/template.md +96 -1
- package/docs/rules.md +19 -14
- package/docs/venues.md +51 -12
- package/eslint-rules/latex-language.test.mjs +64 -1
- package/eslint-rules/latex-language.ts +44 -2
- package/eslint.config.mjs +1 -0
- package/fixtures/build-e2e/neurips/PIPELINE-STATUS.md +3 -0
- package/fixtures/build-e2e/neurips/expect.json +20 -0
- package/fixtures/build-e2e/neurips/paper.tex +60 -0
- package/fixtures/build-e2e/neurips/paperlint.json +1 -0
- package/fixtures/build-e2e/neurips-nostyle/PIPELINE-STATUS.md +3 -0
- package/fixtures/build-e2e/neurips-nostyle/expect.json +26 -0
- package/fixtures/build-e2e/neurips-nostyle/paper.tex +56 -0
- package/fixtures/build-e2e/neurips-nostyle/paperlint.json +1 -0
- package/fixtures/build-e2e/neurips-over/PIPELINE-STATUS.md +3 -0
- package/fixtures/build-e2e/neurips-over/expect.json +24 -0
- package/fixtures/build-e2e/neurips-over/paper.tex +56 -0
- package/fixtures/build-e2e/neurips-over/paperlint.json +1 -0
- package/fixtures/real-papers.test.ts +17 -6
- package/package.json +3 -1
- package/presets/aaai-2027.jsonc +126 -0
- package/presets/aaai-2027.md +127 -0
- package/presets/aaai-press.jsonc +167 -0
- package/presets/aaai-press.md +126 -0
- package/presets/aidc-2026.jsonc +11 -11
- package/presets/icml-2027.jsonc +111 -0
- package/presets/icml-2027.md +130 -0
- package/presets/icml-style.jsonc +125 -0
- package/presets/icml-style.md +77 -0
- package/presets/neurips-2026.jsonc +123 -0
- package/presets/neurips-2026.md +137 -0
- package/presets/neurips-style.jsonc +113 -0
- package/presets/neurips-style.md +85 -0
- package/presets/venue-profile.schema.json +6 -0
- package/skills/build-label-page/scripts/label-page-browser.test.ts +275 -114
- package/src/adapters/latex/document-class.ts +292 -20
- package/src/adapters/latex/index.test.ts +310 -0
- package/src/adapters/latex/index.ts +12 -3
- package/src/adapters/latex/parse.ts +5 -0
- package/src/adapters/latex/prose.ts +27 -4
- package/src/cli.test.ts +6 -1
- package/src/domain/body-pages.test.ts +22 -6
- package/src/domain/body-pages.ts +4 -2
- package/src/domain/tex-document.ts +64 -5
- package/src/folder-venue-rule.test.ts +51 -0
- package/src/new-paper.test.ts +2 -2
- package/src/paper-settings-commands.test.ts +1 -1
- package/src/ports/latex.ts +14 -0
- package/src/preset-card-rule.test.ts +44 -27
- package/src/presets.test.ts +177 -1
- package/src/presets.ts +27 -0
- package/src/register-bands.test.ts +2 -2
- package/src/rule-cases.test.ts +52 -0
- package/src/tex-requirements.harness.ts +17 -3
- package/src/tex-requirements.ts +13 -2
- package/src/tex-venue-rules.test.ts +1020 -0
- package/src/tex-venue-rules.ts +248 -38
- package/src/venue-rules.test.ts +369 -2
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "NeurIPS style — template family card"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# NeurIPS style (`neurips_2026.sty`)
|
|
6
|
+
|
|
7
|
+
The card of the template family `paperlint:neurips-style` ([`neurips-style.jsonc`](neurips-style.jsonc)).
|
|
8
|
+
A family is what a template decides, whatever the venue: it names no venue and has no call for
|
|
9
|
+
papers. A venue preset extends it and adds what its own call sets. The main track's 2026 edition
|
|
10
|
+
is [`neurips-2026`](neurips-2026.md); a NeurIPS workshop on the same style file may extend this
|
|
11
|
+
family.
|
|
12
|
+
|
|
13
|
+
## The template is a style file, not a class
|
|
14
|
+
|
|
15
|
+
NeurIPS's author kit
|
|
16
|
+
([Formatting_Instructions_For_NeurIPS_2026.zip](https://media.neurips.cc/Conferences/NeurIPS2026/Formatting_Instructions_For_NeurIPS_2026.zip),
|
|
17
|
+
read 2026-11-19) holds `neurips_2026.tex`, `neurips_2026.sty` and `checklist.tex`. A paper is
|
|
18
|
+
`\documentclass{article}` with `\usepackage{neurips_2026}`, and the author copies the style file
|
|
19
|
+
beside `paper.tex`: it is on no TeX distribution. `paperlint build` finds it there (the paper's
|
|
20
|
+
directory is on `TEXINPUTS`) and records its sha256 in `_build/sources.json`.
|
|
21
|
+
|
|
22
|
+
The style's options pick the track and the stage: none for the anonymous submission (line numbers,
|
|
23
|
+
«Anonymous Author(s)»), `final` for the camera-ready, `preprint` for arXiv, `main`, `position`,
|
|
24
|
+
`eandd`, `creativeai`, `education`, `sglblindworkshop`, `dblblindworkshop`, and `nonatbib`.
|
|
25
|
+
|
|
26
|
+
## What the family encodes
|
|
27
|
+
|
|
28
|
+
- **The template**: `\documentclass{article}` with `\usepackage{neurips_2026}` (`template` and
|
|
29
|
+
`template_style`). `tex/template` requires both, in the source, before any build: the class, the
|
|
30
|
+
style loaded (options of the paper's own allowed), and it names another year's NeurIPS style
|
|
31
|
+
(`neurips_2025`) or another shipped venue's style loaded instead. `format/layout-override` reports
|
|
32
|
+
a `\newgeometry` or a margin option in the paper, and `cycle/port-done` judges the class and the
|
|
33
|
+
style together.
|
|
34
|
+
- **The page**: US letter, 8.5 × 11 in («Please prepare submission files with paper size "US
|
|
35
|
+
Letter," and not, for example, "A4."»); a text block of 5.5 × 9 in (`\textwidth` 397.485 pt,
|
|
36
|
+
`\textheight` 650.43 pt); one column.
|
|
37
|
+
- **The fonts**: Times (the URW clone, NimbusRomNo9L) for the text and the headings, Helvetica
|
|
38
|
+
(NimbusSanL) for sans-serif; the body at 10 pt on 11 pt leading. The references at 9 to 10 pt: «It
|
|
39
|
+
is permissible to reduce the font size to small (9 point) when listing the references.» banal
|
|
40
|
+
measures 0.3 pt high (10.3, 9.3), hence the 0.5 pt tolerance.
|
|
41
|
+
- **TeX packages** on top of the base set: environ and lineno, which the style loads; psnfss, times
|
|
42
|
+
and helvetic for its fonts; units, for the `nicefrac` the kit's template loads.
|
|
43
|
+
|
|
44
|
+
## What the family does not check
|
|
45
|
+
|
|
46
|
+
- **A changed style file.** The check reads the name of the package the paper loads, not the file:
|
|
47
|
+
a `neurips_2026.sty` edited, or another file saved under that name, passes it. The build sees the
|
|
48
|
+
file's fonts (the 1990s «NIPS Macros» below), not its margins; `_build/sources.json` records the
|
|
49
|
+
file's sha256, which no rule compares yet.
|
|
50
|
+
- **The text block on the PDF.** No `pdf/*` rule reads it; a layout change the source does not show
|
|
51
|
+
(a macro of the style redefined) is not seen.
|
|
52
|
+
- **Getting the style file.** It is on no TeX distribution, and `paperlint new --venue` writes the
|
|
53
|
+
class line only: copy `neurips_2026.sty` from the kit beside `paper.tex`, and `\usepackage` it.
|
|
54
|
+
|
|
55
|
+
## How the numbers were measured
|
|
56
|
+
|
|
57
|
+
On 2026-11-19, `paperlint build` with paperlint's TeX Live 2026 and banal, on the kit's own
|
|
58
|
+
`neurips_2026.tex` and on the e2e fixture `fixtures/build-e2e/neurips`; the style's dimensions were
|
|
59
|
+
written to the log by a `\typeout` at `\begin{document}`. Every file the kit's build read belongs to
|
|
60
|
+
TeX Live's scheme-basic, the base set, this family's list, or a dependency of one.
|
|
61
|
+
|
|
62
|
+
| build | what paperlint reported |
|
|
63
|
+
| -------------------------------------------------------------- | ----------------------------------------------------------- |
|
|
64
|
+
| the kit's style, no option | 8.5 × 11 in, 1 column, body 10.3, NimbusRomNo9L: no finding |
|
|
65
|
+
| references in `\small` / at the body size / in `\footnotesize` | 9.3 / not measured by banal / 8.3, `pdf/body-size` |
|
|
66
|
+
| no `\usepackage{neurips_2026}` | `tex/template`; cm-super (SFRM1000, …): `pdf/fonts` |
|
|
67
|
+
| the 1990s «NIPS Macros» saved as `neurips_2026.sty` | cm-super: `pdf/fonts` |
|
|
68
|
+
| `\newgeometry{textwidth=6.5in,textheight=9.5in,top=0.75in}` | `format/layout-override`; the PDF: same page, fonts, sizes |
|
|
69
|
+
|
|
70
|
+
The «NIPS Macros» case is real: one preprint in `fixtures/arxiv-papers` ships that file under the
|
|
71
|
+
name `neurips_2026.sty`. Of the 16 NeurIPS-style preprints there, 7 carry the kit's file byte for
|
|
72
|
+
byte and 6 an earlier one with the same version line (2026-01-29) and no `education` option.
|
|
73
|
+
|
|
74
|
+
## What the family resolves to
|
|
75
|
+
|
|
76
|
+
<!-- paperlint:preset-rules -->
|
|
77
|
+
<!-- prettier-ignore-start -->
|
|
78
|
+
<!-- Generated from neurips-style.jsonc by `npx eslint --fix` (rule preset/card-rules). Edit the preset, not this section. -->
|
|
79
|
+
|
|
80
|
+
**`paperlint:neurips-style`** — template family, no venue of its own · extended by `paperlint:neurips-2026`
|
|
81
|
+
|
|
82
|
+
No preset of this chain sets a rule: under it, every rule keeps paperlint's default.
|
|
83
|
+
|
|
84
|
+
<!-- prettier-ignore-end -->
|
|
85
|
+
<!-- /paperlint:preset-rules -->
|
|
@@ -37,6 +37,11 @@
|
|
|
37
37
|
"type": "string",
|
|
38
38
|
"minLength": 1
|
|
39
39
|
},
|
|
40
|
+
"template_style": {
|
|
41
|
+
"description": "The style package the venue's template loads into its class, for a template that is a style file from the venue's author kit and not a class: a whole `\\usepackage[…]{…}` line, the package and the options it requires (`\\usepackage{neurips_2026}`). `tex/template` then requires the paper to load that package with every option named here, and reports another venue's or another year's style loaded instead. A child's value replaces its parent's.",
|
|
42
|
+
"type": "string",
|
|
43
|
+
"minLength": 1
|
|
44
|
+
},
|
|
40
45
|
"template_forbids": {
|
|
41
46
|
"description": "Class options the venue's call forbids in the \\documentclass line (`[\"compsoc\", \"compsocconf\"]`: MSR's «without including the compsoc or compsocconf options»). `tex/template` reports each one a paper's class line carries. Read with the `template` of the same file, and only with it: a child's `template` replaces both.",
|
|
42
47
|
"type": "array",
|
|
@@ -518,6 +523,7 @@
|
|
|
518
523
|
"required": ["type"],
|
|
519
524
|
"dependencies": {
|
|
520
525
|
"template_forbids": ["template"],
|
|
526
|
+
"template_style": ["template"],
|
|
521
527
|
"parent": ["workshop"]
|
|
522
528
|
},
|
|
523
529
|
"allOf": [
|