Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to print last name only for citations #61

Open
ulthiel opened this issue Jul 12, 2022 · 2 comments
Open

Option to print last name only for citations #61

ulthiel opened this issue Jul 12, 2022 · 2 comments

Comments

@ulthiel
Copy link

ulthiel commented Jul 12, 2022

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
Copy link
Contributor

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

authors = xnames(entry) |> tex2unicode
link.text = authors * " (" * xyear(entry) * ")"
which would be quite easy to adapt...

@goerz
Copy link

goerz commented Jul 13, 2023

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

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

No branches or pull requests

3 participants