jkitchin / org-ref

org-mode modules for citations, cross-references, bibliographies in org-mode and useful bibtex tools to go with it.
GNU General Public License v3.0
1.37k stars 243 forks source link

Issue with exporting to docx with citation #1035

Open axdey opened 2 years ago

axdey commented 2 years ago

Hi,

The export function to .docx format works perfectly for text without citations. When I add a citation, I get the following user error:

Unable to resolve link: "citeproc_bib_item_1"

What am I doing wrong?

jkitchin commented 2 years ago

How could I guess? What does your org file look like?

axdey commented 2 years ago

My bad. This is my org file:

This is just a simple text [[cite:&zouExtensionModifiedPoisson2013]].
[[printbibliography:]]

jkitchin commented 2 years ago

I guess that is not enough. See https://github.com/jkitchin/org-ref/blob/master/examples/basic-csl-path.org. You need to specify some csl files, and a bibliography file somewhere.

axdey commented 2 years ago

Thanks John!

I tried adding the csl style and a bibliography as shown in the example, and now I get a different error message.

This is in my org-file

`#+csl-style: G:/My Drive/Research/apa-7th.csl

+csl-locale: en-US

This is just a simple text [[cite:&zouExtensionModifiedPoisson2013]]

bibliography:../master-library.bib`

This gives the following error message, when I export using org-ref:

file-name-extension: Wrong type argument: stringp, nil

Another thing that I noticed happening is that as soon as I add the bibliography to the org file as such: bibliography:../master-library.bib

I get a warning saying that Bibtex-completion could not find the entry for the citation I have in the text:

Warning (:warning): Bibtex-completion couldn't find entry with key "zouExtensionModifiedPoisson2013

Additionally, after adding the bibliography in the file, when I do C-c i to insert a citation, it shows 0 entries and as soon as I remove the line, it shows all the entries in my library.

I have tried providing the full-path to my .bib file as well, but get the same error :/

``

jkitchin commented 2 years ago

those are indications something is wrong with your bib-file, e.g. you are not using the right dialect, or you have unrecognized entry types in it. What does the entry for that key look like?