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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org im Auftrag > von Vin Cent > 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 : > >

label="fig:LettreChessCarleyCo">[fig:LettreChessCarleyCo]

> > 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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.