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

Have a way of keeping aliases for common papers #feature-request #6

Closed
slosar opened this issue May 18, 2019 · 4 comments
Closed

Have a way of keeping aliases for common papers #feature-request #6

slosar opened this issue May 18, 2019 · 4 comments

Comments

@slosar
Copy link

slosar commented May 18, 2019

There should be a ~/.adstexrc file or something that would allow aliases for commonly used papers. E.g Planck18 should resolve to whatever the arxiv number is (but the search would be performed to ensure published papers become published once published :), i.e pure key-value resolution).

@yymao
Copy link
Owner

yymao commented May 18, 2019

This is a good suggestion but I wonder if it can already be accomplished by current features.

One can already supply additional bibtex files to adstex with -r, so that adstex would know those citation keys exist. This is useful for citation keys like Planck18, numpy etc.

I understand that you would also want to these entries (adstex does not update the files specified by -r). But I am implementing #3, which let you use

adstex my_own_bib.bib

to update the entries. So you can run this on those custom bibtex files once a while to update them.

This involves more steps, but seems more consistent with the idea of using bibtex files as the libraries (so that we don't need to create a new library format).

@slosar
Copy link
Author

slosar commented May 18, 2019

Yes, but the entire point of adstex is that I can give up having to deal with my central bibtex file.
The issue there is that in a typical workflow, someone invites me to work on their overleaf paper that already comes seeded with some bib file. Then I copy my cosmo.bib over, add to repo and immediately there are duplications between the two and when I update I often forget to update cosmo.bib in my repo and instead update paper's cosmo.bib, i.e things go awry very soon.
But perhaps the solution is to use \defcitealias instead -- that has the advantage of taking care of duplicates... Let me think a little...

@slosar
Copy link
Author

slosar commented May 18, 2019

This is a relevant link:
https://tex.stackexchange.com/questions/44877/bibtex-with-multiple-aliases-for-the-same-reference
You probably want ID field with aliases in your bib file (second answer), but perhaps for another day!

@yymao
Copy link
Owner

yymao commented May 18, 2019

the entire point of adstex is that I can give up having to deal with my central bibtex file

Indeed!

But my point is that maintaining a .adstexrc file is not that different from maintaining a bibtex file.

Citation aliases are indeed really difficult to deal with. The IDS field is a good solution but it only works with biblatex, and I think most astro people still use natbib.

For now, adstex does detect if there are citation keys that point to the same paper, and prints out warning messages at the end. It doesn't fix the issue for you though.

@yymao yymao closed this as completed Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants