* What must I do to get any LUA script to work ? @ 2021-10-01 13:04 ` Vin Cent [not found] ` <1ad4d633-8045-4611-97de-63757c38fa9fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Vin Cent @ 2021-10-01 13:04 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1727 bytes --] 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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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. [-- Attachment #1.2: Type: text/html, Size: 2570 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <1ad4d633-8045-4611-97de-63757c38fa9fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* AW: What must I do to get any LUA script to work ? [not found] ` <1ad4d633-8045-4611-97de-63757c38fa9fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2021-10-01 13:07 ` denis.maier-NSENcxR/0n0 [not found] ` <54c55b4dc2234d6cb0015bb40d8a8ac7-NSENcxR/0n0@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: denis.maier-NSENcxR/0n0 @ 2021-10-01 13:07 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Return s ________________________________________ Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> im Auftrag von Vin Cent <irakay17-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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss+unsubscribe-/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/54c55b4dc2234d6cb0015bb40d8a8ac7%40unibe.ch. ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <54c55b4dc2234d6cb0015bb40d8a8ac7-NSENcxR/0n0@public.gmane.org>]
* Re: What must I do to get any LUA script to work ? [not found] ` <54c55b4dc2234d6cb0015bb40d8a8ac7-NSENcxR/0n0@public.gmane.org> @ 2021-10-01 13:24 ` Vin Cent [not found] ` <0ed66c25-3797-4cf4-986a-92ff787f30cbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Vin Cent @ 2021-10-01 13:24 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 2894 bytes --] 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<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-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. [-- Attachment #1.2: Type: text/html, Size: 5241 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <0ed66c25-3797-4cf4-986a-92ff787f30cbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* AW: What must I do to get any LUA script to work ? [not found] ` <0ed66c25-3797-4cf4-986a-92ff787f30cbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2021-10-01 13:24 ` denis.maier-NSENcxR/0n0 [not found] ` <1178c58675b0461e9f49669ab19d29d2-NSENcxR/0n0@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: denis.maier-NSENcxR/0n0 @ 2021-10-01 13:24 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw It works now? ________________________________________ Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> im Auftrag von Vin Cent <irakay17-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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discus...@googlegroups.com>. 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss+unsubscribe-/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>. -- 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/1178c58675b0461e9f49669ab19d29d2%40unibe.ch. ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <1178c58675b0461e9f49669ab19d29d2-NSENcxR/0n0@public.gmane.org>]
* Re: What must I do to get any LUA script to work ? [not found] ` <1178c58675b0461e9f49669ab19d29d2-NSENcxR/0n0@public.gmane.org> @ 2021-10-01 13:33 ` Vin Cent 0 siblings, 0 replies; 5+ messages in thread From: Vin Cent @ 2021-10-01 13:33 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 4069 bytes --] Yes. My stupid code works with "return s;" at the end of the function. On Friday, October 1, 2021 at 3:25:03 PM UTC+2 denis...-NSENcxR/0n0@public.gmane.org wrote: > It works now? > ________________________________________ > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<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 > >. > -- 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/7bd66ace-26db-4aa0-911d-dc8abe999928n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 7560 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-10-01 13:33 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <AQHXtsTdG14zutCcx0m4OHZQ7WOw7qu+HO0////jS4CAACGgwg==> [not found] ` <AQHXtsTdG14zutCcx0m4OHZQ7WOw7qu+HO0/> 2021-10-01 13:04 ` What must I do to get any LUA script to work ? Vin Cent [not found] ` <1ad4d633-8045-4611-97de-63757c38fa9fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2021-10-01 13:07 ` AW: " denis.maier-NSENcxR/0n0 [not found] ` <54c55b4dc2234d6cb0015bb40d8a8ac7-NSENcxR/0n0@public.gmane.org> 2021-10-01 13:24 ` Vin Cent [not found] ` <0ed66c25-3797-4cf4-986a-92ff787f30cbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2021-10-01 13:24 ` AW: " denis.maier-NSENcxR/0n0 [not found] ` <1178c58675b0461e9f49669ab19d29d2-NSENcxR/0n0@public.gmane.org> 2021-10-01 13:33 ` Vin Cent
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).