paperlint 17.1.0 → 17.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +2 -2
- package/README.md +24 -20
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +28 -29
- package/dist/cli.js.map +1 -1
- package/dist/presets.d.ts.map +1 -1
- package/dist/presets.js +6 -1
- package/dist/presets.js.map +1 -1
- package/dist/register-bands.d.ts +1 -7
- package/dist/register-bands.d.ts.map +1 -1
- package/dist/register-bands.js +12 -19
- package/dist/register-bands.js.map +1 -1
- package/dist/rule-sets.d.ts +43 -0
- package/dist/rule-sets.d.ts.map +1 -0
- package/dist/rule-sets.js +59 -0
- package/dist/rule-sets.js.map +1 -0
- package/dist/rules-config.d.ts +2 -1
- package/dist/rules-config.d.ts.map +1 -1
- package/dist/rules-config.js +17 -3
- package/dist/rules-config.js.map +1 -1
- package/docs/configuration.md +9 -2
- package/docs/optional-rules.md +48 -6
- package/docs/rules/tex/claim-emphasis.md +1 -1
- package/docs/rules/tex/claim-provenance.md +3 -3
- package/docs/rules/tex/contrast-frames.md +1 -1
- package/docs/rules/tex/max-caption-words.md +1 -1
- package/docs/rules/tex/max-paragraph-numbers.md +1 -1
- package/docs/rules/tex/max-paragraph-words.md +1 -1
- package/docs/rules/tex/max-sentence-words.md +1 -1
- package/docs/rules/tex/negated-sentences.md +1 -1
- package/docs/rules/tex/register.md +1 -1
- package/docs/rules/tex/relation-markers.md +1 -1
- package/docs/rules.md +20 -16
- package/fixtures/build-e2e/fse/PIPELINE-STATUS.md +3 -0
- package/fixtures/build-e2e/fse/expect.json +15 -0
- package/fixtures/build-e2e/fse/paper.tex +42 -0
- package/fixtures/build-e2e/fse/paperlint.json +1 -0
- package/fixtures/build-e2e/fse-over/PIPELINE-STATUS.md +3 -0
- package/fixtures/build-e2e/fse-over/expect.json +16 -0
- package/fixtures/build-e2e/fse-over/paper.tex +41 -0
- package/fixtures/build-e2e/fse-over/paperlint.json +1 -0
- package/fixtures/real-papers.test.ts +3 -0
- package/package.json +1 -1
- package/presets/acm-acmsmall.jsonc +115 -0
- package/presets/acm-acmsmall.md +62 -0
- package/presets/aidc.jsonc +2 -1
- package/presets/aidc.md +4 -3
- package/presets/fse.jsonc +93 -0
- package/presets/fse.md +143 -0
- package/src/cli.harness.mjs +25 -5
- package/src/cli.ts +43 -30
- package/src/folder-venue-rule.test.ts +11 -0
- package/src/lint-fix.test.ts +15 -2
- package/src/paper-includes.test.ts +62 -1
- package/src/paper-settings-commands.test.ts +1 -1
- package/src/preset-card-rule.test.ts +2 -0
- package/src/presets.test.ts +52 -1
- package/src/presets.ts +8 -1
- package/src/register-bands.ts +13 -23
- package/src/rule-cases.test.ts +155 -16
- package/src/rule-sets.test.ts +150 -0
- package/src/rule-sets.ts +63 -0
- package/src/rules-config.ts +31 -3
- package/src/tex-venue-rules.test.ts +53 -0
- package/src/venue-rules.test.ts +132 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# tex/negated-sentences
|
|
2
2
|
|
|
3
|
-
**Level:** off by default · **Reads:** `paper.tex` and the files it includes → `paperlint.json`
|
|
3
|
+
**Level:** off by default; in the opt-in set [`paperlint:writing`](../../optional-rules.md#the-writing-set-paperlintwriting) · **Reads:** `paper.tex` and the files it includes → `paperlint.json`
|
|
4
4
|
|
|
5
5
|
## What it catches
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# tex/register
|
|
2
2
|
|
|
3
|
-
**Level:**
|
|
3
|
+
**Level:** off by default; in the opt-in set [`paperlint:writing`](../../optional-rules.md#the-writing-set-paperlintwriting) · **Reads:** `paper.tex` and the files it includes
|
|
4
4
|
|
|
5
5
|
## What it catches
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# tex/relation-markers
|
|
2
2
|
|
|
3
|
-
**Level:**
|
|
3
|
+
**Level:** off by default; in the opt-in set [`paperlint:writing`](../../optional-rules.md#the-writing-set-paperlintwriting) · **Reads:** `paper.tex` and the files it includes → `paperlint.json`
|
|
4
4
|
|
|
5
5
|
## What it catches
|
|
6
6
|
|
package/docs/rules.md
CHANGED
|
@@ -27,9 +27,9 @@ reads and when it fails. Errors fail `paperlint lint`; warnings print and do not
|
|
|
27
27
|
| [`repro/study-result`](rules/repro/study-result.md) | error | `repro/studies.json`, each done study's `plan.json` (v2) and `result.json` | a done study whose plan is v2 and whose `result.json` is missing, lacks the number its claim is judged by, crosses that threshold without saying `"claim": "lost"`, lacks a labelling step's kappa or has one below the plan's bar, shows a failed self-test, counts no drop for a declared funnel reason, or audits its extractor on too few files or finds its recall below the plan's bar — [page](rules/repro/study-result.md) |
|
|
28
28
|
| [`paper/sources-fresh`](rules/paper/sources-fresh.md) | warn | `paper.tex` → `_build/sources.json` | the paper has not been built (no record of the files TeX read), or a file changed since the last build (its SHA-256 differs) — run `npx paperlint build` |
|
|
29
29
|
| `paper/author-list` | error | `paper.tex` → `_build/references.json`, `_build/sources.json` | an entry's authors are not those of the version it cites — typically the arXiv preprint's list under a published venue. Checked online by `paperlint build` (DBLP), reported on the entry's own line (or at the top of `paper.tex`, naming the entry's file); silent without a current build record |
|
|
30
|
-
| `paper/section-word` |
|
|
31
|
-
| `paper/leading-zero` |
|
|
32
|
-
| `paper/figure-ref-style` |
|
|
30
|
+
| `paper/section-word` | opt-in: `paperlint:writing` | `paper.tex` and its body files | `§` or `\S\ref` instead of the word Section. **Fixable:** `--fix` writes `Section~\ref{…}` / `Section 5` |
|
|
31
|
+
| `paper/leading-zero` | opt-in: `paperlint:writing` | `paper.tex` and its body files | a decimal below 1 without its leading zero (`.05` instead of `0.05`, IEEE / ISO 80000-1 style), counted only where the reader sees it — prose, math and table cells, not macro options, column specs, comments, code or tikz. A number right after `¶` or `§` (`¶¶.42`) is a paragraph designator and is not reported; in a paragraph that cites numbers that way, another bare decimal is reported without a fix, with the zero as a suggestion. **Fixable** |
|
|
32
|
+
| `paper/figure-ref-style` | opt-in: `paperlint:writing` | `paper.tex` and its body files | `Fig.~\ref` and `Figure~\ref` mixed in one document; each minority occurrence is reported. **Fixable:** `--fix` writes the majority form |
|
|
33
33
|
| [`bib/reachable-entry`](rules/bib/reachable-entry.md) | warn | `paper.tex` → `_build/sources.json`: the databases the last build's bibtex opened | an entry has no doi, url or arXiv id — a reader has nothing to follow. Reported on the entry in the `filecontents` block of `paper.tex` that wrote its `.bib`, or at the top of `paper.tex` with the entry's file and line first; silent until a build records the paper; no fix, the link has to be looked up — [page](rules/bib/reachable-entry.md) |
|
|
34
34
|
| `paper/cite-exists` | error | `paper.tex` → `_build/references.json` | an entry's doi or arXiv id resolves to nothing, or to a different work. Checked online by `paperlint build`; a work that was merely not found is not a finding |
|
|
35
35
|
| `paper/refs-fresh` | error | `paper.tex` → `_build/references.json` | the databases bibtex opened changed since the build checked them (their SHA-256 differs) — run `npx paperlint build` |
|
|
@@ -42,16 +42,16 @@ reads and when it fails. Errors fail `paperlint lint`; warnings print and do not
|
|
|
42
42
|
| [`format/layout-override`](rules/format/layout-override.md) | error | `paper.tex` → `paperlint.json` | the source changes the page layout the venue's template sets for the whole document — `geometry`, a layout `\setlength`, `\linespread`, `\baselinestretch` — [page](rules/format/layout-override.md) |
|
|
43
43
|
| [`anonymity/identity`](rules/anonymity/identity.md) | error | `paper.tex` → `_build/paper.facts.json` | a double-blind venue (`"blind": true`) and no `identity` declared, or a declared name, handle, email or project in the PDF's text, metadata or link targets — [page](rules/anonymity/identity.md) |
|
|
44
44
|
| [`tex/venue-leftover`](rules/tex/venue-leftover.md) | warn | `paper.tex` → `paperlint.json` | the text names another shipped venue than the one the paper extends («Submission to VenueA 2026» in a paper now set for VenueB) — [page](rules/tex/venue-leftover.md) |
|
|
45
|
-
| [`tex/claim-provenance`](rules/tex/claim-provenance.md) |
|
|
46
|
-
| [`tex/register`](rules/tex/register.md) |
|
|
47
|
-
| [`tex/contrast-frames`](rules/tex/contrast-frames.md) |
|
|
48
|
-
| [`tex/claim-emphasis`](rules/tex/claim-emphasis.md) |
|
|
49
|
-
| [`tex/relation-markers`](rules/tex/relation-markers.md) |
|
|
50
|
-
| [`tex/negated-sentences`](rules/tex/negated-sentences.md) |
|
|
51
|
-
| [`tex/max-paragraph-words`](rules/tex/max-paragraph-words.md) |
|
|
52
|
-
| [`tex/max-paragraph-numbers`](rules/tex/max-paragraph-numbers.md) |
|
|
53
|
-
| [`tex/max-sentence-words`](rules/tex/max-sentence-words.md) |
|
|
54
|
-
| [`tex/max-caption-words`](rules/tex/max-caption-words.md) |
|
|
45
|
+
| [`tex/claim-provenance`](rules/tex/claim-provenance.md) | opt-in: `paperlint:writing` | `paper.tex` | a sentence of the body states a number and does not say whose it is — no citation or link, no _we_/_our_, no `\ref` or "Table 2", no sample ("n = 134", "48 runs") — [page](rules/tex/claim-provenance.md) |
|
|
46
|
+
| [`tex/register`](rules/tex/register.md) | opt-in: `paperlint:writing` | `paper.tex` and the files it includes | the body runs to a post's register: more than 0.8 sentences per 1000 words open with _And_, _So_, _But_, _Nor_, _Or_ or _Yet_ — the limit is an option — [page](rules/tex/register.md) |
|
|
47
|
+
| [`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) |
|
|
48
|
+
| [`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) |
|
|
49
|
+
| [`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) |
|
|
50
|
+
| [`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/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) |
|
|
52
|
+
| [`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) |
|
|
53
|
+
| [`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) |
|
|
54
|
+
| [`tex/max-caption-words`](rules/tex/max-caption-words.md) | opt-in: `paperlint:writing` | `paper.tex` and the files it includes | a caption runs past `max` words (default 100), or one of its sentences past `maxSentence` (default 40) — [page](rules/tex/max-caption-words.md) |
|
|
55
55
|
| [`tex/term-before-definition`](rules/tex/term-before-definition.md) | optional; off until a project turns it on | `paper.tex` and the files it includes | a term the body defines (an `\emph` phrase of 1–4 words, by default) is used before that definition; reported once, at the first earlier use — [page](rules/tex/term-before-definition.md) |
|
|
56
56
|
| [`tex/term-defined-twice`](rules/tex/term-defined-twice.md) | optional; off until a project turns it on | `paper.tex` and the files it includes | a term the body defines is set as a definition again — [page](rules/tex/term-defined-twice.md) |
|
|
57
57
|
| `review/frontmatter` | error | `reviews/*.md` | the review's frontmatter fails paperlint's JSON Schema — a `findings` record without `id`/`status`, an unknown field, or a `cause` outside `skill-defect` · `missing-skill` · `hook` · `rule`. A review with no `findings` key is not checked for findings |
|
|
@@ -91,9 +91,11 @@ LLMs are used», which no rule can know; an author who used none says so in the
|
|
|
91
91
|
The `talk/*` rules judge a talk's finished files and are silent for a paper that declares no
|
|
92
92
|
`talk` (but `talk/undeclared`): [`talk.md`](talk.md).
|
|
93
93
|
|
|
94
|
-
Optional rules — off unless you turn them on in the `rules` setting
|
|
95
|
-
|
|
96
|
-
`
|
|
94
|
+
Optional rules — off unless you or your venue preset turn them on in the `rules` setting — are on
|
|
95
|
+
their own page: [`optional-rules.md`](optional-rules.md). The rules that flag the writing rather
|
|
96
|
+
than what the venue decides (the level `opt-in: paperlint:writing` above) are one named set, turned
|
|
97
|
+
on in one line: `"rules": { "paperlint:writing": "warn" }`
|
|
98
|
+
([`optional-rules.md`](optional-rules.md#the-writing-set-paperlintwriting)).
|
|
97
99
|
|
|
98
100
|
## A deliberate exception: a disable directive, with the reason
|
|
99
101
|
|
|
@@ -148,6 +150,8 @@ family, which holds everything the ACM template decides.
|
|
|
148
150
|
| `paperlint:acm-sigconf` | — | ACM `acmart` sigconf | none | no (no kinds) | — |
|
|
149
151
|
| `paperlint:agenticdev` | `paperlint:acm-sigconf` | ACM `acmart` sigconf | `short` (5 + 2 refs), `full` (10 + 2), `demo` (5 + 2) | yes | `pdf/last-page-balance`, `tex/heading-case` |
|
|
150
152
|
| `paperlint:aisec` | `paperlint:acm-sigconf` | ACM `acmart` sigconf | `research`, `benchmark`, `position`, `sok` (10 + 2 each) | yes | — |
|
|
153
|
+
| `paperlint:acm-acmsmall` | — | ACM `acmart` acmsmall (single-column) | none | no (no kinds) | — |
|
|
154
|
+
| `paperlint:fse` | `paperlint:acm-acmsmall` | ACM `acmart` acmsmall (single-column) | `research` (18 + 4 refs), `major-revision` (20 + 4) | yes | — (`blind`) |
|
|
151
155
|
| `paperlint:realm` | — | ACL | `long`, `short` | no — see below | — |
|
|
152
156
|
| `paperlint:ieee-conference` | — | IEEE `IEEEtran` conference | none | no (no kinds) | — |
|
|
153
157
|
| `paperlint:aidc` | `paperlint:ieee-conference` | IEEE `IEEEtran` conference, `compsoc` | `regular` (12), `short` (6) | yes, before the references — see below | — (`blind`) |
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "A paper in FSE 2027's class line, \\documentclass[acmsmall,screen,review,anonymous]{acmart}, that meets every number of paperlint:fse over the acm-acmsmall family: one column on a 6.75 x 10 in page, Linux Libertine and Biolinum at 10 pt, 6 body pages and 1 of references. Its twin fse-over is the same paper with a body over 18 pages.",
|
|
3
|
+
"build": {
|
|
4
|
+
"outcome": "pdf",
|
|
5
|
+
"pages": 7
|
|
6
|
+
},
|
|
7
|
+
"fonts": {
|
|
8
|
+
"all": "^(LinLibertine|LinBiolinum)",
|
|
9
|
+
"none": "^(CMR|CMBX|CMTI|CMTT|CMSS|LMRoman|SFRM)",
|
|
10
|
+
"matchLog": true
|
|
11
|
+
},
|
|
12
|
+
"lint": {
|
|
13
|
+
"findings": []
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
% A paper in the class line FSE 2027's call gives, built by the e2e on paperlint's own TeX Live,
|
|
2
|
+
% that MEETS the Research Papers limit: body pages within 18, references within 4, the Data
|
|
3
|
+
% Availability section after the conclusion. It is what the acm-acmsmall family was measured on,
|
|
4
|
+
% made checkable: one column on a 6.75 x 10 in page, Linux Libertine and Biolinum at 10 pt.
|
|
5
|
+
%
|
|
6
|
+
% The prose is one paragraph set many times; each copy carries its own number in words on every
|
|
7
|
+
% line, so no line repeats from page to page as a running header would.
|
|
8
|
+
\documentclass[acmsmall,screen,review,anonymous]{acmart}
|
|
9
|
+
\newcount\paracount
|
|
10
|
+
\newcommand{\n}{\romannumeral\paracount}
|
|
11
|
+
\newcommand{\para}{\global\advance\paracount by 1
|
|
12
|
+
Paragraph \n{} studies the history of a repository, and \n{} counts its commits by author \n{}
|
|
13
|
+
and by month \n{}, so that the measurement \n{} has a body of prose \n{} set in the one column
|
|
14
|
+
\n{} of the single-column format. Paragraph \n{} says nothing new, and \n{} does not need to: the
|
|
15
|
+
fixture \n{} is about the class, \n{} the fonts and \n{} the page count, and \n{} not about its
|
|
16
|
+
content. A reviewer of \n{} would find it dull, \n{} which is what a measurement \n{} should be.\par}
|
|
17
|
+
\newcount\loopcount
|
|
18
|
+
\newcommand{\paras}[1]{\loopcount=0 \loop\para\advance\loopcount by 1 \ifnum\loopcount<#1\repeat}
|
|
19
|
+
\newcount\bibcount
|
|
20
|
+
\newcommand{\entries}[1]{\bibcount=0 \loop\advance\bibcount by 1
|
|
21
|
+
\bibitem{r\the\bibcount} A. Author. 2024. Mining study \romannumeral\bibcount. In \emph{Proc.
|
|
22
|
+
Workshop}. 1--10.\ifnum\bibcount<#1\repeat}
|
|
23
|
+
\begin{document}
|
|
24
|
+
\title{A Fixture Typeset in the Class the Venue Requires}
|
|
25
|
+
\author{Anonymous Author}
|
|
26
|
+
\affiliation{\institution{Anonymous Institution}\city{City}\country{Country}}
|
|
27
|
+
\begin{abstract}
|
|
28
|
+
The abstract exists so the build has the front matter an ACM paper carries.
|
|
29
|
+
\end{abstract}
|
|
30
|
+
\maketitle
|
|
31
|
+
\section{Introduction}
|
|
32
|
+
\paras{20}
|
|
33
|
+
\section{Part Two}
|
|
34
|
+
\paras{20}
|
|
35
|
+
\section{Conclusion}
|
|
36
|
+
\paras{10}
|
|
37
|
+
\section{Data Availability}
|
|
38
|
+
The replication package is at an anonymous link.
|
|
39
|
+
\begin{thebibliography}{99}
|
|
40
|
+
\entries{40}
|
|
41
|
+
\end{thebibliography}
|
|
42
|
+
\end{document}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"extends": "paperlint:fse", "kind": "research", "identity": ["Ada Example", "adaexample", "ada@example.org", "Example University", "exampletool"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "The fse fixture with a body of 21 pages: format/page-limit reports it against FSE 2027's 18, and nothing else does — the class, the page and the fonts are the fse fixture's.",
|
|
3
|
+
"build": {
|
|
4
|
+
"outcome": "pdf",
|
|
5
|
+
"pages": 22
|
|
6
|
+
},
|
|
7
|
+
"lint": {
|
|
8
|
+
"findings": [
|
|
9
|
+
{
|
|
10
|
+
"rule": "format/page-limit",
|
|
11
|
+
"severity": 2,
|
|
12
|
+
"says": ["body pages: 21, over the limit 18 for FSE 2027/research"]
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
% The fse fixture with a body too long for FSE 2027's Research Papers: more than 18 body pages,
|
|
2
|
+
% in the same class line, fonts and page. format/page-limit must report it on the real build, as it
|
|
3
|
+
% stays silent on the fse fixture.
|
|
4
|
+
%
|
|
5
|
+
% The prose is one paragraph set many times; each copy carries its own number in words on every
|
|
6
|
+
% line, so no line repeats from page to page as a running header would.
|
|
7
|
+
\documentclass[acmsmall,screen,review,anonymous]{acmart}
|
|
8
|
+
\newcount\paracount
|
|
9
|
+
\newcommand{\n}{\romannumeral\paracount}
|
|
10
|
+
\newcommand{\para}{\global\advance\paracount by 1
|
|
11
|
+
Paragraph \n{} studies the history of a repository, and \n{} counts its commits by author \n{}
|
|
12
|
+
and by month \n{}, so that the measurement \n{} has a body of prose \n{} set in the one column
|
|
13
|
+
\n{} of the single-column format. Paragraph \n{} says nothing new, and \n{} does not need to: the
|
|
14
|
+
fixture \n{} is about the class, \n{} the fonts and \n{} the page count, and \n{} not about its
|
|
15
|
+
content. A reviewer of \n{} would find it dull, \n{} which is what a measurement \n{} should be.\par}
|
|
16
|
+
\newcount\loopcount
|
|
17
|
+
\newcommand{\paras}[1]{\loopcount=0 \loop\para\advance\loopcount by 1 \ifnum\loopcount<#1\repeat}
|
|
18
|
+
\newcount\bibcount
|
|
19
|
+
\newcommand{\entries}[1]{\bibcount=0 \loop\advance\bibcount by 1
|
|
20
|
+
\bibitem{r\the\bibcount} A. Author. 2024. Mining study \romannumeral\bibcount. In \emph{Proc.
|
|
21
|
+
Workshop}. 1--10.\ifnum\bibcount<#1\repeat}
|
|
22
|
+
\begin{document}
|
|
23
|
+
\title{A Fixture Typeset in the Class the Venue Requires}
|
|
24
|
+
\author{Anonymous Author}
|
|
25
|
+
\affiliation{\institution{Anonymous Institution}\city{City}\country{Country}}
|
|
26
|
+
\begin{abstract}
|
|
27
|
+
The abstract exists so the build has the front matter an ACM paper carries.
|
|
28
|
+
\end{abstract}
|
|
29
|
+
\maketitle
|
|
30
|
+
\section{Introduction}
|
|
31
|
+
\paras{20}
|
|
32
|
+
\section{Part Two}
|
|
33
|
+
\paras{150}
|
|
34
|
+
\section{Conclusion}
|
|
35
|
+
\paras{10}
|
|
36
|
+
\section{Data Availability}
|
|
37
|
+
The replication package is at an anonymous link.
|
|
38
|
+
\begin{thebibliography}{99}
|
|
39
|
+
\entries{40}
|
|
40
|
+
\end{thebibliography}
|
|
41
|
+
\end{document}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"extends": "paperlint:fse", "kind": "research", "identity": ["Ada Example", "adaexample", "ada@example.org", "Example University", "exampletool"]}
|
|
@@ -33,6 +33,7 @@ import { useTempDir, writeTree } from "../test/support.ts";
|
|
|
33
33
|
import {
|
|
34
34
|
compareToBaseline,
|
|
35
35
|
countByPaper,
|
|
36
|
+
RECORDED_OPT_IN,
|
|
36
37
|
recordedFindings,
|
|
37
38
|
} from "./accepted-papers/baseline.ts";
|
|
38
39
|
|
|
@@ -54,6 +55,8 @@ const PAPERS = FOLDERS.flatMap((root) =>
|
|
|
54
55
|
async function lintAll(): Promise<ReturnType<typeof countByPaper>> {
|
|
55
56
|
const dir = writeTree(useTempDir("paperlint-real-papers-"), {
|
|
56
57
|
"package.json": '{"name":"consumer","private":true}',
|
|
58
|
+
// The opt-in rules the baselines count, on for every paper (baseline.ts says why).
|
|
59
|
+
"paperlint.json": JSON.stringify({ rules: RECORDED_OPT_IN }),
|
|
57
60
|
});
|
|
58
61
|
for (const { name, dir: from } of PAPERS) {
|
|
59
62
|
cpSync(from, join(dir, "papers", name), {
|
package/package.json
CHANGED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
// ACM `acmart` acmsmall — the TEMPLATE FAMILY of ACM's single-column format: everything the ACM
|
|
2
|
+
// template decides in that format, whatever the venue. A venue preset extends it ("extends":
|
|
3
|
+
// "paperlint:acm-acmsmall") and adds what its call for papers sets: the page limit of each kind of
|
|
4
|
+
// paper, and the rules its producer implies. ACM's two-column format is the sibling family,
|
|
5
|
+
// acm-sigconf.jsonc.
|
|
6
|
+
//
|
|
7
|
+
// 🔴 THE NUMBERS ARE MEASURED, NOT COPIED. Built on 2026-11-19 from acmart's own sample for this
|
|
8
|
+
// format, `samples/acmsmall-conf.tex` of the acmart package (acmart 2026/11/01 v2.21, TeX Live
|
|
9
|
+
// revision 80934; the doc container acmart.doc.tar.xz from CTAN, since `paperlint toolchain`
|
|
10
|
+
// installs no documentation), with `paperlint build` on paperlint's TeX Live 2026 (pdfTeX
|
|
11
|
+
// 1.40.29) and banal 1.2. The class's own dimensions were written to the log by a
|
|
12
|
+
// `\typeout{\the\textwidth …}` added to the sample's preamble. The sample with the two class lines:
|
|
13
|
+
//
|
|
14
|
+
// [acmsmall] [acmsmall,screen,review,anonymous]
|
|
15
|
+
// page (banal) 6.75 x 10 in 6.75 x 10 in
|
|
16
|
+
// columns (banal) 1 1
|
|
17
|
+
// body size (banal) 10.3 10.3 (declared 10pt)
|
|
18
|
+
// fonts (pdf.js) LinLibertineT / -TB / -TI, LinBiolinumT / -TB / -TI, Inconsolatazi4,
|
|
19
|
+
// LibertineMath*, newtx's txsys / txmiaX / txexs — Type 1, embedded; the
|
|
20
|
+
// same on both
|
|
21
|
+
// \textwidth 395.8225pt = 5.477 in
|
|
22
|
+
// \textheight 574.0pt = 7.942 in
|
|
23
|
+
// \paperwidth x \paperheight 487.8225pt x 722.7pt = 6.75 x 10 in
|
|
24
|
+
// reference size \footnotesize = 8 pt in the log; banal 8.3 on the sample without its
|
|
25
|
+
// appendix (with the appendix after the references, banal types the
|
|
26
|
+
// reference pages as appendix and reports no reference size)
|
|
27
|
+
//
|
|
28
|
+
// The class decides the same in its source (acmart.cls): `\def\ACM@fontsize{10pt}` for acmsmall,
|
|
29
|
+
// and `\geometry{… paperwidth=6.75in, paperheight=10in, top=58pt, bottom=44pt, inner=46pt,
|
|
30
|
+
// outer=46pt …}`. The planted defects fail as they should, measured on the same sample:
|
|
31
|
+
// `[sigconf]` instead of `[acmsmall]` → page 8.5 x 11 in, 2 columns, body 9.3: pdf/geometry
|
|
32
|
+
// (three findings), pdf/body-size and tex/template
|
|
33
|
+
// `\renewcommand{\rmdefault}{cmr}` and → the text in cm-super (SFRM…, SFSX…), no LinBiolinum:
|
|
34
|
+
// `\renewcommand{\sfdefault}{cmss}` pdf/fonts. LinLibertineT is still among the PDF's
|
|
35
|
+
// fonts, so the text family alone would not have caught it
|
|
36
|
+
// and both class lines above lint clean on every rule of this family.
|
|
37
|
+
//
|
|
38
|
+
// Its card, in prose: `acm-acmsmall.md` beside this file.
|
|
39
|
+
{
|
|
40
|
+
// A template family: it names no venue, so no `name` and no `url` (the venues that extend it do).
|
|
41
|
+
"type": "family",
|
|
42
|
+
|
|
43
|
+
// `tex/template` requires a paper's class to be acmart WITH `acmsmall`: acmart's default format is
|
|
44
|
+
// `manuscript`, and `sigconf` is the two-column format of the sibling family. Other options
|
|
45
|
+
// (review, anonymous, screen, nonacm) are the paper's to add: the check requires the options the
|
|
46
|
+
// template names and forbids only those in `template_forbids`, which this family leaves empty.
|
|
47
|
+
"template": "\\documentclass[acmsmall]{acmart}",
|
|
48
|
+
|
|
49
|
+
// TeX Live packages the acmart template needs ON TOP OF tex-base.jsonc — the same class as
|
|
50
|
+
// acm-sigconf.jsonc, so acm-sigconf's list, for the same reasons (see the comments there: acmart
|
|
51
|
+
// falls back to Computer Modern in silence when libertine, inconsolata or newtx is missing).
|
|
52
|
+
// pbalance, filehook and zref are kept although acmsmall's one column never loads them:
|
|
53
|
+
// src/tex-requirements.harness.ts holds every preset on one template to ONE list, so two lists
|
|
54
|
+
// for acmart cannot drift apart, and the toolchain installs acm-sigconf's anyway. Measured
|
|
55
|
+
// 2026-11-19: every file the two acmsmall builds above
|
|
56
|
+
// read (247, from pdflatex's -recorder list) belongs to a package of TeX Live's scheme-basic, of
|
|
57
|
+
// tex-base.jsonc, of this list, or of a dependency tlmgr installs with one of them
|
|
58
|
+
// (figureversions, fontaxes and mweights with libertine; trimspaces with environ; xkeyval and
|
|
59
|
+
// infwarerr with hyperref and oberdiek).
|
|
60
|
+
"tex": {
|
|
61
|
+
"packages": {
|
|
62
|
+
"acmart": ["acmart.cls"],
|
|
63
|
+
"amscls": ["amsart.cls"],
|
|
64
|
+
"libertine": ["libertine.sty"],
|
|
65
|
+
"inconsolata": ["zi4.sty"],
|
|
66
|
+
"newtx": ["newtxmath.sty"],
|
|
67
|
+
"kastrup": ["binhex.tex"],
|
|
68
|
+
"fancyhdr": ["fancyhdr.sty"],
|
|
69
|
+
"totpages": ["totpages.sty"],
|
|
70
|
+
"environ": ["environ.sty"],
|
|
71
|
+
"preprint": ["balance.sty"],
|
|
72
|
+
"pbalance": ["pbalance.sty"],
|
|
73
|
+
"filehook": ["filehook.sty"],
|
|
74
|
+
"zref": ["zref-abspage.sty"],
|
|
75
|
+
"xstring": ["xstring.sty"],
|
|
76
|
+
"everyshi": ["everyshi.sty"],
|
|
77
|
+
"hyperxmp": ["hyperxmp.sty"],
|
|
78
|
+
"ncctools": ["manyfoot.sty"],
|
|
79
|
+
"cmap": ["cmap.sty"],
|
|
80
|
+
"float": ["float.sty"],
|
|
81
|
+
"comment": ["comment.sty"],
|
|
82
|
+
"upquote": ["upquote.sty"],
|
|
83
|
+
"doclicense": ["doclicense.sty"],
|
|
84
|
+
"textcase": ["textcase.sty"],
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
"format": {
|
|
89
|
+
// No `page_size`: the schema names only letter and A4, and acmsmall is neither.
|
|
90
|
+
// banal: 6.75 x 10 in; the class: paperwidth=6.75in, paperheight=10in.
|
|
91
|
+
"page_w_in": 6.75,
|
|
92
|
+
"page_h_in": 10.0,
|
|
93
|
+
|
|
94
|
+
// \textwidth and \textheight, as the class sets them (the log, above).
|
|
95
|
+
"textblock_w_in": 5.477,
|
|
96
|
+
"textblock_h_in": 7.942,
|
|
97
|
+
|
|
98
|
+
"columns": 1,
|
|
99
|
+
|
|
100
|
+
// acmsmall's default is 10pt (acmart.cls); banal measures the rendered mode, 10.3. The 0.5
|
|
101
|
+
// tolerance is acm-sigconf's: banal reads 0.3 pt high on every template measured.
|
|
102
|
+
"body_pt": 10,
|
|
103
|
+
"body_pt_tol": 0.5,
|
|
104
|
+
|
|
105
|
+
// The bibliography is set in \footnotesize, 8 pt at 10pt (the log); banal 8.3. body_pt_tol
|
|
106
|
+
// widens it to 7.5-8.5, so a bibliography in \scriptsize or \small is reported.
|
|
107
|
+
"ref_pt_min": 8,
|
|
108
|
+
"ref_pt_max": 8,
|
|
109
|
+
|
|
110
|
+
// The text in Linux Libertine, the title and headings in Linux Biolinum: acmart's fonts in
|
|
111
|
+
// every format, and what pdf.js read on both builds.
|
|
112
|
+
"fonts_text": "LinLibertine",
|
|
113
|
+
"fonts_title": "LinBiolinum",
|
|
114
|
+
},
|
|
115
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "ACM acmart acmsmall — template family card"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# ACM `acmart` acmsmall
|
|
6
|
+
|
|
7
|
+
The card of the template family `paperlint:acm-acmsmall` ([`acm-acmsmall.jsonc`](acm-acmsmall.jsonc)).
|
|
8
|
+
A family is what a publisher's template decides, whatever the venue: it names no venue and has no
|
|
9
|
+
call for papers. A venue preset extends it and adds what its own call sets — the page limit of each
|
|
10
|
+
kind of paper, and the rules its producer implies. The template is
|
|
11
|
+
[acmart on CTAN](https://ctan.org/pkg/acmart); `acmsmall` is its single-column format, which ACM's
|
|
12
|
+
journals and some ACM conferences (FSE among them) take. Its two-column sibling is
|
|
13
|
+
[`acm-sigconf`](acm-sigconf.md).
|
|
14
|
+
|
|
15
|
+
A paper for an ACM venue in this format that has no preset may extend the family directly: page
|
|
16
|
+
size, columns and fonts are then checked, and the page limit is not (a family has no kinds).
|
|
17
|
+
|
|
18
|
+
## What the family encodes
|
|
19
|
+
|
|
20
|
+
- **The class**: `\documentclass[acmsmall]{acmart}` — `acmsmall` is required, since acmart's default
|
|
21
|
+
format is a manuscript and `sigconf` is the two-column format. `review`, `anonymous`, `screen` and
|
|
22
|
+
`nonacm` are the paper's to add: the check requires only the options the template names.
|
|
23
|
+
- **The page**: 6.75 × 10 in; a text block of 5.477 × 7.942 in (`\textwidth` 395.8225 pt,
|
|
24
|
+
`\textheight` 574 pt); one column.
|
|
25
|
+
- **The fonts**: Linux Libertine for the text, Linux Biolinum for the title and headings; body text
|
|
26
|
+
at 10 pt, references at 8 pt (`\footnotesize`). banal measures 0.3 pt high (10.3 and 8.3), hence
|
|
27
|
+
the 0.5 pt tolerance.
|
|
28
|
+
- **TeX packages** on top of the base set: acm-sigconf's list — acmart and everything it loads
|
|
29
|
+
itself — without pbalance, filehook and zref, which acmart loads only for its two-column `pbalance`
|
|
30
|
+
option (zref also for the acmcp format).
|
|
31
|
+
|
|
32
|
+
## How the numbers were measured
|
|
33
|
+
|
|
34
|
+
On 2026-11-19, `paperlint build` on acmart's own sample for this format, `samples/acmsmall-conf.tex`
|
|
35
|
+
(acmart v2.21, 2026/11/01), with paperlint's TeX Live 2026 and banal 1.2, under
|
|
36
|
+
`\documentclass[acmsmall]{acmart}` and under FSE's `\documentclass[acmsmall,screen,review,anonymous]{acmart}`.
|
|
37
|
+
Both builds measured the same page, columns, body size and fonts; the text block is the class's own
|
|
38
|
+
`\textwidth` and `\textheight`, written to the log. The class says the same in its source:
|
|
39
|
+
`\ACM@fontsize` is 10pt for acmsmall, and its geometry sets `paperwidth=6.75in, paperheight=10in`.
|
|
40
|
+
The sample built with `[sigconf]` instead fails `pdf/geometry` (8.5 × 11 in, two columns),
|
|
41
|
+
`pdf/body-size` (9.3) and `tex/template`; with Computer Modern as the roman and sans-serif defaults
|
|
42
|
+
it fails `pdf/fonts` (no LinBiolinum).
|
|
43
|
+
|
|
44
|
+
What banal does with this format, seen on the same sample and on the e2e fixture
|
|
45
|
+
`fixtures/build-e2e/fse`: the page where the body ends and the references begin is counted as body
|
|
46
|
+
on the fixture (the references heading in the last lines of page 6, body count 6) and not on the
|
|
47
|
+
sample (the heading in the upper third of page 9, body count 8); and when an appendix follows the
|
|
48
|
+
references, banal types the reference pages as appendix, so it then reports no reference size and
|
|
49
|
+
no reference pages. A venue whose limit depends on those counts says what it does about them in its own card.
|
|
50
|
+
|
|
51
|
+
## What the family resolves to
|
|
52
|
+
|
|
53
|
+
<!-- paperlint:preset-rules -->
|
|
54
|
+
<!-- prettier-ignore-start -->
|
|
55
|
+
<!-- Generated from acm-acmsmall.jsonc by `npx eslint --fix` (rule preset/card-rules). Edit the preset, not this section. -->
|
|
56
|
+
|
|
57
|
+
**`paperlint:acm-acmsmall`** — template family, no venue of its own · extended by `paperlint:fse`
|
|
58
|
+
|
|
59
|
+
No preset of this chain sets a rule: under it, every rule keeps paperlint's default.
|
|
60
|
+
|
|
61
|
+
<!-- prettier-ignore-end -->
|
|
62
|
+
<!-- /paperlint:preset-rules -->
|
package/presets/aidc.jsonc
CHANGED
|
@@ -87,7 +87,8 @@
|
|
|
87
87
|
// contrast frames anchors 1.3–5.5 band 0–10.4
|
|
88
88
|
// claims in bold anchors 0.0–10.4 band 0–17.8
|
|
89
89
|
// relation markers anchors 39.4–112.8 band 25.4–135.0
|
|
90
|
-
// and, as a percent of the body's sentences (tex/negated-sentences
|
|
90
|
+
// and, as a percent of the body's sentences (tex/negated-sentences). All four rules are off by
|
|
91
|
+
// default and judge these bands only when a paper turns on the set paperlint:writing:
|
|
91
92
|
// negated sentences anchors 5.3–17.8% band 3.0–21.8%
|
|
92
93
|
"register": {
|
|
93
94
|
"anchors": [
|
package/presets/aidc.md
CHANGED
|
@@ -61,9 +61,10 @@ See `docs/rules/format/page-limit.md`.
|
|
|
61
61
|
submission through HotCRP's API on that site.
|
|
62
62
|
- **Names**: `AIDC` and `ACSAC`, what `tex/venue-leftover` looks for in another venue's paper.
|
|
63
63
|
- **The register of the body** (`register`): the workshop's first edition has no accepted papers,
|
|
64
|
-
so the bands of `tex/contrast-frames`, `tex/claim-emphasis
|
|
65
|
-
`tex/negated-sentences
|
|
66
|
-
|
|
64
|
+
so the bands of `tex/contrast-frames`, `tex/claim-emphasis`, `tex/relation-markers` and
|
|
65
|
+
`tex/negated-sentences` are set by five accepted ACSAC papers on the same template, in
|
|
66
|
+
`fixtures/accepted-papers/`. The four rules are off by default, here too; the opt-in set
|
|
67
|
+
`paperlint:writing` turns them on ([optional rules](../docs/optional-rules.md)).
|
|
67
68
|
|
|
68
69
|
## What the preset resolves to
|
|
69
70
|
|