zepinglee / citeproc-lua

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

csl.sty fails with other styles #7

Closed simifilm closed 2 years ago

simifilm commented 2 years ago

I tried example.tex with other .csl styles, but without luck. For example, if I replace plainwith Zeitschrift für Fantastikforschung (Deutsch) which I wrote, the compilation produces all kinds of errors and completely borked pdf (.log attached) example.log .

zepinglee commented 2 years ago

It is because this .csl style requires locales-de-DE.xml which is not installed to TEXMF. You can copy one from citation-style-language/locales to the working directory. After that the example works for me. I'm planning to pack all the locale files in citation-style-language/locales together when publishing to CTAN and there will be no need to perform the copying.

Currently the module_error function from LaTeX2e kernel (ltluatex.dtx) is used to raise an error. This function always prints the stack traceback, which may be very long and makes it difficult to read. I'll figure out a way to give cleaner error messages.

simifilm commented 2 years ago

With locales-de-DE.xml it works. Thanks!