Feature: highlight/bold specific author name in bibliography #14139
michaelaye
started this conversation in
Feature Requests
Replies: 4 comments
-
|
let me know if you want a working Lua filter code. |
Beta Was this translation helpful? Give feedback.
0 replies
This comment has been hidden.
This comment has been hidden.
-
|
For reference, existing extensions working with citations/bibliography: |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I created https://github.com/michaelaye/highlight-author, but am proposing to have it included into citetools (no commits since 2023 though): bcdavasconcelos/citetools#4 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
A very common academic need — on CVs, personal websites, and grant applications — is to bold or highlight one's own name in a rendered bibliography. There is currently no built-in way to do this in Quarto.
CSL doesn't support per-entry author highlighting, so users are forced to write post-citeproc Lua filters that parse the rendered AST and pattern-match author names. This is fragile because:
refsdiv is generated by citeproc after user Lua filters run, requiringciteproc: false+pandoc.utils.citeproc(doc)workaroundsProposed solution
A YAML metadata key that tells citeproc to wrap matching author names in
pandoc.Strong(or a configurable inline element) before rendering:This would match against the CSL JSON
authorfield before citeproc formats the entry, so it works regardless of CSL style.Alternatives considered
Beta Was this translation helpful? Give feedback.
All reactions