From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28348 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Markdown w/Include files convert to PDF? Date: Sat, 15 May 2021 09:53:41 +0200 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000023823a05c259a9eb" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17784"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBDX47WCAMGQEQ3WAI4Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat May 15 09:53:52 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f62.google.com ([209.85.221.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lhp7Q-0004R6-3P for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 15 May 2021 09:53:52 +0200 Original-Received: by mail-wr1-f62.google.com with SMTP id u20-20020a0560001614b02901115c8f2d89sf834710wrb.3 for ; Sat, 15 May 2021 00:53:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621065231; cv=pass; d=google.com; s=arc-20160816; b=IJfyFnayazX5dlzN8Z3IORH3lkT6Faa4qh9gW9P9SwYZ3FV9rE4orz4nPTYUNNQbQW /A5RP5n7FjZSCgpBNu2MV4egWyxec4as1TivWNy+V8LMsOXhlKz+JS4OKJJJbMWdMC20 P4TAOhhP9r2lZfWmz/Ly02LMt4bOk7a5AEB0g214gnXtzvNLJYITk9EcR3UT2THsxczx 1gAQrEnP48u5a5ISbNGAB6Up77wSvRbd14dAZ2OqjMyRWw6nFq2tuYh3HkkE+aBIC5nH uvWFbZ2tTt25ErtNAgQYQr2dTIZQwbc2ybetUF5t4orG792FVUw1n5wSSr2/YM4Y2zOg kmTw== 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:sender:dkim-signature :dkim-signature; bh=2CfakeQ+pcYoTKay4xtRJkQ5vqgANDTHBqyIliOqM1g=; b=uc84WJx+WTz2SUFvyDsbSXzu3h68T1AQD9pojWjNmreq7iyHS98KCw6nZx+99SxyGz CDmGyXaiPnaR+Jr6mifJDqbVMAvugeq1Q4+4Lms9CvZHfxl4KPiZUV4WVJOiEuvpYd6j AB1B1GRBWiO3kp/P0JDJZLx8migPD66/dtqhVbUEMAcGQ7YLBJw9oFGKS5J6rn6qmoNM Yb2Bxdt5NM3WhylA/mp4YyWEzeZCuoRptP8YiN720k/xBQ5QOLPNLN1xES7alBq9ib4r Pb1cC3O9gS/TvhG4kr0gpA7wPLuI9lmUhk90PNzY685GoE3e7mzH8GIlEENaayXL0e98 LV5A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JhTaWvWl; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::131 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=2CfakeQ+pcYoTKay4xtRJkQ5vqgANDTHBqyIliOqM1g=; b=Y7Md6Glttzb8vC4L9C+UgeZBclCZvjR3mHUktWN0CH0f5Ia0ek6KXlw4b91eEJAOlo JC90tNHKqlVVaIWzYYJx1A+jGxkV0iOKxeMmVwuMIKrW0HYmkWmuhnOzO/x9x6iZfywO zCHyhCadjiikz1CvrXeBVIcSy1BI6TxFUyaU7srYb8PIeNnxHxMQ7Z+GCuN86NbxiinI SSvbCONbFaxQXingA+lMO9OTiUk1QCLD//FqOsIEf5ezVonPSAFCyIPDKscbnweaJAV4 Ygv/QRWO3rtaQ0nZ8GP3rvLwbhVSZafdfI3sLPqcMAZyw+bazX7/hur11AUWB0G8OMLL FBxg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=2CfakeQ+pcYoTKay4xtRJkQ5vqgANDTHBqyIliOqM1g=; b=tDW65tODA9cHjd+OqBrx0bqFN9JS5ueE1E0C7SiaT2pFN4Tyf2S9Nf0Uu6WwnFXGop 193fpNB7GncxqTXnb86VouwVdsurj/9zekHQcBEke+AXav07wOoaHLcbSM0wAC0drbWH /SZNtWRbJaZFxrlpL7Ym2sEegpJmS31GkOvl4UnA+ZteUwjfMGYdsCFJMFk5YBqggsru n0qijnNEoOFuJCVltHyhWind/TKss+1p2DBFXl+iYxoeCGctl7vpv/eiOQfKmA7jYr5O 5jePNKMIalvgRfQvtf4ZziltWajOoGhNJUppvRyTcXHh8M8s4dOGbH+BIc6j0JGCedRb R4RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=2CfakeQ+pcYoTKay4xtRJkQ5vqgANDTHBqyIliOqM1g=; b=D0oR2Tb49HDPCCx4nzz/DCIoATGnOsdhrwuY44/0lkYTNtMaIRRiHY9qGdtv+3oeEk asa4j4MDOSeepwmT2CRH5jQuVqC0agptQHiA4HUbd6rL4DQKiC/CIpZOArb0TdRLBGS8 k0gwb+bybPIHxOn8gedrxtiCwMfWwA5NVywNyiJRb/YQLAd7tf1zdRDm6Fw26KQop9RK F95VlPf1skIEysyldpkfqXlAn2etR2OkDDQ4YFq360v5zoWcHWZxUr0er4TTQPbfm1p6 t08MxWINpbsHp60Jser6sF3W3Nrbnn4VMCIc25IvQ7BqOCuEtW4vWB+CbcYh/SEUsCGW Qx6Q== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532kxsa/Rf23SjKE8T6p//SW3XFbyT28/2Qw4g1HxJGDsfMpI98R qYr2/7vFX4xuGUxC9UuaU/Y= X-Google-Smtp-Source: ABdhPJxs/7WYpSVmqiN/tflH87t+A+650fqt6Hp4jNX4MDQCcVp5LWnQirdKCmd+4xVWjvXrglzCZQ== X-Received: by 2002:a05:600c:364c:: with SMTP id y12mr4967478wmq.162.1621065231738; Sat, 15 May 2021 00:53:51 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:adf:f844:: with SMTP id d4ls2074668wrq.3.gmail; Sat, 15 May 2021 00:53:49 -0700 (PDT) X-Received: by 2002:adf:ed47:: with SMTP id u7mr16559101wro.254.1621065229469; Sat, 15 May 2021 00:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621065229; cv=none; d=google.com; s=arc-20160816; b=o9H/Q0hFHJx0l0w1PYN3xhI7/8K+WHSFOP5wqflvbAUVfxjbwS23pn4Xyn4INiT3nW mhdjkCvpfZzAS1CCcDqZawBBwv0j8OHbzVvDAaI2ylKVb5Sw2jeHcASs3RzLumqeKO+3 17/VUk+hIVhpeNKSRWyJiy4dOqgIbkXzxdisrEymp8VI/d1tuezL43cm5915wUePXHSO OUzcVZvVd6EMk57MQ+dfAqOm///j9EHyM7DjdAyXwvRG22AfJVjWrswcQKnIAEg1KX0F yCdgtSxipfA6Xm7OKo/RddY5OxraYq+s/ldx5tHpbCrC4R/VEFFalC6QvyykVo0tPGrO NWKA== 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=X9uuE+3jmsASMat6vcjr3Mlprb2SkxMkbj0PeVceoeU=; b=g/ehoRgli7cly5JDRVscx0jRHuFZnLt/HpE0azSlJY/guSwMsXONBNPI7aLayiKC08 Zn5sbZdEZl889hiCJ/qidzyfdxA/uSUOUOTAiv6MYKYkIAmbx7sGxlGp3LJK1ACC0Bke DcFLunkflHtobiIHuJqMMi6EGC1AQqA5tzgyCUoJ5sAGur6FBRUZEfLG8Gn0jEZaBuiX 04Kb+LvX7JK8SZpnh4qi16WWRDVbsDsVyFCnJ6hFEte1uHCr+/qOmce6FA/CRrqQmo2n KhyWmkgiFsEOS0bUwB1bjf6qbdR2OqtEeqOYrh7xpt1Wg4Xzgy4I46DERuzQmppnmPdM 4IBg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JhTaWvWl; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::131 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com. [2a00:1450:4864:20::131]) by gmr-mx.google.com with ESMTPS id b5si224815wri.2.2021.05.15.00.53.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 May 2021 00:53:49 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::131 as permitted sender) client-ip=2a00:1450:4864:20::131; Original-Received: by mail-lf1-x131.google.com with SMTP id r5so1596549lfr.5 for ; Sat, 15 May 2021 00:53:49 -0700 (PDT) X-Received: by 2002:a05:6512:142:: with SMTP id m2mr35465655lfo.313.1621065229106; Sat, 15 May 2021 00:53:49 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JhTaWvWl; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::131 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:28348 Archived-At: --00000000000023823a05c259a9eb Content-Type: text/plain; charset="UTF-8" The pp puerperocessor is even designed for use with Pandoc https://github.com/CDSoft/pp Den fre 14 maj 2021 00:20John MacFarlane skrev: > > One approach would be to preprocess your files with > a preprocessor (cpp, m4, etc.) before sending them to > pandoc; these can handle includes. > > > https://stackoverflow.com/questions/4779582/markdown-and-including-multiple-files/36104553#36104553 > > There are also various filters and wrappers around, e.g. > https://github.com/pandoc/lua-filters/tree/master/include-files > > I hope to add native include at some point > https://github.com/jgm/pandoc/issues/553 > > > "'russurquhart1' via pandoc-discuss" > writes: > > > Hi, > > > > I know standard Markdown has no provisions for a #include function. Our > > system, has added such a function, such that a line similar to: > > > > # include path/to/file > > > > includes that file at that point. > > > > Will Pandoc. when converting Markdown files to PDF, be able to handle > this? > > Or is there a way to have it handle this when generating PDF files? > > > > Thanks, > > > > Russ > > > > -- > > 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/aa45b5fd-283c-4138-b43e-41407f9e11f1n%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/m21raa46rb.fsf%40MacBook-Pro.hsd1.ca.comcast.net > . > -- 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/CADAJKhCu1Pe0%2Bxq1-cwURnuuda4gMLiH4N5FqWzSH%3DbX89sJRQ%40mail.gmail.com. --00000000000023823a05c259a9eb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The pp puerperocessor is even designed for use with Pando= c


Den fre 14 maj 2021 = 00:20John MacFarlane <jgm@berkeley.e= du> skrev:

One approach would be to preprocess your files with
a preprocessor (cpp, m4, etc.) before sending them to
pandoc; these can handle includes.

https://stackoverflow.com/questions/4779582/markdown-and-includ= ing-multiple-files/36104553#36104553

There are also various filters and wrappers around, e.g.
https://github.com/pandoc/= lua-filters/tree/master/include-files

I hope to add native include at some point
https://github.com/jgm/pandoc/issues/553


"'russurquhart1' via pandoc-discuss"
<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> writes:

> Hi,
>
> I know standard Markdown has no provisions for a #include function. Ou= r
> system, has added such a function, such that a line similar to:
>
> # include path/to/file
>
> includes that file at that point.
>
> Will Pandoc. when converting Markdown files to PDF, be able to handle = this?
> Or is there a way to have it handle this when generating PDF files? >
> Thanks,
>
> Russ
>
> --
> You received this message because you are subscribed to the Google Gro= ups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email to pandoc-discuss+unsubscribe@googlegr= oups.com.
> To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/aa45b5fd-283c-4138-b43e-41407f9e11f1n%4= 0googlegroups.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@googlegroups.= com.
To view this discussion on the web visit https://groups.google.com/= d/msgid/pandoc-discuss/m21raa46rb.fsf%40MacBook-Pro.hsd1.ca.comcast.net= .

--
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://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhCu1Pe0%2Bxq1-cwURnuuda4gMLiH4N= 5FqWzSH%3DbX89sJRQ%40mail.gmail.com.
--00000000000023823a05c259a9eb--