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

Error with particular csl and one word author #109

Closed a-typhoon closed 2 years ago

a-typhoon commented 2 years ago

Using:

+cite_export: csl ~/Templates/csl/AGLC-intext.csl

where AGLC-intext.csl is a custom csl file.

The CSL file may be found at http://www2.austlii.edu.au/~alan/AGLC-intext.csl

The file validates at https://validator.citationstyles.org/

Exporting to html gives this error:

"citeproc-s-slice-by-matches: Wrong type argument: stringp, nil"

The error does not occur with different csl files.

The export chokes on bibtex entries that have a single word for the author field.

author = {BIS} chokes author = {{BIS}} chokes author = {{Bank for International Settlements}} works just fine.

The bibtex entry is:

@techreport{international18:_annual_econom_repor, title = {Annual Economic Report 2018}, author = {{Bank for International Settlements}}, year = 2018, address = {Basle}, institution = {{Bank for International Settlements}} }

System is:

Emacs 27.1 on Debian stable. Org verion 9.5.4 from Melpa-stable

andras-simonyi commented 2 years ago

Thanks for reporting this and sorry for reacting only now! I've merged a PR (#110) which should fix the problem -- the new version should become available in MELPA in a few hours.

a-typhoon commented 2 years ago

Thanks for the fix, Andras, and thanks for a great package.

Cheers, Alan

On Sun, 19 Jun 2022 at 17:24, András Simonyi @.***> wrote:

Thanks for reporting this and sorry for reacting only now! I've merged a PR (#110 https://github.com/andras-simonyi/citeproc-el/pull/110) which should fix the problem -- the new version should become available in MELPA in a few hours.

— Reply to this email directly, view it on GitHub https://github.com/andras-simonyi/citeproc-el/issues/109#issuecomment-1159638996, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKQJQE4BFEI6JS5MIDWOP3DVP3DMHANCNFSM5X6MEQDQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Alan L Tyree http://www2.austlii.edu.au/~alan