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 244 forks source link

Org-ref preprocessor export doesn't seem to honor biblatex citation commands #993

Open ckelty opened 2 years ago

ckelty commented 2 years ago

I am using the latest org-ref (which is awesome) and wondering about this behavior:

If I export the following MWE using C-c C-e l o it formats correctly in Latex (using biblatex). If I export it using org-ref's preprocessor and csl file C-c C-e r p (per the latest org-ref) it seems to not obey the footcite or footfullcite. It defaults to cite?

I am probably misunderstanding how it works but maybe it is not implemented for these citation styles? Is there a workaround to get full citations in footnotes if I want to export to ODT or HTML?

#+Options: toc:nil

# # FOR Export with org-ref csl Preprocessor
#+cite_export: csl ~/references/csl/chicago-fullnote-bibliography-16th-edition.csl
#+bibliography: ~/references/collected-references.bib

# FOR Export with normal Latex = Biblatex
#+LATEX_HEADER: \usepackage[style=verbose-note]{biblatex}
#+LATEX_HEADER: \addbibresource{~/references/collected-references.bib}

A parenthetical citation [[cite:&example]].

A citation that should be in the footnote (footfullcite).[[footfullcite:&example2]].

And another that should be in a footnote (footcite) [[footcite:&example3]]

* Bibliography
  # FOR biblatex export
#+begin_export latex
\printbibliography
#+end_export

# FOR Export with org-ref Preprocessor
# bibliography:~/references/collected-references.bib  
jkitchin commented 2 years ago

I don't know how you would make a footnote in citeproc. I guess this could be something missing in org-ref in specifying a note style somewhere. in the org-ref-process-buffer function there is this bit:

;; I don't know where this information would come from.
                  :note-index nil

I guess this is related, and something that would have to be fixed to get it to work.