ali-ramadhan / DocumenterCitations.jl

DocumenterCitations.jl uses Bibliography.jl to add support for BibTeX citations and references in documentation pages generated by Documenter.jl.
https://ali-ramadhan.github.io/DocumenterCitations.jl/dev
MIT License
65 stars 10 forks source link

Option to print last name only for citations #61

Open ulthiel opened 2 years ago

ulthiel commented 2 years ago

Would it be possible to add a global option so that citations only give the last name of the authors, not their first names? E.g. "Knuth (2011)" instead of "Donald E. Knuth (2011)".

fingolfin commented 2 years ago

Another special case of issue #22 I guess. Of course implementing a special case is easier than the general thing... The relevant code is in https://github.com/ali-ramadhan/DocumenterCitations.jl/blob/5ef4fbf4b71cc04941ad5258adea666c046b73da/src/citations.jl#L41-L42 which would be quite easy to adapt...

goerz commented 1 year ago

The newly released DocumenterCitations.jl v1.0 does this if you use the :authoryear style.