From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31230 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Littlewood Newsgroups: gmane.text.pandoc Subject: Re: Pandoc question: toc, lot and lof Date: Tue, 16 Aug 2022 10:16:13 -0700 (PDT) Message-ID: <24f764fe-52ec-409c-ae5c-d0b718a09fa8n@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_648_631798424.1660670173287" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18476"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDXOJT5EVYPBBXVB56LQMGQEKWDRWRY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 16 19:16:18 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f184.google.com ([209.85.128.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oO0Ar-0004fS-SM for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 16 Aug 2022 19:16:17 +0200 Original-Received: by mail-yw1-f184.google.com with SMTP id 00721157ae682-32e6a92567bsf116815727b3.10 for ; Tue, 16 Aug 2022 10:16:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc; bh=8e5dXQ0tTrhcPTcAmgb393UVqzJPRF1B2q6QI4XLTDY=; b=p7ffeiZsgVBm8Be7HJXqxhKmZYhMqklnufknFFcFOagnl3erGgzD+q85aOEp8k/uge m9mVgbT1ProVj350ySSfcdiFr8spJgnYPpF3cUra2US4dFb2CJ9ZoELM7FUIDv2evhzn V6LtzIoIzKxQpUZhT18cP3tmjmTKMEpWL5z2QJSGmA+5GQ3NjAV0smP6G1kWf8X/zXAL 06bd+SFT2uCyK4KoHmixuqcngClazEcPif+WGW8jqLNxojg91Bcg5+2S+PbemlgaeQrN IfSubKlGl22UJ08QHCY5w4rtZYfiyNbxeHiHMtCD5ltviOjshfWVAPi1+vOwhdKNMGCj V7eg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc; bh=8e5dXQ0tTrhcPTcAmgb393UVqzJPRF1B2q6QI4XLTDY=; b=LS+txYyZ9WZqfRUBzV4746BWXTTVXjH24XZIq/5QtYAthqS5iN/GnGmc+bt3b8vOGu 8yqTuPy77JlWgaSs0o7iXGyOS4iKADXmBjc0JuabuoYxaj51rHMwpQaA9Ohmr9eTCKaa L+/3ZKhdPuBvQCB59/wIo1xhBlI/QDgwWTMKjSfaBBYbvSa4Y1AVnzAdrpWgQCtPyZJR YnAL0lN9mxk6rXRhmI4VE0xvD7SIB9M5shdd/wZewKfld0cKF+5f5rcNDNJh8W2labbc GX+X0CTz+o3NTor/qS3nLkojBqcFNVzcXWqmfuExWAV1AB3SnYgHP5mDWkigtoDpsAub NQDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc; bh=8e5dXQ0tTrhcPTcAmgb393UVqzJPRF1B2q6QI4XLTDY=; b=2jff/X7+ycXQ4C/EzledHZiS3PpW5I1EIIS+0QdhVkThQ/OdiNpmpDz8BBd+/nghNA qF6Gpsyt6iqHkoEbTogiEKe4gzsaenvcVhivdEJHfIaPLo+KjcCVgbWygzIj2vYIBgEq 69nsTdt4fmEwpQbD23iiW6BlrfHi9VrAxToJwlVkHH3UcT1Qx1PdzpSeoWsDvGLgWJ4m 5KOR8YO5dQ3sZ68OA8bqWDtfK/jmXoIenPVjS3nJZmkKKzkQtnYV9bl6j35pEcDlXftJ U4PEcv6vM0zmGA1XO8DjRNHmVHzs14VM6OdrXAxBC18splwcXjSR1fky/bHGsHDYNOUR ATzw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACgBeo0egmR0iURz+mQ6VKL9W1s4DFp22/ePAiGiwZCS5XdXDq7GMFHR YWM/HBV8Mf+A1sEK8LTdWww= X-Google-Smtp-Source: AA6agR4sv1ST8PTpqaCtvtjsgYEzTMlA8KPGYwuqSqSIuqUQ7A01+i3Kr5plRbNsFTgSp5lxNej9Iw== X-Received: by 2002:a81:c12:0:b0:32a:14da:c28c with SMTP id 18-20020a810c12000000b0032a14dac28cmr17661812ywm.474.1660670176717; Tue, 16 Aug 2022 10:16:16 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:db92:0:b0:67c:298e:a66c with SMTP id g140-20020a25db92000000b0067c298ea66cls7508546ybf.5.-pod-prod-gmail; Tue, 16 Aug 2022 10:16:14 -0700 (PDT) X-Received: by 2002:a05:6902:120d:b0:677:7cf2:4634 with SMTP id s13-20020a056902120d00b006777cf24634mr16697689ybu.149.1660670173842; Tue, 16 Aug 2022 10:16:13 -0700 (PDT) In-Reply-To: X-Original-Sender: danielittlewood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:31230 Archived-At: ------=_Part_648_631798424.1660670173287 Content-Type: multipart/alternative; boundary="----=_Part_649_836582931.1660670173287" ------=_Part_649_836582931.1660670173287 Content-Type: text/plain; charset="UTF-8" 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)$ $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. ------=_Part_649_836582931.1660670173287 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 woul= d pass it in as a variable (-V) and alter the output template to decide wha= t to do with it.

In my case, I have a custom HTML template containin= g

$if(favicon)$

   <
link rel=3D"icon" href
=3D"$favicon$" type=3D"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=3D"/d.png" -f markdown = -t html --template=3D"custom-template.html"
<= span>
I don't think this is very fl= exible, 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...@gma= il.com wrote:
Hi all,
I wanted to ask why there's no global --lot=C2= =A0 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 conve= rsion? I need to replace a variable taking it from git (I need to extract t= he 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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.
------=_Part_649_836582931.1660670173287-- ------=_Part_648_631798424.1660670173287--