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

helm-bibtex-with-local-bibliography need to work in orgmode also! #348

Open
OmarAshkar opened this issue Jan 5, 2021 · 6 comments
Open

Comments

@OmarAshkar
Copy link

OmarAshkar commented Jan 5, 2021

I have a local bib file in the org file directory. I have tried to load this file in the org buffer with this bib using:

#+BIBLIOGRAPHY: file
#+LATEX_HEADER: \bibliography{file}
#+LATEX_HEADER: \addbibresource{file.bib}
\bibliography{file}

None of them worked with helm-bibtex-with-local-bibliography! While when I exported to latex, it worked to load this local bib file even without the addition of any of the previous headers and tags!

Finally, running helm-bibtex-with-local-bibliography inside the bib buffer itself works fine, but I want a way to tie it to org-mode?

@tmalsburg
Copy link
Owner

We're using reftex-get-bibfile-list to detect local bibliography but it doesn't appear to work on org files. We could create a workaround in helm-bibtex but ideally reftex would support org files as well (incidentally, reftex was originally written by Carsten Dominik who's also the original author or org mode). Would you mind asking the reftex maintainers whether they'd like to support finding bibliographies in org files?

@OmarAshkar
Copy link
Author

@tmalsburg yes sure, but where can I ask them?

@tmalsburg
Copy link
Owner

tmalsburg commented Jan 5, 2021

Thanks. The reftex page says that the AucTeX maintainers are responsible. Perhaps they have a mailing list? Not sure.

@OmarAshkar
Copy link
Author

OmarAshkar commented Jan 6, 2021

I found a solution to work with now to avoid reftex problems. By declaring the variable like that in the first line of the org buffer.

# -*- bibtex-completion-bibliography: ("./bibfile.bib"); -*-

you can work with helm-bibtex directly.

@tmalsburg
Copy link
Owner

tmalsburg commented Jan 6, 2021

That's a neat hack. Didn't think about that. The only downside is that you lose access to your main bibliography while you're in that buffer, but perhaps that's okay. I'll leave this issue open, since it will be a nice addition to be able to use the local bib in org files in addition to the global bib.

@tmalsburg
Copy link
Owner

I think this issue may have been solved since you can now use org's new #+BIBLIOGRAPHY: keyword to set bibliographies. Do you agree?

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

2 participants