zepinglee / citeproc-lua

A Lua implementation of the Citation Style Language (CSL) for use with LaTeX
MIT License
64 stars 7 forks source link

Cant get get it to work at all #68

Closed Beakcraft closed 1 month ago

Beakcraft commented 2 months ago

Describe the bug I have many Errors depending on what i tried can elaborate if needed. I just cant get citations to run at all.

Additional information

To Reproduce Try Windows, Texlive2024 on windws, emacs on msys2, auctex, having .bib file in same folder, having austrian-legal.csl downloaded in same folder (or the azr austrian one) having local variables set to luatex and utf-8. running latexmk with What i want to happen is pressing C-c C-a and having s synced pdf with sourced opening/updating. It works with bibtex fine, but i need a specific citation style.

One Error is: The lua interpreter ran into a problem, so the remainder of this lua chunk will be ignored.

the other one is : command failed with exit code 12:perl.exe c:\texlive\2024\texmf-dist\scripts\latexmk\latexmk.pl -lualatex --synctex=1 -interaction=nonstopmode -file-line-error "main.tex"

When does wich error occour? No freaking idea, somtimes it compiles then no citation (first error) sometimes it doesnt compile at all (2nd error). Running from a clean slate never works. C-c C-c commands first makes C-cC-a work without references. I am not even sure if latexmk works with lua. Anyways it does not work standalone anyways (error 1). What i need is, how can i get my citation requirements working? what should i put in my init.el file?? what in my local variables? whatin my .tex file? § - and other signs need to work too. but getting that to work with lua on filepaths made me just not use special charakters. But inportant the Special Charakters need to work in the .bib file too (either with latex commands or just work planely)

If needed i can add my latex code, and my init.el code and my file setup

maybe you can direkt me to a thread that has proper emacs setup, and latex setup until then i will use bibtex since i have been learning emacs and latex auctex in the last 20 days and only have 8 days left to start and finish writing my thesis xD.

zepinglee commented 2 months ago

Can you provide a small LaTeX example as in #67 so that I can reproduce the errors?

One Error is: The lua interpreter ran into a problem, so the remainder of this lua chunk will be ignored.

What is the error message? A typical Lua module error is like the following and the message is very useful to me.

...exmf/scripts/citation-style-language/citeproc-engine.lua:113: attempt to concatenate a nil val
ue
stack traceback:
        ...exmf/scripts/citation-style-language/citeproc-engine.lua:113: in function '
citeproc.new'
        .../scripts/citation-style-language/citeproc-latex-core.lua:238: in function '
citeproc-latex-core.init'
        ...texmf/scripts/citation-style-language/citeproc-latex.lua:33: in function 'c
iteproc-latex.init'
        [\directlua]:1: in main chunk.
\lua_now:e #1->\__lua_now:n {#1}

l.19 \begin{document}

I am not even sure if latexmk works with lua.

The citation-style-language is expected to work with latexmk -lualatex.