AuthorInText citations with numeric CSL styles #9850
Replies: 4 comments 1 reply
-
Also relevant: jgm/citeproc#131 |
Beta Was this translation helpful? Give feedback.
-
Some more even more ancient references for completeness: jgm/pandoc-citeproc#209 (comment) |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply and the references! So it seems that I wasn't completely wrong when I wrote the filter, as I couldn't see a way to do it with CSL. I agree, the “correct” rendering of an in-text numeric citation can’t easily be inferred from the style—it’s likely different from the bibliography. I guess a filter then actually might be the best solution. In fact, it should be quite simple to use a template for customizing the rendering. |
Beta Was this translation helpful? Give feedback.
-
Yeah, I didn't think about the "how to render the author?" question. May need to wait for a solution in CSL proper. |
Beta Was this translation helpful? Give feedback.
-
In contrast to author-date styles, with numeric CSL styles, there’s no difference between
@Klaus1966b
and[@Klaus1966b]
: both produce just something like “[42]”. This makes it hard to switch between author-date and numeric styles.I was under the impression that this was a limitation of CSL, so I wrote a Lua filter to scratch this itch. However, responding to my announcement on Mastodon, Bruce D'Arcus commented that it should work as expected, i.e.,
@Klaus1966b
with a numeric style should produce “Klaus [42]” rather than just “[42].”I see that a similar issue has been brought up before in #8331, although I’d just expect the behavior above rather than the more complex one described in this issue.
Is this possibly a bug in citeproc?
Beta Was this translation helpful? Give feedback.
All reactions