From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33055 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: pandoc-include filter Date: Mon, 14 Aug 2023 16:54:54 +0100 Message-ID: References: <7de5029a-c8b8-4f17-bf76-fdf1abd522b0n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000fae4bb0602e415fd" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5487"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBW445GTAMGQEZNH552I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 14 17:55:12 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f185.google.com ([209.85.208.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qVZuS-0001FL-DK for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 14 Aug 2023 17:55:12 +0200 Original-Received: by mail-lj1-f185.google.com with SMTP id 38308e7fff4ca-2b8405aace3sf43306321fa.3 for ; Mon, 14 Aug 2023 08:55:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1692028512; cv=pass; d=google.com; s=arc-20160816; b=X+rNRJxPxaE5aoEtPsJlW2A/XH63sF/XxnBPdG10ZcqsyWSnjmMh8swM2U8tlspVI9 fc63nnaAcv2SL/ZZj0pufW7s6f4l2ajtgVKssa1SXyYumkeu7pLbQW0TqD3CIB4r6B92 ZoXUzGfzlVLJj17GYwWYIJUVfKjQS917kjKvcp3n9LRq7D87ScFYpsCDyBRjbjKgA3SX mv2hxyn8I6C2YiI/WWVEBLnM7+EG1vQtDI0kVIW54+AfFNGUwM+YXFO5zYOUWka8EBRJ QZ6snGCgF8q9CK6hfmC45nkj+v3HJrXeuc6/ThJ70b0EOVmWnU8siA8y10Ov2oq9a+6N 6PiA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:dkim-signature; bh=JGJPypLzZsz+Vqs6WsAPRBH6+E7HXHFPxc3QANB8okE=; fh=qJmsSccMvP84+2UNRX8q/vpYH8nRtRt8EIzTbS8P9qg=; b=F8/0UNzjupa3uawgtetKS7yjqkX7cJCbjleRzoyF8IyBEvsJkf+D7T79WsSTFXKbKI tfOrbQYLQbt3fGeOK8Y4pD6KELO3sJfhAKfxM/eZvD4HUXL0PYFxFmBByCqviEJmQ6Gh N361Am5mbVIKI4V5+ZBc5R0fDqIEH9ZUmNRuobdLfktpOzP9/qDteRWc5P3JDPaEjkPn 5dxwHOhRv7ku7sKfj2PlGxU4B4/dkn6+dCg5uCjBBcY3DuXrpFpuNlLvIws3plvXg9Yr ir99K9jRUWBFLrlEOqR7fIwLVqK9sb2kbgZ0clL9KJnZ7r2ZXFXcs53sJQS7ewlsuUKC 1aVg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=Hv2V1v+s; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62c as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1692028512; x=1692633312; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=JGJPypLzZsz+Vqs6WsAPRBH6+E7HXHFPxc3QANB8okE=; b=LwO+RB4sN0+b18gWzZt2jH1ty782QA40IPEfSDFrn7QAptQCrU/gsj9SBABtCVssUn id6N4JpdQE9I5oW40j1/Zi7uDgG5RBjxcDWr2Xv3Q3WAZAqqtv51yAWqkVT81IYjj5aV JgtnY1jiMSNxZ5DZ69jHVCCOdG5CfNMuLXQ/EIW2wM1HIuufnddV9QTL8ZjLv5glnEiz u5WYeXsUyS5xsGyVJg8VnAxZEO91UjQe9sPcMQXcUr31OFyf/pOqxbvRo1bPaBZP/6Tg AajyoDhh1S9EUps8bqrxV9XJPHpUMxqwgl0v7iPahHtCzwFpI/2JzRvl/4tm/sbxP0iC sC X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692028512; x=1692633312; 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-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JGJPypLzZsz+Vqs6WsAPRBH6+E7HXHFPxc3QANB8okE=; b=GzhADle/14xDI7JKCNjCEe/2FyydDVNI9WLWGtlNPaZ7KousbajI6z0K1LXVeEKYd3 S6yjqLgg96ESnjEtf5KYVabenxabsFXoO0aicnJcEu/VcXa3QKW+MbBa2nC3lZfXLf9n YJrZIsihlJr8YpJbeSK4A8v/HydvficNrB76SukDznQ/A7iIjPTAIaUGU5sBI6n4Llk4 tceq7lpZfQjSVR1GzlSFE5m9LuCMOKygrAYCrK8sFW+SpRqoUNSi0Fss+juqtVD3faJw W9qQNJwA8FlHr X-Gm-Message-State: AOJu0YwZHImVsRlDFZBHDeEjnPgsXPAiYQaE76Puz3Kc/JjCYurbs4yN U3kvA1Hed03dPfHhiS4Qw4o= X-Google-Smtp-Source: AGHT+IEcMCWCJqjTnYsSWXUR4GuOWJkDfECPARlzHzQVHS1RUtIuhjnAyL6+Tn1yskL8qd7L1K3TTw== X-Received: by 2002:a2e:a41a:0:b0:2b9:20fe:4bc4 with SMTP id p26-20020a2ea41a000000b002b920fe4bc4mr6825436ljn.40.1692028511616; Mon, 14 Aug 2023 08:55:11 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:b5dc:0:b0:2b9:57fb:fcf1 with SMTP id g28-20020a2eb5dc000000b002b957fbfcf1ls356426ljn.1.-pod-prod-05-eu; Mon, 14 Aug 2023 08:55:06 -0700 (PDT) X-Received: by 2002:a2e:9ecd:0:b0:2bb:7345:aa31 with SMTP id h13-20020a2e9ecd000000b002bb7345aa31mr2737814ljk.17.1692028505934; Mon, 14 Aug 2023 08:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692028505; cv=none; d=google.com; s=arc-20160816; b=Op9WIqj39sk3wWDnnZofqvM8ze/ipzgqeUXmCreMbf96pO8XZ9Fhkbf4PCK5JzsLiU IDN7Z9BfTtivtUP2Gr++UWRlQfBQKxhqONQwZqkFai6BZvp0mHkmJvPDWjEtjRlBlONG 5FgqHJWAZuUPKgo7pEQbwR/frZdWOGRiLW6ajNvwvYeNY8+QKOPS8WJNgEKOqKicbFZL /k5lVBwNsbP6K3e9LqeD5rHGZpvkMMdJTcpd6nU55qYPt7S5HZT2bnUddPhY/9hqor67 nhYD3nA/WtXVF6lZVNTAHUKEj97SdRug6LcVNvWeJemqp3LVJRXa54bF9P2Q+IGsLCZB xMoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=82vARGFWA/ddkaQLZVtk1VaYm2tOUcwcUTSOgyPCjLk=; fh=JyGgpuKdcZS0s4/2AUuqQC96oyYQ9WoOW+YyK1eWgPc=; b=KGopbX+fYj3T7ARCtzb8DLOj6bT6/vcCw60Jeg7rxrefnAsLNcLtV0uxH4HIHkeR6d ygvnfZ06K0K13ntku9CXc7OFmxLG3DgHI338QrhmLNcAO+Mf/fhmlTlHhxVDTsrg5gfO 5SEY1sHMHXhaAotaCsvxF/rNFrW24N7Yv49zMmSoVdLDyx4VIQRKQAGZGQQviMy2Pbqu 5MzQrtn/cwyYAYzUlGFUD8w49Ih5ibnP43JaixjwZxwJp2RHImAAs6pgyiIjR/vkBVVT zw5JobrT3RRPcx4/l4EFmjpnmZQfl5BI6ZDZN31YdHs5Jn3JC2ntsG+vvl0fUNUbMR9G Rb4Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=Hv2V1v+s; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62c as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org Original-Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com. [2a00:1450:4864:20::62c]) by gmr-mx.google.com with ESMTPS id m18-20020a2ea592000000b002b96150efccsi794931ljp.0.2023.08.14.08.55.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Aug 2023 08:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62c as permitted sender) client-ip=2a00:1450:4864:20::62c; Original-Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-99c3d3c3db9so602035666b.3 for ; Mon, 14 Aug 2023 08:55:05 -0700 (PDT) X-Received: by 2002:a17:906:53:b0:98c:e72c:6b83 with SMTP id 19-20020a170906005300b0098ce72c6b83mr7582798ejg.45.1692028504818; Mon, 14 Aug 2023 08:55:04 -0700 (PDT) In-Reply-To: X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=Hv2V1v+s; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62c as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org X-Original-From: William Lupton 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:33055 Archived-At: --000000000000fae4bb0602e415fd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable >From the docs: *"The pandoc-options option is a list to specify the pandoc options when recursively processing included files."* I guess the filter must invoke pandoc in this case, and these are the options that it passes to it? On Sat, 12 Aug 2023 at 21:35, Guido Milanese wrote: > Thank you. My defaults file was in the wrong place indeed. However, it > seems to me that this instruction in the header of input files, as > suggested in the pandoc-include manual: > > pandoc-options: > - filter=3Dpandoc-include > > remains useless; without an explicit call either in the defaults file or > in command line nothing happens. I also tried to locate some documentatio= n > about "pandoc-options" in the manual (most recent edition, 2 days ago) bu= t > to no success. In R markdown there is a "pandoc_options" (with underscore= ), > but I can't make sense of it in Pandoc-markdown. > > Thanks again! > > Il giorno venerd=C3=AC 11 agosto 2023 alle 11:45:57 UTC+2 William Lupton = ha > scritto: > >> Try removing the '--': >> >> filters: >> - pandoc-include >> >> But you should have got an error, so I'm wondering whether you were >> successfully including the defaults file (note that, unless you've set y= our >> data directory to $HOME, it won't be searched for in $HOME/defaults). Fo= r >> testing, I suggest putting it in the current directory. >> >> On Fri, 11 Aug 2023 at 09:51, Guido Milanese >> wrote: >> >>> I have successfully installed pandoc-include ( >>> https://pypi.org/project/pandoc-include/) and I run it calling the >>> filter as usual: >>> >>> pandoc =E2=80=94filter=3Dpandoc-include test.md -o test.pdf >>> >>> The filter is a python=E2=80=94panflute filter. >>> >>> The pandoc-include documentation suggests to add this item to the >>> document header: >>> >>> pandoc-options: >>> - --filter=3Dpandoc-include >>> >>> but it seems ineffective, since an explicit call of the filter in the >>> command line is necessary. >>> >>> I also added to ${HOME}/defaults/defaults file this line: >>> >>> filters: >>> - --pandoc-include >>> >>> but again nothing happens. >>> I=E2=80=99m sure I=E2=80=99m missing some basic step, and I am grateful= in advance for >>> your kind help. >>> >>> guido (northern Italy) >>> Disclaimer: I have already asked the same question in the pandoc-includ= e >>> discussione group. >>> >>> -- >>> 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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/7de5029a-c8b8-4f17-bf7= 6-fdf1abd522b0n%40googlegroups.com >>> >>> . >>> >> -- > 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/a9928d39-a1de-4e7c-bba0-= caf3f445a61fn%40googlegroups.com > > . > --=20 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 e= mail 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/CAEe_xxgQROX50pS0cU4bN-KtqXgVr%3D2-kfMrdiwAJbqsgU8-cA%40mail= .gmail.com. --000000000000fae4bb0602e415fd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
From the docs:

"The pandoc-opti= ons option is a list to specify the pandoc options when recursively process= ing included files."

I guess the filter must in= voke pandoc in this case, and these are the options that it passes to it?

On Sat, 12 Aug 2023 at 21:35, Guido Milanese <guido.milanese-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Thank you. My defa= ults file was in the wrong place indeed. However, it seems to me that this = instruction in the header of input files, as suggested in the pandoc-includ= e manual:

pandoc-options:
=C2=A0 - filter= =3Dpandoc-include

remains useless; without an= explicit call either in the defaults file or in command line nothing happe= ns. I also tried to locate some documentation about "pandoc-options&qu= ot; in the manual (most recent edition, 2 days ago) but to no success. In R= markdown there is a "pandoc_options" (with underscore), but I ca= n't make sense of it in Pandoc-markdown.

Thank= s again!

Il giorno venerd=C3=AC 11 agosto 2023 alle 11:45:57 UTC+2 Will= iam Lupton ha scritto:
Try removing the '--':

f= ilters:
=C2=A0 -=C2=A0 pandoc-include

But y= ou should have got an error, so I'm wondering whether you were successf= ully including the defaults file (note that, unless you've set your dat= a directory to $HOME, it won't be searched for in $HOME/defaults). For = testing, I suggest putting it in the current directory.

On Fri, 11 Aug 2023 at 09:51, Guido Milanese <guido.m...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

I have successfully installed pandoc-include (https://pypi.org/project/pandoc-include/) and I run it call= ing the filter as usual:

pan= doc =E2=80=94filter=3Dpandoc-include test.md -o test.pdf

The filter is a python=E2=80=94panflute f= ilter.

The pandoc-include documentation suggests= to add this item to the document header:

pandoc-options:
=C2=A0 - --filter=3Dpa= ndoc-include

but it seems ineffective, since an ex= plicit call of the filter in the command line is necessary.

I also added to ${HOME}/defaults/defaults= file this line:

filters:
=C2=A0 -=C2=A0 --pandoc-inclu= de

but again nothing happens.
I=E2=80=99m= sure I=E2=80=99m missing some basic step, and I am grateful in advance for= your kind help.

guido (northern Italy)
Disclaimer: I h= ave already asked the same question in the pandoc-include discussione group= .

--
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 pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7de5029a-c8b8-= 4f17-bf76-fdf1abd522b0n%40googlegroups.com.

--
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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https= ://groups.google.com/d/msgid/pandoc-discuss/a9928d39-a1de-4e7c-bba0-caf3f44= 5a61fn%40googlegroups.com.

--
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://group= s.google.com/d/msgid/pandoc-discuss/CAEe_xxgQROX50pS0cU4bN-KtqXgVr%3D2-kfMr= diwAJbqsgU8-cA%40mail.gmail.com.
--000000000000fae4bb0602e415fd--