jkitchin / jmax

Johns customizations to maximize emacs
185 stars 59 forks source link

Reference inserted by org-ref-insert-cite-link cannot be found #28

Closed eigengrau closed 10 years ago

eigengrau commented 10 years ago

I have noticed that, while it seems I can insert my cite-links just fine via org-ref-insert-cite-link, when clicking on the links to show the reference, only some references can be shown, while others will say no key found despite the fact that the key has also been inserted via org-ref.

E.g., I created the file test.bib with the following content:

% Better BibLaTeX: pinned
@thesis{bohnenberger2004decisiontheoreticplanning,
  shorttitle = {{Decision-theoretic planning for user-adaptive systems}},
  title = {{Decision-theoretic planning for user-adaptive systems: dealing with multiple goals and resource limitations}},
  url = {http://scidok.sulb.uni-saarland.de/volltexte/2005/455/},
  institution = {{Universitätsbibliothek}},
  type = {phdthesis},
  author = {Bohnenberger, Thorsten},
  urldate = {2014-06-28},
  date = {2004},
  year = {2004},
  file = {Bohnenberger - 2004 - Decision-theoretic planning for user-adaptive syst.pdf:/home/seb/.mozilla/firefox/nw2x3i1i.default/zotero/storage/XNN63PX2/Bohnenberger - 2004 - Decision-theoretic planning for user-adaptive syst.pdf:application/pdf;Snapshot:/home/seb/.mozilla/firefox/nw2x3i1i.default/zotero/storage/B5SMAVRA/455.html:text/html}
}

Now, when I set org-ref-default-bibliography to test.bib, I can insert bohnenberger2004decisiontheoreticplanning via org-ref-insert-cite-link. But when clicking on the link, org-ref says no key found. For some entries, this works fine, for others it does not, although all entries come from the same .bib.

eigengrau commented 10 years ago

Hm, it seems that this has something to do with the entries being of the type thesis or other non-book or non-article-types. When I change the entry type in test.bib to book, org-ref is able to find it.

eigengrau commented 10 years ago

Aha! So this was not related to org-ref at all. It seems that one just has to set bibtex-dialect to biblatex prior to bibtex-find-key.