Emit author-year labels for project BibTeX

The project .bib inliner now derives author-year labels (with a/b
disambiguation for duplicate author-years) and writes them as optional
\bibitem labels. The route-D citation pass uses those labels only when they
look like author-year labels: \citep gets parentheses, \citet becomes
Author (Year), and reference entries lose their numeric brackets. Inline
thebibliography entries without such labels remain numeric.

The arXiv sample now prints (Kour and Saabne, 2014a; Keshet et al., 2016) and
Kour and Saabne (2014b), matching natbib semantics more closely. Test count
stays 1073.
This commit is contained in:
gloamxun committed 2026-10-27 23:07:00 +08:00
1 parent d2f0fe97c5
commit c2310d85ac
5 files changed
+96 -13

No files matched your search

+3 -1
View File
@@ -44,7 +44,9 @@ execution is not a goal.
"A Preprint" undertitle are drawn, and two author groups are laid out
side by side as a centred two-column halign. ORCID icons are still
missing;
- reference style is numeric, not natbib author-year;
- project `.bib` entries now produce author-year labels and natbib-style
parenthetical citations; inline `thebibliography` without labels remains
numeric, and the full natbib option surface is not implemented;
- display math is approximate;
- `\fbox`/rule figures now draw the rule body as a filled box; the fbox
frame and vector/PDF images are still missing, and float placement differs.
+3 -3
View File
@@ -51,8 +51,8 @@ now means route-D.
| Floats, captions, tables, booktabs | Supported | table/math tests, corpus |
| PNG/JPEG/BMP `\includegraphics` | Supported | project image tests |
| PDF/SVG/EPS figures | **Not supported** | undecodable images become placeholder rules |
| Inline `thebibliography` + `\cite` | Supported | citation tests |
| `.bib` + BibTeX data | Partial | simple `@article`/`@inproceedings` fields are inlined as `thebibliography`; complex BibTeX/BibLaTeX styles are not supported |
| Inline `thebibliography` + `\cite` | Supported | numeric or custom labels; citation tests |
| `.bib` + BibTeX data | Partial | simple `@article`/`@inproceedings` fields are inlined as labeled `thebibliography`; project citations use author-year labels (`Kour and Saabne, 2014a`) |
| Local `.cls`/`.sty`/`\input` | Supported | project class/package tests |
| Arbitrary package code, TikZ/pgf | **Not supported** | text/class subset only |
| Two-column / `multicols` | Flattened | wrappers consumed; no column layout |
@@ -145,7 +145,7 @@ PDF was rendered page-by-page next to the route-D output.
| Title | `A TEMPLATE FOR THE arxiv STYLE`, small caps, rules above/below | normal case, no rules |
| Author block | two affiliations, ORCID icons, footnote symbols | one concatenated paragraph, no ORCID |
| Abstract/keywords | small-caps heading, bold `Keywords`, `·` separators | bold heading, comma separators |
| Citations | natbib author-year `(Kour and Saabne, 2014a; …)` | numeric `[1, 3]` |
| Citations | natbib author-year `(Kour and Saabne, 2014a; …)` | author-year `(Kour and Saabne, 2014a; Keshet et al., 2016)` for `.bib`; numeric for unlabeled inline bibliographies |
| Table | booktabs rules, `Size (µm)`, `~100`, `10^6` | readable ASCII fallback `Size (um)`, `approx. 100`, `10**6`; rough header |
| Figure | framed rule box above the caption | filled rule body; fbox frame missing |
| Display equation | fully typeset fraction/product/sum | approximate, visibly jumbled |