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

xnames(entry; names=:last) does not include initials #48

Open
goerz opened this issue Mar 5, 2023 · 1 comment · May be fixed by #49
Open

xnames(entry; names=:last) does not include initials #48

goerz opened this issue Mar 5, 2023 · 1 comment · May be fixed by #49

Comments

@goerz
Copy link

goerz commented Mar 5, 2023

The documentation for Bibliography.xnames says that with names=:last it should return "last names + first name abbreviation". However, in reality, it only returns the last names without first name initials. Thus, there is a mismatch between the documentation and the actual behavior.

Should this be fixed to that names=:last indeed includes the first name initials?

Having only the last names might still be useful in certain situations. So if the implementation of names=:last is fixed, should there also be a different option for names that returns only the last names? Maybe names=:lastonly?

goerz added a commit to goerz-forks/Bibliography.jl that referenced this issue Mar 6, 2023
Implement `xnames(entry; names=:last)` to print first name initials (as
stated in the documentation) and `xnames(entry; names=:lastonly)` to
print last names only.

Add an option `and` to use put " and " between the last two names.

Closes Humans-of-Julia#48
@goerz goerz linked a pull request Mar 6, 2023 that will close this issue
@Azzaare Azzaare added this to the v1.0 milestone Mar 6, 2023
@Azzaare
Copy link
Member

Azzaare commented Mar 6, 2023

Makes sense. Thanks.

I will fix it in the coming weeks.

EDIT: sorry, I saw the related PR after commenting here

Azzaare pushed a commit that referenced this issue Nov 2, 2024
Implement `xnames(entry; names=:last)` to print first name initials (as
stated in the documentation) and `xnames(entry; names=:lastonly)` to
print last names only.

Add an option `and` to use put " and " between the last two names.

Closes #48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants