-
Notifications
You must be signed in to change notification settings - Fork 13
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
Org-ref citation links are not supported #9
Comments
Thank you. Without testing, one thing jumps out at me: your citation syntax looks wrong. Org Mode (9.5) citations have only single square brackets Are you perhaps using org-ref? If so you should be using it for resolving citations, not Also, if you want citations in footnotes, I would suggest using a style that formats in-text citations as footnotes, rather than creating the footnotes yourself. |
Hi! I have simply used the |
OK, that is where the problem has arisen. The solution: use either For org-cite, the command to insert a citation is Org-ref won't work with ox-pandoc without some further configuration to resolve |
@a-fent is correct, you should not mix If you choose to use It would likely be straightforward to have the preprocessor transform each link to a pandoc format if it was desirable to have pandoc do the citation processing instead of citeproc. It would still be a preprocessing step, but it would allow pandoc to do its work. |
@a-fent @jkitchin Thank you so much! Due to some personal issues I haven't been able to work much in the last months: I am now exploring the solution that @jkitchin has suggested. I would like to keep on using his exellent
Unfortunately this doesn't seem to work. I get this error at startup:
When I then try to export, |
that code should not go in your init file. It should go in a src block in the org file you are trying to export. That code will try to export your init file, which is not what you want. |
@jkitchin Ooops! I see... This is what I have done now:
This actually produces a preprocessed output. PS. This is not directly related to the issue, but if I specify the location of my csl custom style (or that of any other style) like so:
I get an error: "Wrong type argument: listp, "[NO BIBLIOGRAPHY LAYOUT IN CSL STYLE]". If you think it's the case, I might open a new issue... Thanks a lot! |
The only once-for-all solutions are to wrap that in your function you can call, e.g. M-x my-export that runs those, or define your own exporter in your init file so you can do C-c C-e zz or something. See org-ref-export.el for details on how that is done. I am not sure about the error you mention, it might be a csl error. org-ref wouldn't report that by itself. |
Maybe you can try |
In Spacemacs, using Org 9.5 I'm experiencing problems exporting via pandoc and csl to the docx format.
Given this MWE (test.org):
`
#+title: Sample
#+bibliography: test.bib
First paragraph
Text text text.[fn:1]
Footnotes
[fn:1] [[cite:&deroberto1898a]]
`
and this bibliography (test.bib):
@Book{deroberto1898a, author = {{De Roberto}, Federico}, title = {Leopardi}, date = 1898, publisher = {Treves}, location = {Milano},
I get this result:
prova.docx
As you see, the cite: link is treated as a simple link and not processed as it should.
I work with Spacemacs, this is the part of my .spacemacs file where set the bibliography and the cite-export-processors.
(setq bibtex-completion-bibliography '("~/Dropbox/Standard/Bibliografia/bibliografia_generale.bib") org-cite-global-bibliography '("~/Dropbox/Standard/Bibliografia/bibliografia_generale.bib") reftex-default-bibliography '("~/Dropbox/Standard/Bibliografia/bibliografia_generale.bib")) (require 'oc-csl) (require 'oc-biblatex) (setenv "LC_ALL" "it_IT") (setq org-cite-export-processors '((beamer biblatex) (latex biblatex) (t csl "~/Dropbox/Standard/Modelli/andrea.csl")))
Maybe I should somehow specify in the file that I want to export using csl?
Thank in advance for any help.
The text was updated successfully, but these errors were encountered: