* Pandoc question: toc, lot and lof @ 2022-08-16 16:42 Nicola Lunghi [not found] ` <bcd6b309-d37a-4dd2-94c4-9247fba23c44n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Nicola Lunghi @ 2022-08-16 16:42 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 921 bytes --] Hi all, I wanted to ask why there's no global --lot and --lof options in pandoc as it is for --toc? I want to add both to the docx writer (halfway there) how can I check from the option if the user has requested them? What is your opinion they should be added to the general options? question n2: - how can i preprocess the document before the conversion? I need to replace a variable taking it from git (I need to extract the latest document version and add it to the generated doc file. Thanks, Nick -- 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/bcd6b309-d37a-4dd2-94c4-9247fba23c44n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 1342 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <bcd6b309-d37a-4dd2-94c4-9247fba23c44n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Pandoc question: toc, lot and lof [not found] ` <bcd6b309-d37a-4dd2-94c4-9247fba23c44n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2022-08-16 17:02 ` John MacFarlane 2022-08-16 17:03 ` John MacFarlane 2022-08-16 17:16 ` Daniel Littlewood 2 siblings, 0 replies; 4+ messages in thread From: John MacFarlane @ 2022-08-16 17:02 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw It would be desirable, I think, to have these. Go ahead and put something up on the issue tracker. > On Aug 16, 2022, at 9:42 AM, Nicola Lunghi <nick83ola-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi all, > I wanted to ask why there's no global --lot and --lof options in pandoc as it is for --toc? > I want to add both to the docx writer (halfway there) how can I check from the option if the user has requested them? > > What is your opinion they should be added to the general options? > > question n2: > - how can i preprocess the document before the conversion? I need to replace a variable taking it from git (I need to extract the latest document version and add it to the generated doc file. > > Thanks, > Nick > > -- > 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/bcd6b309-d37a-4dd2-94c4-9247fba23c44n%40googlegroups.com. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Pandoc question: toc, lot and lof [not found] ` <bcd6b309-d37a-4dd2-94c4-9247fba23c44n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2022-08-16 17:02 ` John MacFarlane @ 2022-08-16 17:03 ` John MacFarlane 2022-08-16 17:16 ` Daniel Littlewood 2 siblings, 0 replies; 4+ messages in thread From: John MacFarlane @ 2022-08-16 17:03 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw > > question n2: > - how can i preprocess the document before the conversion? I need to replace a variable taking it from git (I need to extract the latest document version and add it to the generated doc file. Probably a Lua filter is what you want. See the documentation on Lua filters on the website. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Pandoc question: toc, lot and lof [not found] ` <bcd6b309-d37a-4dd2-94c4-9247fba23c44n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2022-08-16 17:02 ` John MacFarlane 2022-08-16 17:03 ` John MacFarlane @ 2022-08-16 17:16 ` Daniel Littlewood 2 siblings, 0 replies; 4+ messages in thread From: Daniel Littlewood @ 2022-08-16 17:16 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1766 bytes --] Hi Nick. I don't know about your first question, but for your second I have done something similar in my site. Assuming that the version string comes from the command line at compile time, I would pass it in as a variable (-V) and alter the output template to decide what to do with it. In my case, I have a custom HTML template containing $if(favicon)$ <link rel="icon" href="$favicon$" type="image/icon type"> $endif$ and my invocation of pandoc looks something like this (you could replace "/d.png" by a shell expansion) pandoc -V favicon="/d.png" -f markdown -t html --template="custom-template.html" I don't think this is very flexible, but I'm not sure how to write a filter that does it. On Tuesday, August 16, 2022 at 5:42:30 PM UTC+1 nick...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > Hi all, > I wanted to ask why there's no global --lot and --lof options in pandoc > as it is for --toc? > I want to add both to the docx writer (halfway there) how can I check from > the option if the user has requested them? > > What is your opinion they should be added to the general options? > > question n2: > - how can i preprocess the document before the conversion? I need to > replace a variable taking it from git (I need to extract the latest > document version and add it to the generated doc file. > > Thanks, > Nick > -- 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/24f764fe-52ec-409c-ae5c-d0b718a09fa8n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 2856 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-08-16 17:16 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-08-16 16:42 Pandoc question: toc, lot and lof Nicola Lunghi [not found] ` <bcd6b309-d37a-4dd2-94c4-9247fba23c44n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2022-08-16 17:02 ` John MacFarlane 2022-08-16 17:03 ` John MacFarlane 2022-08-16 17:16 ` Daniel Littlewood
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).