Skip to content

Add shared numbered-citation CSL and filter - #226

Merged
d-morrison merged 2 commits into
mainfrom
claude/numbered-citations
Oct 18, 2026
Merged

d-morrison merged 2 commits into
mainfrom
claude/numbered-citations

Conversation

@d-morrison

Copy link
Copy Markdown
Collaborator

Requested by Ezra · project thread

Before: sites had no shared citation style, so [@key] printed author-year.

After: a site that sets csl: latex-macros/citations/numeric-author.csl and the numeric-citations.lua filter prints [@key] as [1] and in-text @key as Author [1] (Hastie et al. [2]).

How: the CSL is IEEE with the author name printed before the number; the filter marks every citation except an in-text @key as author-suppressed, so citeproc drops the name there. Checked with pandoc 3.1.3 on a sample with narrative, parenthetical, locator and multi-cite forms. Usage is in citations/README.md. Pilot site: lds#1149.


Generated by Claude Code

Bracketed [@key] citations print as [n]; in-text @key prints Author [n].

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MkXAccpqvLGEVmyEVKAXPy
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MkXAccpqvLGEVmyEVKAXPy
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.

2026-10-18 07:55 UTC

@d-morrison
d-morrison merged commit b48fd22 into main Oct 18, 2026
4 checks passed
@d-morrison
d-morrison deleted the claude/numbered-citations branch October 18, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants