paperlint 20.10.0 → 20.10.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paperlint",
3
- "version": "20.10.0",
3
+ "version": "20.10.1",
4
4
  "description": "Skills and hooks for writing a research paper with paperlint",
5
5
  "skills": "./skills/",
6
6
  "hooks": "./plugin/hooks/hooks.json"
package/docs/venues.md CHANGED
@@ -28,7 +28,7 @@ here and that every `paperlint:` id below exists.
28
28
  | `paperlint:acm-sigconf` | ACM `acmart`, sigconf (two columns) |
29
29
  | `paperlint:acm-acmsmall` | ACM `acmart`, acmsmall (one column) |
30
30
  | `paperlint:ieee-conference` | IEEE `IEEEtran`, conference |
31
- | `paperlint:acl-latex` | ACL's style files (`article`, `acl.sty`) |
31
+ | `paperlint:acl-latex` | `article` + `\usepackage{acl}` |
32
32
  | `paperlint:neurips-style` | `article` + `\usepackage{neurips_2026}` |
33
33
  | `paperlint:icml-style` | `article` + `\usepackage{icml2027}` |
34
34
  | `paperlint:aaai-press` | `article` + `\usepackage[submission]{aaai2027}` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paperlint",
3
- "version": "20.10.0",
3
+ "version": "20.10.1",
4
4
  "description": "A linter for scientific papers written in LaTeX: catches mistakes before you submit to a conference or journal.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -15,6 +15,12 @@
15
15
  // So the class `tex/template` compares against is article, at 11pt.
16
16
  "template": "\\documentclass[11pt]{article}",
17
17
 
18
+ // The style the template loads into that class, so plain article without it does not pass
19
+ // tex/template. No option: `acl_latex.tex` loads `\usepackage[review]{acl}` for review and says
20
+ // «For the final version, omit the review option: \usepackage{acl}» (with «preprint» a third
21
+ // form; checked 2026-11-26), so an option named here would fail every camera-ready (#556).
22
+ "template_style": "\\usepackage{acl}",
23
+
18
24
  // TeX Live packages the ACL template needs ON TOP OF tex-base.jsonc (the shape is
19
25
  // venue-profile.schema.json). acl.sty itself travels with the paper; these are what it loads.
20
26
  // times · helvetic · courier · symbol · zapfding — without them "Font ptmr8t not loadable" and
@@ -15,6 +15,10 @@ conferences (ACL, EMNLP, NAACL, EACL) and their workshops.
15
15
  - **The class**: `\documentclass[11pt]{article}`. ACL's template is not a class: `acl_latex.tex`
16
16
  opens with that line and loads `acl.sty` as a package, so `tex/template` compares the paper's
17
17
  class line against `article` at 11pt.
18
+ - **The style**: `\usepackage{acl}`, with no option. `tex/template` requires the paper to load
19
+ `acl.sty`, so plain `article` without it fails. The kit loads `[review]` for review and drops it
20
+ for the final version (`[preprint]` is a third form), so any of them passes; of the 12 ACL papers
21
+ in the test corpus, 10 load `[final]`, 1 `[review]` and 1 none (measured 2026-11-26).
18
22
  - **TeX packages** on top of the base set: lineno, and the Times, Helvetica, Courier, Symbol and
19
23
  Zapf Dingbats fonts `acl.sty` loads (`psnfss`, `times`, `helvetic`, `courier`, `symbol`,
20
24
  `zapfding`); without them the build stops at «Font ptmr8t not loadable».
