andras-simonyi / citeproc-el

A CSL 1.0.2 Citation Processor for Emacs.
GNU General Public License v3.0
85 stars 9 forks source link

Problem with specific CSL styles #13

Closed cadr10 closed 3 years ago

cadr10 commented 3 years ago

Hello. When I try to export to html using these two csl files:

https://www.zotero.org/styles/associacao-brasileira-de-normas-tecnicas

https://www.zotero.org/styles/associacao-brasileira-de-normas-tecnicas-ufrgs

The first one gives the error wrong type argument: sequencep, splice The second one: Wrong type argument: listp, "[NO BIBLIOGRAPHY LAYOUT IN CSL STYLE]"

They are specific to these styles, since when I used an Astronomy style https://www.zotero.org/styles/annual-review-of-astronomy-and-astrophysics it worked fine.

Org mode version 9.4 (9.4-27-g47bf60-elpaplus @ /home/cadr/.emacs.d/elpa/org-plus-contrib-20201026/)

GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3) of 2020-08-28

citeproc-org installed with use-package and updated

andras-simonyi commented 3 years ago

Hello, thanks for reporting this! The problem with the first style seems to be bibliography-dependent, I couldn't reproduce it with the same Emacs and Org versions and with a small test bibliography, so it would be useful if you could post the problematic bibliography entry/entries. As for the second style, I managed to reproduce the error, will try to fix it shortly. (Interestingly enough, the error was not reproducible on Emacs 28 with native comp, it might be related to Emacs's xml parsing.)

andras-simonyi commented 3 years ago

(I transferred the issue here, because it turned out to be citeproc-el related.) I think I managed to track down the problem with the second style file and pushed a change which should solve it (https://github.com/andras-simonyi/citeproc-el/commit/ff1608e4f520429de5e54b663a38db422c3d845f). Could you check whether this commit fixes the bug on your system?

cadr10 commented 3 years ago

Hi! Thanks for the quick reply! Updated and I was able to export to html with the second style. After playing around, I exported successfully with the first style. I changed the citation and it worked. Thank you for this package and for the less than 24 hours fix! Really appreciated :-)