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
|
@@ -159,6 +159,57 @@ describe("paper/folder-venue-leftover โ a venue is named by its edition", () =
|
|
|
159
159
|
});
|
|
160
160
|
});
|
|
161
161
|
|
|
162
|
+
describe("paper/folder-venue-leftover โ NeurIPS, named by its edition", () => {
|
|
163
|
+
it("๐ด ยซneurips-2026-โฆยป is reported in another venue's paper; ยซneurips-โฆยป without the year is not, nor under neurips-2026", () => {
|
|
164
|
+
expect(
|
|
165
|
+
lint("neurips-2026-diffusion", AIDC).map(
|
|
166
|
+
(r) => /names the venue (.*?), and/u.exec(r.message)?.[1],
|
|
167
|
+
),
|
|
168
|
+
).toEqual(["NeurIPS 2026"]);
|
|
169
|
+
expect(lint("neurips-diffusion", AIDC)).toEqual([]);
|
|
170
|
+
expect(
|
|
171
|
+
lint("neurips-2026-diffusion", {
|
|
172
|
+
extends: "paperlint:neurips-2026",
|
|
173
|
+
kind: "main",
|
|
174
|
+
}),
|
|
175
|
+
).toEqual([]);
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
describe("paper/folder-venue-leftover โ AAAI, named by its edition", () => {
|
|
180
|
+
it("๐ด ยซaaai-2027-โฆยป is reported in another venue's paper; ยซaaai-โฆยป without the year is not, nor under aaai-2027", () => {
|
|
181
|
+
expect(
|
|
182
|
+
lint("aaai-2027-planning", AIDC).map(
|
|
183
|
+
(r) => /names the venue (.*?), and/u.exec(r.message)?.[1],
|
|
184
|
+
),
|
|
185
|
+
).toEqual(["AAAI 2027"]);
|
|
186
|
+
expect(lint("aaai-planning", AIDC)).toEqual([]);
|
|
187
|
+
expect(
|
|
188
|
+
lint("aaai-2027-planning", {
|
|
189
|
+
extends: "paperlint:aaai-2027",
|
|
190
|
+
kind: "main",
|
|
191
|
+
}),
|
|
192
|
+
).toEqual([]);
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
describe("paper/folder-venue-leftover โ ICML, named by its edition", () => {
|
|
197
|
+
it("๐ด ยซicml-2027-โฆยป is reported in another venue's paper; ยซicml-โฆยป without the year is not, nor under icml-2027", () => {
|
|
198
|
+
expect(
|
|
199
|
+
lint("icml-2027-diffusion", AIDC).map(
|
|
200
|
+
(r) => /names the venue (.*?), and/u.exec(r.message)?.[1],
|
|
201
|
+
),
|
|
202
|
+
).toEqual(["ICML 2027"]);
|
|
203
|
+
expect(lint("icml-diffusion", AIDC)).toEqual([]);
|
|
204
|
+
expect(
|
|
205
|
+
lint("icml-2027-diffusion", {
|
|
206
|
+
extends: "paperlint:icml-2027",
|
|
207
|
+
kind: "main",
|
|
208
|
+
}),
|
|
209
|
+
).toEqual([]);
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
|
|
162
213
|
describe("paper/folder-venue-leftover โ a workshop's parent conference", () => {
|
|
163
214
|
it("๐ด in another venue's paper it is reported once, as itself", () => {
|
|
164
215
|
const named = (folder: string) =>
|
package/src/new-paper.test.ts
CHANGED
|
@@ -297,11 +297,11 @@ describe("paperlint new --venue msr", () => {
|
|
|
297
297
|
|
|
298
298
|
describe("paperlint new --venue โ a venue it cannot use", () => {
|
|
299
299
|
it("an unknown venue exits 2, lists the shipped presets, and creates nothing", async () => {
|
|
300
|
-
const r = await newIn(["--venue", "
|
|
300
|
+
const r = await newIn(["--venue", "usenix"]);
|
|
301
301
|
expect(r.code).toBe(2);
|
|
302
302
|
// Guards: the list is read from the shipped presets, the same list lint prints.
|
|
303
303
|
expect(r.err).toContain(shippedPresets(presetsDir()).join(", "));
|
|
304
|
-
expect(r.err).toMatch(/--venue
|
|
304
|
+
expect(r.err).toMatch(/--venue usenix: no such venue preset/);
|
|
305
305
|
expect(existsSync(r.dir)).toBe(false);
|
|
306
306
|
});
|
|
307
307
|
|
|
@@ -302,7 +302,7 @@ describe("paperlint lint โ the paper over its preset, and the project's own pr
|
|
|
302
302
|
const r = await lint(root);
|
|
303
303
|
expect(r.code).toBe(1);
|
|
304
304
|
expect(r.out).toMatch(
|
|
305
|
-
/acl-latex, acm-acmsmall, acm-sigconf, acsac-2026, agent-2027, agenticdev-2026, agentverify-2027, aidc-2026, aisec-2026, ase-2026, ccs-2026, emnlp-2026, fse-2027, icse-2027, icse-2028, ieee-conference, msr-2027, nlbse-2027, realm-2026, sp-2027/,
|
|
305
|
+
/aaai-2027, aaai-press, acl-latex, acm-acmsmall, acm-sigconf, acsac-2026, agent-2027, agenticdev-2026, agentverify-2027, aidc-2026, aisec-2026, ase-2026, ccs-2026, emnlp-2026, fse-2027, icml-2027, icml-style, icse-2027, icse-2028, ieee-conference, msr-2027, neurips-2026, neurips-style, nlbse-2027, realm-2026, sp-2027/,
|
|
306
306
|
);
|
|
307
307
|
});
|
|
308
308
|
});
|
package/src/ports/latex.ts
CHANGED
|
@@ -11,6 +11,8 @@ import type {
|
|
|
11
11
|
Emphasis,
|
|
12
12
|
LayoutOverride,
|
|
13
13
|
Outline,
|
|
14
|
+
PackageLoad,
|
|
15
|
+
StylePackage,
|
|
14
16
|
Passage,
|
|
15
17
|
Place,
|
|
16
18
|
Span,
|
|
@@ -89,6 +91,18 @@ export interface LatexReader {
|
|
|
89
91
|
* class name (no option). Null for anything else.
|
|
90
92
|
*/
|
|
91
93
|
readonly template: (text: string) => DocumentClass | null;
|
|
94
|
+
/** Every package the preamble's `\usepackage` and `\RequirePackage` lines load, in source order. */
|
|
95
|
+
readonly packages: (src: string) => readonly PackageLoad[];
|
|
96
|
+
/**
|
|
97
|
+
* Whether the preamble may load a package `packages` does not see: an unread `\input`, a package
|
|
98
|
+
* line inside a macro, or one whose name a macro builds.
|
|
99
|
+
*/
|
|
100
|
+
readonly packagesUnseen: (src: string) => boolean;
|
|
101
|
+
/**
|
|
102
|
+
* A preset's `template_style` โ the package it names and the options it requires: one whole
|
|
103
|
+
* `\usepackage[โฆ]{โฆ}` line naming one package. Null for anything else.
|
|
104
|
+
*/
|
|
105
|
+
readonly templateStyle: (text: string) => StylePackage | null;
|
|
92
106
|
/**
|
|
93
107
|
* `src` with its `\documentclass` set to `want` โ unless it already is `want`'s class with every
|
|
94
108
|
* option `want` names (the author's own options stay), or it has none.
|
|
@@ -81,37 +81,54 @@ const sectionOf = (text: string): string =>
|
|
|
81
81
|
const STALE =
|
|
82
82
|
"preset/card-rules: the rules section does not match the preset beside this card โ run `npx eslint --fix` on this file to rewrite it from the preset";
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
/**
|
|
85
|
+
* The first test lints every card in presets/, and that grows with each venue. Measured in CI's
|
|
86
|
+
* coverage job with 19 cards: 2.0 s and 3.5 s (run 44507805064, attempts 1 and 2); 1.4 s here with
|
|
87
|
+
* 17. At that rate it passes vitest's 5 s default at about 27 cards; 21 cards took 5.0 s under
|
|
88
|
+
* `npm run test:changed` (2026-11-19), past vitest's default.
|
|
89
|
+
*/
|
|
90
|
+
const ALL_CARDS_MS = 30_000;
|
|
91
|
+
|
|
92
|
+
/** Every card in presets/, by file name: a new preset adds its card here. */
|
|
93
|
+
const SHIPPED_CARDS = [
|
|
94
|
+
"aaai-2027.md",
|
|
95
|
+
"aaai-press.md",
|
|
96
|
+
"acl-latex.md",
|
|
97
|
+
"acm-acmsmall.md",
|
|
98
|
+
"acm-sigconf.md",
|
|
99
|
+
"acsac-2026.md",
|
|
100
|
+
"agent-2027.md",
|
|
101
|
+
"agenticdev-2026.md",
|
|
102
|
+
"agentverify-2027.md",
|
|
103
|
+
"aidc-2026.md",
|
|
104
|
+
"aisec-2026.md",
|
|
105
|
+
"ase-2026.md",
|
|
106
|
+
"ccs-2026.md",
|
|
107
|
+
"emnlp-2026.md",
|
|
108
|
+
"fse-2027.md",
|
|
109
|
+
"icml-2027.md",
|
|
110
|
+
"icml-style.md",
|
|
111
|
+
"icse-2027.md",
|
|
112
|
+
"icse-2028.md",
|
|
113
|
+
"ieee-conference.md",
|
|
114
|
+
"msr-2027.md",
|
|
115
|
+
"neurips-2026.md",
|
|
116
|
+
"neurips-style.md",
|
|
117
|
+
"nlbse-2027.md",
|
|
118
|
+
"realm-2026.md",
|
|
119
|
+
"sp-2027.md",
|
|
120
|
+
"tex-base.md",
|
|
121
|
+
];
|
|
122
|
+
|
|
123
|
+
describe("the shipped cards", { timeout: ALL_CARDS_MS }, () => {
|
|
85
124
|
it("every shipped card holds the section its preset resolves to", async () => {
|
|
86
125
|
const results = await eslint().lintFiles([join(P, "*.md")]);
|
|
87
126
|
// Guards: a glob that matched nothing lints nothing and reports clean.
|
|
88
|
-
expect(results.map((r) => r.filePath.slice(P.length + 1)).sort()).toEqual(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"acm-sigconf.md",
|
|
92
|
-
"acsac-2026.md",
|
|
93
|
-
"agent-2027.md",
|
|
94
|
-
"agenticdev-2026.md",
|
|
95
|
-
"agentverify-2027.md",
|
|
96
|
-
"aidc-2026.md",
|
|
97
|
-
"aisec-2026.md",
|
|
98
|
-
"ase-2026.md",
|
|
99
|
-
"ccs-2026.md",
|
|
100
|
-
"emnlp-2026.md",
|
|
101
|
-
"fse-2027.md",
|
|
102
|
-
"icse-2027.md",
|
|
103
|
-
"icse-2028.md",
|
|
104
|
-
"ieee-conference.md",
|
|
105
|
-
"msr-2027.md",
|
|
106
|
-
"nlbse-2027.md",
|
|
107
|
-
"realm-2026.md",
|
|
108
|
-
"sp-2027.md",
|
|
109
|
-
"tex-base.md",
|
|
110
|
-
]);
|
|
127
|
+
expect(results.map((r) => r.filePath.slice(P.length + 1)).sort()).toEqual(
|
|
128
|
+
SHIPPED_CARDS,
|
|
129
|
+
);
|
|
111
130
|
expect(results.flatMap((r) => r.messages)).toEqual([]);
|
|
112
|
-
|
|
113
|
-
// (2026-11-19), past vitest's default of 5 s.
|
|
114
|
-
}, 20_000);
|
|
131
|
+
});
|
|
115
132
|
|
|
116
133
|
it("agenticdev: its own rules, linked to their page or to the index, and what it extends", async () => {
|
|
117
134
|
const text = readFileSync(join(P, "agenticdev-2026.md"), "utf8");
|
package/src/presets.test.ts
CHANGED
|
@@ -186,6 +186,149 @@ describe("shipped presets: paperlint:fse-2027", () => {
|
|
|
186
186
|
});
|
|
187
187
|
});
|
|
188
188
|
|
|
189
|
+
describe("shipped presets: paperlint:neurips-2026", () => {
|
|
190
|
+
it("paperlint:neurips-2026 โ neurips over neurips-style: article + the style file, the style's page and fonts, two kinds, the checklist, both readings of each deadline", () => {
|
|
191
|
+
const r = resolve("paperlint:neurips-2026");
|
|
192
|
+
expect(r.ok).toBe(true);
|
|
193
|
+
if (!r.ok) return;
|
|
194
|
+
expect(r.value.chain.map((f) => f.split("/").pop())).toEqual([
|
|
195
|
+
"neurips-style.jsonc",
|
|
196
|
+
"neurips-2026.jsonc",
|
|
197
|
+
]);
|
|
198
|
+
// The template is the class AND the style the kit loads into it, both from the family.
|
|
199
|
+
expect(r.value.template).toEqual({
|
|
200
|
+
text: "\\documentclass{article}",
|
|
201
|
+
file: join(VENUES, "neurips-style.jsonc"),
|
|
202
|
+
forbids: [],
|
|
203
|
+
});
|
|
204
|
+
expect(r.value.templateStyle).toEqual({
|
|
205
|
+
text: "\\usepackage{neurips_2026}",
|
|
206
|
+
file: join(VENUES, "neurips-style.jsonc"),
|
|
207
|
+
});
|
|
208
|
+
expect(r.value.format.columns).toBe(1);
|
|
209
|
+
expect(r.value.format.pageWidthIn).toBe(8.5);
|
|
210
|
+
expect(r.value.format.pageHeightIn).toBe(11);
|
|
211
|
+
expect(r.value.format.fontsText).toBe("NimbusRomNo9L");
|
|
212
|
+
expect(r.value.format.fontsTitle).toBeNull();
|
|
213
|
+
// banal's count: the line numbers of the submission defeat the heading `body_ends_at` looks for.
|
|
214
|
+
expect(r.value.format.bodyEndsAt).toBeNull();
|
|
215
|
+
expect([...r.value.format.kinds]).toEqual([
|
|
216
|
+
["main", { pagesMax: null, bodyPagesMax: 9, refPagesMax: null }],
|
|
217
|
+
["camera-ready", { pagesMax: null, bodyPagesMax: 10, refPagesMax: null }],
|
|
218
|
+
]);
|
|
219
|
+
expect(Object.keys(r.value.tex.packages)).toEqual(
|
|
220
|
+
expect.arrayContaining(["environ", "lineno", "times", "helvetic"]),
|
|
221
|
+
);
|
|
222
|
+
expect(r.value.blind).toBe(true);
|
|
223
|
+
expect(r.value.portal).toBeNull();
|
|
224
|
+
expect(r.value.requiredSections).toEqual([
|
|
225
|
+
{ title: "NeurIPS Paper Checklist", position: null },
|
|
226
|
+
]);
|
|
227
|
+
expect(r.value.deadlines.map((d) => [d.what, d.source])).toEqual([
|
|
228
|
+
["registration", "portal"],
|
|
229
|
+
["registration", "call"],
|
|
230
|
+
["submission", "portal"],
|
|
231
|
+
["submission", "call"],
|
|
232
|
+
["notification", "call"],
|
|
233
|
+
["camera-ready", "call"],
|
|
234
|
+
]);
|
|
235
|
+
expect(r.value.label).toBe("NeurIPS");
|
|
236
|
+
expect(r.value.aliases).toEqual(["NeurIPS"]);
|
|
237
|
+
expect(r.value.rules).toEqual({});
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
describe("shipped presets: paperlint:aaai-2027", () => {
|
|
242
|
+
it("paperlint:aaai-2027 โ aaai-2027 over aaai-press: the kit's two lines, letter and two columns in newtxtext, 7 + 2 pages, both readings of each deadline", () => {
|
|
243
|
+
const r = resolve("paperlint:aaai-2027");
|
|
244
|
+
expect(r.ok).toBe(true);
|
|
245
|
+
if (!r.ok) return;
|
|
246
|
+
expect(r.value.chain.map((f) => f.split("/").pop())).toEqual([
|
|
247
|
+
"aaai-press.jsonc",
|
|
248
|
+
"aaai-2027.jsonc",
|
|
249
|
+
]);
|
|
250
|
+
expect(r.value.template?.text).toBe(
|
|
251
|
+
"\\documentclass[letterpaper]{article}",
|
|
252
|
+
);
|
|
253
|
+
expect(r.value.format.columns).toBe(2);
|
|
254
|
+
expect(r.value.format.pageWidthIn).toBe(8.5);
|
|
255
|
+
expect(r.value.format.pageHeightIn).toBe(11);
|
|
256
|
+
expect(r.value.format.bodyPt).toBe(10);
|
|
257
|
+
expect([r.value.format.refPtMin, r.value.format.refPtMax]).toEqual([9, 10]);
|
|
258
|
+
// newtxtext's Times, not the URW Times of the AAAI-26 kit (NimbusRomNo9L).
|
|
259
|
+
expect(r.value.format.fontsText).toBe("TeXGyreTermesX");
|
|
260
|
+
expect(r.value.format.fontsTitle).toBeNull();
|
|
261
|
+
expect(r.value.format.bodyEndsAt).toBeNull();
|
|
262
|
+
expect([...r.value.format.kinds]).toEqual([
|
|
263
|
+
["main", { pagesMax: 9, bodyPagesMax: 7, refPagesMax: 2 }],
|
|
264
|
+
]);
|
|
265
|
+
expect(Object.keys(r.value.tex.packages)).toEqual(
|
|
266
|
+
expect.arrayContaining(["newtx", "kastrup", "tex-gyre", "placeins"]),
|
|
267
|
+
);
|
|
268
|
+
expect(r.value.blind).toBe(true);
|
|
269
|
+
expect(r.value.portal).toBeNull();
|
|
270
|
+
expect(r.value.requiredSections).toEqual([]);
|
|
271
|
+
expect(r.value.deadlines.map((d) => [d.what, d.source, d.at])).toEqual([
|
|
272
|
+
["registration", "call", "2026-07-22T11:59:00Z"],
|
|
273
|
+
["registration", "portal", "2026-07-22T11:59:00Z"],
|
|
274
|
+
["submission", "call", "2026-07-29T11:59:00Z"],
|
|
275
|
+
["submission", "portal", "2026-07-29T11:59:00Z"],
|
|
276
|
+
["camera-ready", "call", "2026-12-15T11:59:59Z"],
|
|
277
|
+
]);
|
|
278
|
+
expect(r.value.label).toBe("AAAI");
|
|
279
|
+
expect(r.value.aliases).toEqual(["AAAI"]);
|
|
280
|
+
expect(r.value.rules).toEqual({});
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
describe("shipped presets: paperlint:icml-2027", () => {
|
|
285
|
+
it("paperlint:icml-2027 โ icml over icml-style: article + the style file, the style's page and fonts, two kinds counted by banal, the Impact Statement, the call's deadlines", () => {
|
|
286
|
+
const r = resolve("paperlint:icml-2027");
|
|
287
|
+
expect(r.ok).toBe(true);
|
|
288
|
+
if (!r.ok) return;
|
|
289
|
+
expect(r.value.chain.map((f) => f.split("/").pop())).toEqual([
|
|
290
|
+
"icml-style.jsonc",
|
|
291
|
+
"icml-2027.jsonc",
|
|
292
|
+
]);
|
|
293
|
+
// The template is the class AND the style the kit loads into it, both from the family.
|
|
294
|
+
expect(r.value.template?.text).toBe("\\documentclass{article}");
|
|
295
|
+
expect(r.value.templateStyle).toEqual({
|
|
296
|
+
text: "\\usepackage{icml2027}",
|
|
297
|
+
file: join(VENUES, "icml-style.jsonc"),
|
|
298
|
+
});
|
|
299
|
+
expect(r.value.format.columns).toBe(2);
|
|
300
|
+
expect(r.value.format.pageWidthIn).toBe(8.5);
|
|
301
|
+
expect(r.value.format.pageHeightIn).toBe(11);
|
|
302
|
+
expect(r.value.format.bodyPt).toBe(10);
|
|
303
|
+
expect([r.value.format.refPtMin, r.value.format.refPtMax]).toEqual([
|
|
304
|
+
10, 10,
|
|
305
|
+
]);
|
|
306
|
+
expect(r.value.format.fontsText).toBe("NimbusRomNo9L");
|
|
307
|
+
expect(r.value.format.fontsTitle).toBeNull();
|
|
308
|
+
// banal's count: ICML's appendix headings (ยซA. โฆยป) defeat the heading `body_ends_at` looks for.
|
|
309
|
+
expect(r.value.format.bodyEndsAt).toBeNull();
|
|
310
|
+
expect([...r.value.format.kinds]).toEqual([
|
|
311
|
+
["main", { pagesMax: null, bodyPagesMax: 8, refPagesMax: null }],
|
|
312
|
+
["camera-ready", { pagesMax: null, bodyPagesMax: 9, refPagesMax: null }],
|
|
313
|
+
]);
|
|
314
|
+
expect(Object.keys(r.value.tex.packages)).toEqual(
|
|
315
|
+
expect.arrayContaining(["eso-pic", "forloop", "times", "courier"]),
|
|
316
|
+
);
|
|
317
|
+
expect(r.value.blind).toBe(true);
|
|
318
|
+
expect(r.value.portal).toBeNull();
|
|
319
|
+
expect(r.value.requiredSections).toEqual([
|
|
320
|
+
{ title: "Impact Statement", position: null },
|
|
321
|
+
]);
|
|
322
|
+
expect(r.value.deadlines.map((d) => [d.what, d.source, d.at])).toEqual([
|
|
323
|
+
["registration", "call", "2027-01-15T11:59:59Z"],
|
|
324
|
+
["submission", "call", "2027-01-23T11:59:59Z"],
|
|
325
|
+
]);
|
|
326
|
+
expect(r.value.label).toBe("ICML");
|
|
327
|
+
expect(r.value.aliases).toEqual(["ICML"]);
|
|
328
|
+
expect(r.value.rules).toEqual({});
|
|
329
|
+
});
|
|
330
|
+
});
|
|
331
|
+
|
|
189
332
|
describe("shipped presets: a family, and a venue that stands alone", () => {
|
|
190
333
|
it("a paper may extend a family directly: format and fonts, and no kinds", () => {
|
|
191
334
|
const r = resolve("paperlint:acm-sigconf");
|
|
@@ -229,6 +372,12 @@ const FAMILIES = PARSED.filter((p) =>
|
|
|
229
372
|
|
|
230
373
|
// What each shipped preset declares itself to be; a new preset adds its row here.
|
|
231
374
|
const DECLARED = {
|
|
375
|
+
"aaai-press.jsonc": { type: "family" },
|
|
376
|
+
"aaai-2027.jsonc": {
|
|
377
|
+
type: "venue",
|
|
378
|
+
name: "AAAI",
|
|
379
|
+
url: "https://aaai.org/conference/aaai/aaai-27/main-technical-track-call/",
|
|
380
|
+
},
|
|
232
381
|
"acl-latex.jsonc": { type: "family" },
|
|
233
382
|
"acm-acmsmall.jsonc": { type: "family" },
|
|
234
383
|
"acm-sigconf.jsonc": { type: "family" },
|
|
@@ -282,6 +431,12 @@ const DECLARED = {
|
|
|
282
431
|
name: "FSE",
|
|
283
432
|
url: "https://conf.researchr.org/track/fse-2027/fse-2027-papers",
|
|
284
433
|
},
|
|
434
|
+
"icml-style.jsonc": { type: "family" },
|
|
435
|
+
"icml-2027.jsonc": {
|
|
436
|
+
type: "venue",
|
|
437
|
+
name: "ICML",
|
|
438
|
+
url: "https://icml.cc/Conferences/2027/CallForPapers",
|
|
439
|
+
},
|
|
285
440
|
"icse-2027.jsonc": {
|
|
286
441
|
type: "venue",
|
|
287
442
|
name: "ICSE",
|
|
@@ -298,6 +453,12 @@ const DECLARED = {
|
|
|
298
453
|
name: "MSR",
|
|
299
454
|
url: "https://2027.msrconf.org/track/msr-2027-technical-papers",
|
|
300
455
|
},
|
|
456
|
+
"neurips-style.jsonc": { type: "family" },
|
|
457
|
+
"neurips-2026.jsonc": {
|
|
458
|
+
type: "venue",
|
|
459
|
+
name: "NeurIPS",
|
|
460
|
+
url: "https://neurips.cc/Conferences/2026/CallForPapers",
|
|
461
|
+
},
|
|
301
462
|
"nlbse-2027.jsonc": {
|
|
302
463
|
type: "venue",
|
|
303
464
|
name: "NLBSE",
|
|
@@ -349,10 +510,13 @@ describe("the naming convention of shipped presets (docs/rules.md)", () => {
|
|
|
349
510
|
|
|
350
511
|
it("there are families to check (else the checks below see nothing)", () => {
|
|
351
512
|
expect(families.map((f) => f.name).sort()).toEqual([
|
|
513
|
+
"aaai-press",
|
|
352
514
|
"acl-latex",
|
|
353
515
|
"acm-acmsmall",
|
|
354
516
|
"acm-sigconf",
|
|
517
|
+
"icml-style",
|
|
355
518
|
"ieee-conference",
|
|
519
|
+
"neurips-style",
|
|
356
520
|
]);
|
|
357
521
|
});
|
|
358
522
|
|
|
@@ -580,7 +744,7 @@ describe("what does not resolve, and says why", () => {
|
|
|
580
744
|
"a shipped name with a typo",
|
|
581
745
|
"paperlint:agenticdve",
|
|
582
746
|
"not-found",
|
|
583
|
-
/acl-latex, acm-acmsmall, acm-sigconf, acsac-2026, agent-2027, agenticdev-2026, agentverify-2027, aidc-2026, aisec-2026, ase-2026, ccs-2026, emnlp-2026, fse-2027, icse-2027, icse-2028, ieee-conference, msr-2027, nlbse-2027, realm-2026, sp-2027/,
|
|
747
|
+
/aaai-2027, aaai-press, acl-latex, acm-acmsmall, acm-sigconf, acsac-2026, agent-2027, agenticdev-2026, agentverify-2027, aidc-2026, aisec-2026, ase-2026, ccs-2026, emnlp-2026, fse-2027, icml-2027, icml-style, icse-2027, icse-2028, ieee-conference, msr-2027, neurips-2026, neurips-style, nlbse-2027, realm-2026, sp-2027/,
|
|
584
748
|
],
|
|
585
749
|
["the base TeX set", "paperlint:tex-base", "not-found", /agenticdev/],
|
|
586
750
|
[
|
|
@@ -876,6 +1040,8 @@ describe("shippedVenueNames โ what each shipped venue is called", () => {
|
|
|
876
1040
|
const names = shippedVenueNames(deps());
|
|
877
1041
|
// A venue is labelled by its `name`, a family by its file name.
|
|
878
1042
|
expect(names.map((n) => n.label)).toEqual([
|
|
1043
|
+
"AAAI",
|
|
1044
|
+
"aaai-press",
|
|
879
1045
|
"acl-latex",
|
|
880
1046
|
"acm-acmsmall",
|
|
881
1047
|
"acm-sigconf",
|
|
@@ -889,10 +1055,14 @@ describe("shippedVenueNames โ what each shipped venue is called", () => {
|
|
|
889
1055
|
"ACM CCS",
|
|
890
1056
|
"EMNLP",
|
|
891
1057
|
"FSE",
|
|
1058
|
+
"ICML",
|
|
1059
|
+
"icml-style",
|
|
892
1060
|
"ICSE",
|
|
893
1061
|
"ICSE",
|
|
894
1062
|
"ieee-conference",
|
|
895
1063
|
"MSR",
|
|
1064
|
+
"NeurIPS",
|
|
1065
|
+
"neurips-style",
|
|
896
1066
|
"NLBSE",
|
|
897
1067
|
"REALM",
|
|
898
1068
|
"IEEE S&P",
|
|
@@ -921,6 +1091,8 @@ describe("shippedVenueNames โ what does not resolve", () => {
|
|
|
921
1091
|
expect(
|
|
922
1092
|
shippedVenueNames({ files, venuesDir: VENUES }).map((n) => n.label),
|
|
923
1093
|
).toEqual([
|
|
1094
|
+
"AAAI",
|
|
1095
|
+
"aaai-press",
|
|
924
1096
|
"acl-latex",
|
|
925
1097
|
"acm-acmsmall",
|
|
926
1098
|
"acm-sigconf",
|
|
@@ -934,10 +1106,14 @@ describe("shippedVenueNames โ what does not resolve", () => {
|
|
|
934
1106
|
"ACM CCS",
|
|
935
1107
|
"EMNLP",
|
|
936
1108
|
"FSE",
|
|
1109
|
+
"ICML",
|
|
1110
|
+
"icml-style",
|
|
937
1111
|
"ICSE",
|
|
938
1112
|
"ICSE",
|
|
939
1113
|
"ieee-conference",
|
|
940
1114
|
"MSR",
|
|
1115
|
+
"NeurIPS",
|
|
1116
|
+
"neurips-style",
|
|
941
1117
|
"NLBSE",
|
|
942
1118
|
"IEEE S&P",
|
|
943
1119
|
]);
|
package/src/presets.ts
CHANGED
|
@@ -104,6 +104,12 @@ export interface PresetTemplate {
|
|
|
104
104
|
readonly forbids: readonly string[];
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
/** A preset's `template_style`, as its file spells it. */
|
|
108
|
+
export interface PresetStyle {
|
|
109
|
+
readonly text: string;
|
|
110
|
+
readonly file: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
107
113
|
/** A resolved chain, merged. */
|
|
108
114
|
export interface Preset {
|
|
109
115
|
/**
|
|
@@ -123,6 +129,11 @@ export interface Preset {
|
|
|
123
129
|
* through the LaTeX reader.
|
|
124
130
|
*/
|
|
125
131
|
readonly template: PresetTemplate | null;
|
|
132
|
+
/**
|
|
133
|
+
* The style package the template loads into its class (`template_style`, a `\\usepackage` line),
|
|
134
|
+
* as the preset spells it, and the file that spells it; null when no file of the chain names one.
|
|
135
|
+
*/
|
|
136
|
+
readonly templateStyle: PresetStyle | null;
|
|
126
137
|
/** Every `name` and `aliases` along the chain: what this venue is called in a paper's text. */
|
|
127
138
|
readonly aliases: readonly string[];
|
|
128
139
|
/** The `aliases` the chain's files declare, without any `name`: what a folder name is matched against beside the edition. */
|
|
@@ -335,6 +346,7 @@ const NOTHING_MERGED: Merging = {
|
|
|
335
346
|
name: null,
|
|
336
347
|
parent: null,
|
|
337
348
|
template: null,
|
|
349
|
+
templateStyle: null,
|
|
338
350
|
aliases: [],
|
|
339
351
|
declaredAliases: [],
|
|
340
352
|
blind: false,
|
|
@@ -382,6 +394,10 @@ const mergeOne = (
|
|
|
382
394
|
p.template === null
|
|
383
395
|
? acc.template
|
|
384
396
|
: { text: p.template, file, forbids: p.templateForbids },
|
|
397
|
+
templateStyle:
|
|
398
|
+
p.templateStyle === null
|
|
399
|
+
? acc.templateStyle
|
|
400
|
+
: { text: p.templateStyle, file },
|
|
385
401
|
aliases: [...new Set([...acc.aliases, ...namesOf(p.identity), ...p.aliases])],
|
|
386
402
|
declaredAliases: [...new Set([...acc.declaredAliases, ...p.aliases])],
|
|
387
403
|
blind: p.blind ?? acc.blind,
|
|
@@ -528,6 +544,17 @@ export function resolveShipped(deps: PresetDeps): readonly Preset[] {
|
|
|
528
544
|
.map((r) => r.value);
|
|
529
545
|
}
|
|
530
546
|
|
|
547
|
+
/**
|
|
548
|
+
* The `template_style` of every shipped preset that resolves and names one, with its chain: the
|
|
549
|
+
* styles a paper of another venue may have loaded instead of its own (`tex/template`).
|
|
550
|
+
*/
|
|
551
|
+
export const shippedStyles = (
|
|
552
|
+
deps: PresetDeps,
|
|
553
|
+
): readonly (PresetStyle & Pick<Preset, "chain">)[] =>
|
|
554
|
+
resolveShipped(deps).flatMap((p) =>
|
|
555
|
+
p.templateStyle === null ? [] : [{ ...p.templateStyle, chain: p.chain }],
|
|
556
|
+
);
|
|
557
|
+
|
|
531
558
|
/** A shipped venue as a name knows it, and the files of its chain: what tells it from a paper's own. */
|
|
532
559
|
export type ShippedVenue = Pick<
|
|
533
560
|
Preset,
|
|
@@ -218,14 +218,14 @@ const negationStanding = (a: RegisterAnchor): string => {
|
|
|
218
218
|
};
|
|
219
219
|
|
|
220
220
|
describe("tex/negated-sentences: AIDC's band from the same five ACSAC papers", () => {
|
|
221
|
-
it("๐ด the band is the anchors' 5.
|
|
221
|
+
it("๐ด the band is the anchors' 5.2โ17.8%, widened to 2.9โ21.8%", () => {
|
|
222
222
|
const band = negationBandOf(aidc.registerAnchors);
|
|
223
223
|
expect(
|
|
224
224
|
band &&
|
|
225
225
|
[band.anchorMin, band.anchorMax, band.min, band.max].map((x) =>
|
|
226
226
|
x.toFixed(1),
|
|
227
227
|
),
|
|
228
|
-
).toEqual(["5.
|
|
228
|
+
).toEqual(["5.2", "17.8", "2.9", "21.8"]);
|
|
229
229
|
});
|
|
230
230
|
|
|
231
231
|
it.each(ACSAC)(
|
package/src/rule-cases.test.ts
CHANGED
|
@@ -1776,6 +1776,58 @@ describe("the register bands are in the writing set, on AIDC too", () => {
|
|
|
1776
1776
|
});
|
|
1777
1777
|
});
|
|
1778
1778
|
|
|
1779
|
+
describe("tex/template โ an author silences a finding they dispute, with the reason", () => {
|
|
1780
|
+
const template = async (tree: Record<string, string>) =>
|
|
1781
|
+
(await lintTree(tree))
|
|
1782
|
+
.filter((m) => m.ruleId === "tex/template")
|
|
1783
|
+
.map((m) => `${String(m.line)} ${m.message}`);
|
|
1784
|
+
const missing = "\\documentclass[conference]{IEEEtran}";
|
|
1785
|
+
|
|
1786
|
+
it("๐ด the finding the directive silences is there without it", async () => {
|
|
1787
|
+
expect(await template(blind("Text.", missing))).toEqual([
|
|
1788
|
+
"1 the class option `compsoc` is missing: BlindConf requires `\\documentclass[conference,compsoc]{IEEEtran}`",
|
|
1789
|
+
]);
|
|
1790
|
+
});
|
|
1791
|
+
|
|
1792
|
+
it("a disable-next-line comment above the class line, with its reason after `--`, silences it", async () => {
|
|
1793
|
+
const cls = `% eslint-disable-next-line tex/template -- the venue's chair allowed this class by email\n${missing}`;
|
|
1794
|
+
expect(await template(blind("Text.", cls))).toEqual([]);
|
|
1795
|
+
});
|
|
1796
|
+
|
|
1797
|
+
it("a disable comment on the first line silences a finding reported at the top of the file", async () => {
|
|
1798
|
+
const tree = paper(
|
|
1799
|
+
"% eslint-disable tex/template -- the class line is written by the build script\n\\begin{document}\nText.\n\\section*{LLM Usage Statement}\nNone.\n\\end{document}\n",
|
|
1800
|
+
BLIND_PAPER,
|
|
1801
|
+
);
|
|
1802
|
+
expect(await template(tree)).toEqual([]);
|
|
1803
|
+
// The other half: without the comment, the missing class is reported there.
|
|
1804
|
+
const bare = paper(
|
|
1805
|
+
"\\begin{document}\nText.\n\\section*{LLM Usage Statement}\nNone.\n\\end{document}\n",
|
|
1806
|
+
BLIND_PAPER,
|
|
1807
|
+
);
|
|
1808
|
+
expect(await template(bare)).toEqual([
|
|
1809
|
+
"1 paper.tex has no \\documentclass; BlindConf requires `\\documentclass[conference,compsoc]{IEEEtran}`",
|
|
1810
|
+
]);
|
|
1811
|
+
});
|
|
1812
|
+
|
|
1813
|
+
it("๐ด the same holds for format/layout-override, the other rule that reports in the preamble", async () => {
|
|
1814
|
+
const layout = async (directive: string) =>
|
|
1815
|
+
(
|
|
1816
|
+
await lintTree(
|
|
1817
|
+
blind("Text.", `${IEEE}\n${directive}\\usepackage{geometry}`),
|
|
1818
|
+
)
|
|
1819
|
+
)
|
|
1820
|
+
.filter((m) => m.ruleId === "format/layout-override")
|
|
1821
|
+
.map((m) => m.line);
|
|
1822
|
+
expect(await layout("")).toEqual([2]);
|
|
1823
|
+
expect(
|
|
1824
|
+
await layout(
|
|
1825
|
+
"% eslint-disable-next-line format/layout-override -- the venue's call allows A4 margins\n",
|
|
1826
|
+
),
|
|
1827
|
+
).toEqual([]);
|
|
1828
|
+
});
|
|
1829
|
+
});
|
|
1830
|
+
|
|
1779
1831
|
describe("tex/max-paragraph-words is off by default", () => {
|
|
1780
1832
|
it("a 300-word paragraph produces nothing under the default config, and fires once the paper turns the rule on", async () => {
|
|
1781
1833
|
const ids = async (tree: Record<string, string>) =>
|
|
@@ -20,7 +20,8 @@ import { join } from "node:path";
|
|
|
20
20
|
import { createChecker } from "../lib/check.ts";
|
|
21
21
|
|
|
22
22
|
const R = await import("./tex-requirements.ts");
|
|
23
|
-
const { parseTemplate } =
|
|
23
|
+
const { parseTemplate, parseTemplateStyle } =
|
|
24
|
+
await import("./adapters/latex/index.ts");
|
|
24
25
|
const VENUES = (await import("./package-dirs.ts")).presetsDir();
|
|
25
26
|
|
|
26
27
|
const check = createChecker();
|
|
@@ -96,12 +97,25 @@ for (const v of acm) {
|
|
|
96
97
|
// Venues on ONE template must not drift apart: a second list is how the old installer's three
|
|
97
98
|
// dictionaries diverged. Since the ACM venues extend the `acm-sigconf` family, only the family
|
|
98
99
|
// declares the template's packages, so this holds by construction; the check stays for any two
|
|
99
|
-
// standalone presets that name the same template.
|
|
100
|
+
// standalone presets that name the same template. A template is its class AND the style it loads
|
|
101
|
+
// (`template_style`): NeurIPS's `article` + `neurips_2026` is not REALM's bare `article`.
|
|
102
|
+
const styleOf = (v: string): string =>
|
|
103
|
+
parseTemplateStyle(presetOf(v).templateStyle ?? "")?.name ?? "";
|
|
104
|
+
const templateKey = (v: string): string =>
|
|
105
|
+
`${String(templateOf(v))} + ${styleOf(v) || "no style"}`;
|
|
100
106
|
const byTemplate = new Map<unknown, string[]>();
|
|
101
107
|
for (const v of venues.filter((x) => presetOf(x).extends === null)) {
|
|
102
|
-
const t =
|
|
108
|
+
const t = templateKey(v);
|
|
103
109
|
byTemplate.set(t, [...(byTemplate.get(t) ?? []), v]);
|
|
104
110
|
}
|
|
111
|
+
// Guards: the key tells a style family from a bare class โ else every article-based style would be
|
|
112
|
+
// held to REALM's list.
|
|
113
|
+
check(
|
|
114
|
+
"neurips-style and acl-latex are two templates: article + neurips_2026, article + no style",
|
|
115
|
+
templateKey("neurips-style") === "article + neurips_2026" &&
|
|
116
|
+
templateKey("acl-latex") === "article + no style",
|
|
117
|
+
`${templateKey("neurips-style")} ยท ${templateKey("acl-latex")}`,
|
|
118
|
+
);
|
|
105
119
|
for (const [t, vs] of byTemplate)
|
|
106
120
|
check(
|
|
107
121
|
`venues on template ${String(t)} declare the SAME packages (${vs.join(", ")})`,
|
package/src/tex-requirements.ts
CHANGED
|
@@ -211,6 +211,8 @@ export interface PresetFile {
|
|
|
211
211
|
readonly template: string | null;
|
|
212
212
|
/** Class options the venue forbids, read with `template`; empty when the file names none. */
|
|
213
213
|
readonly templateForbids: readonly string[];
|
|
214
|
+
/** The `\\usepackage` line of the style the template loads into its class; null when the file names none. */
|
|
215
|
+
readonly templateStyle: string | null;
|
|
214
216
|
/** Other names the venue goes by in a paper's text; empty when the file names none. */
|
|
215
217
|
readonly aliases: readonly string[];
|
|
216
218
|
/** Whether the venue reviews double-blind; null when the file does not say. */
|
|
@@ -285,6 +287,7 @@ interface PresetBodyJson {
|
|
|
285
287
|
readonly extends?: string;
|
|
286
288
|
readonly parent?: string;
|
|
287
289
|
readonly template?: string;
|
|
290
|
+
readonly template_style?: string;
|
|
288
291
|
readonly template_forbids?: readonly string[];
|
|
289
292
|
readonly aliases?: readonly string[];
|
|
290
293
|
readonly blind?: boolean;
|
|
@@ -553,8 +556,7 @@ export function parsePreset(
|
|
|
553
556
|
identity: identityOf(j),
|
|
554
557
|
extends: orNull(j.extends),
|
|
555
558
|
parent: orNull(j.parent),
|
|
556
|
-
|
|
557
|
-
templateForbids: j.template_forbids ?? [],
|
|
559
|
+
...templateOf(j),
|
|
558
560
|
aliases: j.aliases ?? [],
|
|
559
561
|
blind: orNull(j.blind),
|
|
560
562
|
requiredSections: sectionsOf(j.required_sections),
|
|
@@ -567,6 +569,15 @@ export function parsePreset(
|
|
|
567
569
|
};
|
|
568
570
|
}
|
|
569
571
|
|
|
572
|
+
/** A preset's template: its class line, the options it forbids, and the style it loads. */
|
|
573
|
+
const templateOf = (
|
|
574
|
+
j: PresetBodyJson,
|
|
575
|
+
): Pick<PresetFile, "template" | "templateForbids" | "templateStyle"> => ({
|
|
576
|
+
template: orNull(j.template),
|
|
577
|
+
templateForbids: j.template_forbids ?? [],
|
|
578
|
+
templateStyle: orNull(j.template_style),
|
|
579
|
+
});
|
|
580
|
+
|
|
570
581
|
/** The text of one preset โ the TeX requirements it declares itself (none without a `tex` block). */
|
|
571
582
|
export function parseProfile(
|
|
572
583
|
text: string,
|