From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33050 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Guido Milanese Newsgroups: gmane.text.pandoc Subject: Re: pandoc-include filter Date: Sat, 12 Aug 2023 13:35:50 -0700 (PDT) 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/mixed; boundary="----=_Part_15982_1265344993.1691872550019" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27467"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDA67UUSU4JRBKG236TAMGQEQ3XCECI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Aug 12 22:35:59 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f60.google.com ([209.85.216.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qUvL4-0006sX-1p for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 12 Aug 2023 22:35:58 +0200 Original-Received: by mail-pj1-f60.google.com with SMTP id 98e67ed59e1d1-268113acd37sf4856441a91.0 for ; Sat, 12 Aug 2023 13:35:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1691872556; x=1692477356; 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:subject:date:message-id:reply-to; bh=WZSYOlj8Wmr2JT95E/1oR+7v0OIyCx55IH1FGtz7xwQ=; b=ScVzfL+CAcKYhocVDVtNGjAyV/sahEDwkr61ZxtWeiLNoCl/QRCpPqymN/mtgkC2Fk Q/kls5q38KAKq7PBKFhK5M0rreFD/ozH6719nJpV2lhwqZusK30gFfad4F0cjI2hNNwL lDkJHTURgVpjiZmfr0JBuGxcvL/BSnqfogc10ZFStpUUOK9/7H4bQwdK75M06AiKK6cX STcyerx6sMkBDCLArSuCKmpDs2MRjA08NfY1TqZ6sJoRnyysBuLl6EZuZLiJ+0Btu7V1 HRYczwKZL7DQnSnSRAnVLllRJlXVsyxC2n3N3rSwa5T2WqT4j9qo4aFW5SO5up76t3gu 8aAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691872556; x=1692477356; 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:subject:date:message-id:reply-to; bh=WZSYOlj8Wmr2JT95E/1oR+7v0OIyCx55IH1FGtz7xwQ=; b=jtpPV43A+DkC9TTTEjDBw9wEIkkxqQLDk/tbDLynylt5i86EDxk90hcQ9APeNZd/GF oBhth8B9gcwZ6wtECa8940XzoJsbVZzFrQ9N0JhgC8FEdT229UtszaYHxH22TxWdE1ew qc6wp+hBrXbVnMsK0p1fil0faVXUAouNhb3lJYgjkXbeYyH+wBAA2JR11GWaOi6ChHGy OujX+IdSvniGJ3IFjf/WRq6al4ED13j7fI5OHVezLKrOKyPYANAk5fNqI5wwzVtPPO+d GB6EgWCOLlkzYP4vZPxiHYLKbPz6nMchHHNXkjNF4dKDb5mlpOfNAuisAPJ3Z+ZTtkWH Ddrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691872556; x=1692477356; 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-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=WZSYOlj8Wmr2JT95E/1oR+7v0OIyCx55IH1FGtz7xwQ=; b=S0taKp3dG83vYQ41JspHi3lSFO10XR8foXF8IYeE2csYLk8QTJtxm1u5bsQoq2Cw98 86GzFT8v+IUlOL+DJtF3cZ7PT8BVYOPMJl45t0wQdhymZeNQAuwUL8dGkF01/DsPHmVU RWeVP+B5yIX8Xbyw/MkRW8dGwsvA6U7Kg66mpcdwtQpUE+5Fj6tay1N0B8sVfjVaz1/r FRDL4yjbN9R6iv6L6PYZr1LSa7sgVLahgLfSL/fBsNYb/yZ5AeVHihFESd16LLAI/e3P b+OGR/mC+D+KDZvOvp3psWePaKW5cftJeen7hXHsISLxFML05v Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YwEr4+6di7YByhC8ULYufBmoz5jadSOsslJp9uip8AbMi25GaBQ 42y7DLVSfaeIeH/BF/5ilzk= X-Google-Smtp-Source: AGHT+IGnTjvp673He7EIxTLQmHgX++GJysZdSyP9WlXR+xm8t/DeY1pSJrUuv2fDOQENe2JyWZi01w== X-Received: by 2002:a17:90b:3c5:b0:26b:db8:2973 with SMTP id go5-20020a17090b03c500b0026b0db82973mr10434907pjb.5.1691872556262; Sat, 12 Aug 2023 13:35:56 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90b:3693:b0:268:5b21:518c with SMTP id mj19-20020a17090b369300b002685b21518cls2111315pjb.1.-pod-prod-01-us; Sat, 12 Aug 2023 13:35:51 -0700 (PDT) X-Received: by 2002:a17:902:ce84:b0:1bb:91c9:d334 with SMTP id f4-20020a170902ce8400b001bb91c9d334mr2210064plg.0.1691872550970; Sat, 12 Aug 2023 13:35:50 -0700 (PDT) In-Reply-To: X-Original-Sender: guido.milanese-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:33050 Archived-At: ------=_Part_15982_1265344993.1691872550019 Content-Type: multipart/alternative; boundary="----=_Part_15983_1191052895.1691872550019" ------=_Part_15983_1191052895.1691872550019 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you. My defaults file was in the wrong place indeed. However, it=20 seems to me that this instruction in the header of input files, as=20 suggested in the pandoc-include manual: pandoc-options: - filter=3Dpandoc-include=20 remains useless; without an explicit call either in the defaults file or in= =20 command line nothing happens. I also tried to locate some documentation=20 about "pandoc-options" in the manual (most recent edition, 2 days ago) but= =20 to no success. In R markdown there is a "pandoc_options" (with underscore),= =20 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= =20 scritto: > Try removing the '--': > > filters: > - pandoc-include > > But you should have got an error, so I'm wondering whether you were=20 > successfully including the defaults file (note that, unless you've set yo= ur=20 > data directory to $HOME, it won't be searched for in $HOME/defaults). For= =20 > 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=20 >> 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=20 >> document header: >> >> pandoc-options: >> - --filter=3Dpandoc-include=20 >> >> but it seems ineffective, since an explicit call of the filter in the=20 >> 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=20 >> your kind help. >> >> guido (northern Italy) >> Disclaimer: I have already asked the same question in the pandoc-include= =20 >> discussione group. >> >> --=20 >> You received this message because you are subscribed to the Google Group= s=20 >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n=20 >> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/7de5029a-c8b8-4f17-bf76= -fdf1abd522b0n%40googlegroups.com=20 >> >> . >> > --=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/a9928d39-a1de-4e7c-bba0-caf3f445a61fn%40googlegroups.com. ------=_Part_15983_1191052895.1691872550019 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 suggest= ed in the pandoc-include manual:

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

<= div>remains useless; without an explicit call either in the defaults file o= r 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.

<= div>Thanks again!

Il giorno venerd=C3=AC 11 agosto 2023 alle 11:45:= 57 UTC+2 William Lupton ha scritto:
Try removing the '--':
=
filters:
=C2=A0 -=C2=A0 pandoc-include

=
But you should have got an error, so I'm wondering whether y= ou were successfully including the defaults file (note that, unless you'= ;ve set your data 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 Mila= nese <guido.m...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

I have succ= essfully installed pandoc-include (https://pypi.org/project/pandoc-include/) and I run it= calling 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...@googleg= roups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7de5029a-c= 8b8-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 pand= oc-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-caf3f445a61fn%40googlegroups.= com.
------=_Part_15983_1191052895.1691872550019-- ------=_Part_15982_1265344993.1691872550019--