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

Automatically replace 'YourReferenceHere' with author-name and year where possible. #395

Open
NiklasMelton opened this issue Oct 16, 2024 · 0 comments

Comments

@NiklasMelton
Copy link

YourReferenceHere seems to be hard-coded on this line:

return "@misc{YourReferenceHere,\n" + joined + "\n}\n"

It would be better to replace this with something like:

try:
    ref_alias = self.author[10:].replace(" and ",", ").split(",")[0] + self.year[10:12]
except:
    ref_alias = "YourReferenceHere"
return "@misc{"+ref_alias+",\n" + joined + "\n}\n"
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

1 participant