zepinglee / citeproc-lua

A Lua implementation of the Citation Style Language (CSL)
MIT License
62 stars 7 forks source link

default for no defined style #43

Closed hvoss49 closed 9 months ago

hvoss49 commented 9 months ago

If no style is defined we get the warning message

Package citation-style-language Warning: Style name not specified.

which is okay. But it is more user-friendly if it could use a default style, apa or whatever:

    Package citation-style-language Warning: Style name not specified.
    Will use default style apa ...

The problem is that the warning will be an error when running citeproc-lua

[...]
Database file #1: biblatex-examples.bib
.../scripts/citation-style-language/citeproc-latex-core.lua:218: attempt to concatenate a nil value (local 'style_name')
[...]
zepinglee commented 9 months ago

If no style is defined we get the warning message

Package citation-style-language Warning: Style name not specified.

which is okay. But it is more user-friendly if it could use a default style, apa or whatever:

    Package citation-style-language Warning: Style name not specified.
    Will use default style apa ...

Thanks for your feedback and it makes sense.

The problem is that the warning will be an error when running citeproc-lua

[...]
Database file #1: biblatex-examples.bib
.../scripts/citation-style-language/citeproc-latex-core.lua:218: attempt to concatenate a nil value (local 'style_name')
[...]

Fixed in 7db1514.