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

Issue with exporting to docx with citation #1035

Open
axdey opened this issue Sep 12, 2022 · 5 comments
Open

Issue with exporting to docx with citation #1035

axdey opened this issue Sep 12, 2022 · 5 comments

Comments

@axdey
Copy link

axdey commented Sep 12, 2022

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
Copy link
Owner

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

@axdey
Copy link
Author

axdey commented Sep 12, 2022

My bad. This is my org file:

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

@jkitchin
Copy link
Owner

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
Copy link
Author

axdey commented Sep 21, 2022

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
Copy link
Owner

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?

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