Yes. My stupid code works with "return s;" at the end of the function.
It works now?
________________________________________
Von: pandoc-...@googlegroups.com <pandoc-...@googlegroups.com> im Auftrag von Vin Cent <irak...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Gesendet: Freitag, 1. Oktober 2021 15:24:21
An: pandoc-discuss
Betreff: Re: What must I do to get any LUA script to work ?
Thank you.
On Friday, October 1, 2021 at 3:07:22 PM UTC+2 denis...-NSENcxR/0n0@public.gmane.org wrote:
Return s
________________________________________
Von: pandoc-...@googlegroups.com <pandoc-...@googlegroups.com> im Auftrag von Vin Cent <irak...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Gesendet: Freitag, 1. Oktober 2021 15:04:21
An: pandoc-discuss
Betreff: What must I do to get any LUA script to work ?
Greetings,
I have been spending time pulling my hair and reducing my code and ambitions.
Now (based on the BlockCode example from my LUA code is simply reduced to :
function Span(s)
s.identifier = "ggg";
end
I based that on examples I found here : https://issueexplorer.com/issue/lierdakil/pandoc-crossref/319
and based on the Span description from https://pandoc.org/lua-filters.html
My very obvious expectation is that any generated span element has a "ggg" identifier.
I don't know how I could define a more trivial function. However, nothing ever works.
This started with comparisons and real code. Since nothing works, I have reduced it to this oneliner, which still doesn't.
When I compile my (.tex) code (into epub), this continues producing blocks such as :
<p><span id="fig:LettreChessCarleyCo" label="fig:LettreChessCarleyCo">[fig:LettreChessCarleyCo]</span></p>
My compilation is run with this command :
pandoc -L ../pandocLabelFilter.lua -Fpandoc-crossref -o ebook.epub epub.tex --epub-metadata=metadata.xml --epub-cover-image=IMG/couverture.jpg --toc --toc-depth=2 --resource-path=IMG/ --default-image-extension=jpg
../pandocLabelFilter.lua contains what I pasted above.
So, what must I do additionnally so that any LUA code accepts to be run for real ?
Thanks,
Vincent
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discus...@googlegroups.com<mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1ad4d633-8045-4611-97de-63757c38fa9fn%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/1ad4d633-8045-4611-97de-63757c38fa9fn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discus...@googlegroups.com<mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0ed66c25-3797-4cf4-986a-92ff787f30cbn%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/0ed66c25-3797-4cf4-986a-92ff787f30cbn%40googlegroups.com?utm_medium=email&utm_source=footer>.