andras-simonyi / citeproc-org

Renders Org-mode citations in CSL styles using citeproc-el.
GNU General Public License v3.0
68 stars 2 forks source link

noexport and bibliography position #15

Closed matzebond closed 3 years ago

matzebond commented 3 years ago
#+BIBLIOGRAPHY: ~/zotero.bib

* Start
  I am citing cite:schwartz_green_2019

* End
  an other cite cite:sandler_mobilenetv2_2018

#+BIBLIOGRAPHY: here

* Notes                                                            :noexport:
** Todos
*** TODO report issue
   lorem ipsum

In the following the bibliography is not exported. When I move the Notes headline to the top it works.

andras-simonyi commented 3 years ago

Hello, thanks for the report! It seems that the problem comes from the fact that you are mixing the two supported citation/bibliography syntaxes: org-ref and the WIP Org built-in syntax. Your citations are according to the org-ref syntax (they are cite links) but the bibliography specifications are Org keywords instead of a single org-ref bibliography link. Unless you want to experiment with the WIP built-in syntax which requires a seperate Org branch you should use bibliography links, that is, just have a single

bibliography:~/zotero.bib

line where you have "#+BIBLIOGRAPHY: here" now, and the starting '"#+BIBLIOGRAPHY: ~/zotero.bib" should be removed as well. I hope these changes will solve the problem.

matzebond commented 3 years ago

You are absolutely right. I misread the readme but it's very clearly stated there. Exporting to html works fine and the Notes heading is not exported. Thanks!