@@ -90,7 +90,7 @@ const legacyCeilings = {
90
90
  "src/talk-rules.test.ts": 427,
91
91
  "src/talk-rules.ts": 562,
92
92
  "src/tex-requirements.ts": 454,
93
- "src/tex-venue-rules.test.ts": 2067,
93
+ "src/tex-venue-rules.test.ts": 2065,
94
94
  "src/tex-venue-rules.ts": 615,
95
95
  "src/toolchain-mirror.test.mjs": 631,
96
96
  "src/toolchain.ts": 605,
@@ -113,7 +113,7 @@ it("1. the shipped data: at least one acmart venue is shipped (else the next che
113
113
  // dictionaries diverged. Since the ACM venues extend the `acm-sigconf` family, only the family
114
114
  // declares the template's packages, so this holds by construction; the check stays for any two
115
115
  // standalone presets that name the same template. A template is its class AND the style it loads
116
- // (`template_style`): NeurIPS's `article` + `neurips_2026` is not REALM's bare `article`.
116
+ // (`template_style`): NeurIPS's `article` + `neurips_2026` is not ACL's `article` + `acl`.
117
117
  const styleOf = (v: string): string =>
118
118
  parseTemplateStyle(presetOf(v).templateStyle ?? "")?.name ?? "";
119
119
  const templateKey = (v: string): string =>
@@ -123,13 +123,13 @@ for (const v of venues.filter((x) => presetOf(x).extends === null)) {
123
123
  const t = templateKey(v);
124
124
  byTemplate.set(t, [...(byTemplate.get(t) ?? []), v]);
125
125
  }
126
- // Guards: the key tells a style family from a bare class — else every article-based style would be
127
- // held to REALM's list.
128
- it("1. the shipped data: neurips-style and acl-latex are two templates: article + neurips_2026, article + no style", () => {
126
+ // Guards: the key tells one style family from another on the same class — else every article-based
127
+ // style would be held to ACL's list.
128
+ it("1. the shipped data: neurips-style and acl-latex are two templates: article + neurips_2026, article + acl", () => {
129
129
  check(
130
- "neurips-style and acl-latex are two templates: article + neurips_2026, article + no style",
130
+ "neurips-style and acl-latex are two templates: article + neurips_2026, article + acl",
131
131
  templateKey("neurips-style") === "article + neurips_2026" &&
132
- templateKey("acl-latex") === "article + no style",
132
+ templateKey("acl-latex") === "article + acl",
133
133
  `${templateKey("neurips-style")} · ${templateKey("acl-latex")}`,
134
134
  );
135
135
  for (const [t, vs] of byTemplate)
@@ -505,15 +505,6 @@ describe("tex/template — the shipped ACM and ACL templates", () => {
505
505
  ])
506
506
  expect(lint(paper(cls), FSE)).toEqual([]);
507
507
  });
508
-
509
- it("an ACL paper — article at 11pt, acl.sty as a package — passes realm", () => {
510
- expect(
511
- lint(paper("\\documentclass[11pt]{article}\n\\usepackage[review]{acl}"), {
512
- extends: "paperlint:realm-2026",
513
- kind: "long",
514
- }),
515
- ).toEqual([]);
516
- });
517
508
  });
518
509
 
519
510
  const PORTING = {
@@ -1562,16 +1553,22 @@ describe("tex/template — a style file the template loads (`template_style`): w
1562
1553
  expect(lint(tex, NEURIPS, { extra })).toEqual([]);
1563
1554
  });
1564
1555
 
1565
- it("silent for a preset that names no style: REALM's article takes any package", () => {
1556
+ it("silent for a preset that names no style: a project's own article takes any package", () => {
1557
+ const own = `${PAPER}/own.jsonc`;
1566
1558
  expect(
1567
1559
  lint(
1568
1560
  paper(
1569
1561
  "\\documentclass[11pt]{article}\n\\usepackage{neurips_2026}",
1570
1562
  "Text.",
1571
1563
  ),
1564
+ { extends: "./own.jsonc" },
1572
1565
  {
1573
- extends: "paperlint:realm",
1574
- kind: "long",
1566
+ extra: {
1567
+ [own]: JSON.stringify({
1568
+ type: "family",
1569
+ template: "\\documentclass[11pt]{article}",
1570
+ }),
1571
+ },
1575
1572
  },
1576
1573
  ),
1577
1574
  ).toEqual([]);