From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28343 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Markdown w/Include files convert to PDF? Date: Thu, 13 May 2021 15:18:48 -0700 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25324"; mail-complaints-to="usenet@ciao.gmane.io" To: 'russurquhart1' via pandoc-discuss , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBVOL62CAMGQE4SWPRCQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri May 14 00:19:04 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f191.google.com ([209.85.215.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lhJfb-0006Pi-Tl for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 14 May 2021 00:19:03 +0200 Original-Received: by mail-pg1-f191.google.com with SMTP id 139-20020a6304910000b029021636f6732asf9636375pge.17 for ; Thu, 13 May 2021 15:19:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1620944342; cv=pass; d=google.com; s=arc-20160816; b=tzM5Pt24T1IxKLoPv3y5hiBp0p5z3z7RprZB4nIlmJmxfda2hPmUD++x+mqjzr2Koj WmDS//+JdqzUZb9k0KAVhb6s5owi5jjdpj+FqGMF33w0Ld0mnd5zsB+pWzBGbS8RvATM D/5dW3FJ/lzEq6AQN3id5yxwJECXoSy6VV/LyP+H22ZJpmR2a/irTRUMHC1OylHVH+ld o40rKwTDroWhwrmvDdmO2gbGhwAMjN18KXhUAfSUNNw1GjG7OAXzHwkvjK8gO6qUMnFM di4J/pEKRWn7KXNQHxPc30b8Do2Z0VoA89jxh2Rw6aWAtQi+mSO5uvcU4QM9QKFR1lbj Vpuw== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=g4cHu2fA8PyzMUWBjxrICeP0oe0B00/466l8IF8Bhrw=; b=tGHcxWVNLc4RSEOPAdlYW/jAi7z/xRJC1hio/cmuH9U585qOiCiMAWWYOojBswYGeF gbbI5K24NewEYqkHzEQee2KYSb6wSVP7hwijmStAfkLB7tZ0lMI0JfJOT/9CqvCNw4jq oVBw4SGXKO69EUcdu0Fjw0Wv8GmVxBloed/LlJxtPi5pZIG57WZPF725PXJGhJ5zFeFk 6AormCjuIgmEv2Qaopw1vWN93tDRM/ab6jS99/B5jAvEAIDP1/pA+m9fUjDjVvQ5rI3/ D2vl9ESD5Bv8DlH/1uV9/PUvCtCCVb60sX1MRqoGz7+FuKmduiFweiIikqI+kIDmqfcs FFoA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="r2qSR7f/"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version: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=g4cHu2fA8PyzMUWBjxrICeP0oe0B00/466l8IF8Bhrw=; b=pn1BVQlO1PPcaJlKdKNsYU/KnX0C1k7OuhlsNcyAI1HXpxlhk7P4Y5uy8nGcy/oewe gkK1v+jfcLuZs70uci95yaAIQl28DbzcNvVq47TsNEq2iN+LRNt4WdHtDX1PLKelN9HP h2+xnDy4xfBDzDYQ7AyNXH7AdlDhb80iwh9+aiWP5gGQq+i2Wri1Jbones9tFJMYgCdH +YAyDF876XdDwICaz+N+BVHup22s9Llet1UC8rYWWZyBnryCIg7CcskPu0GXg1tGG1Pq bIl4Rw+IzxtSf1+/giKDBL6k5jtyxsSTxiiwsBQU675lfHzenDBltRZ9fCcmo3RMvP16 Rn0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version: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=g4cHu2fA8PyzMUWBjxrICeP0oe0B00/466l8IF8Bhrw=; b=h8ioEAFfqosg8Ot4+4OWa249Dlqd8MgQRQGd6iHbXH7Q6amVdcpdZjjhokLPikuwsR nsYV/jWDxh5s5Lt0nanbGwpfPJ7IHG0vhQqSetOJbnQWiywI+AdJt517A1ipZFGhYXMq Yc71J8mWHiN+W5i0nngp0Si572NhBcUsTszrCzCh8b/7VVaqq3W9AKsKrLnOZHl4rE5b lzUjgKxmFiuig2Wc3hIdGr71Yr1jjCC/MzQndp9jiIbp5nx2f29AX4HjWlqu2TowuWu0 0UaEeczT8hGWF8GkP6L7QwLHdtXDHC4hj6oPP0kKYeW05kZL32+/wyFDcQZ+E+8w54p9 6r7Q== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530duXlXnVEOEimZ3u2ArK4smRlDJy1NpjXN0K3d/k3lcCmqTV65 BjpNROGoOmnwoF00/sKdeto= X-Google-Smtp-Source: ABdhPJx0fuy25RjPtABt3CbWnPo6I0cgxSuFIvMAz6NQKhfwqptAJx6F0kHKBtlY5tIk8mipMpZUkg== X-Received: by 2002:a63:5809:: with SMTP id m9mr43463613pgb.62.1620944342689; Thu, 13 May 2021 15:19:02 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:e2d0:: with SMTP id fr16ls2130785pjb.2.canary-gmail; Thu, 13 May 2021 15:19:00 -0700 (PDT) X-Received: by 2002:a17:90a:fa88:: with SMTP id cu8mr3671372pjb.233.1620944340526; Thu, 13 May 2021 15:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620944340; cv=none; d=google.com; s=arc-20160816; b=Taiv6UOzABjUGdwrGbo5NxNd1mwcs9uZJPzipis6dom5LnDXjMDHRnhtpeoiplNb1W OLUNUIqu93jZygeUu4Egu7UqumICLnk/ZrjHFP2oTSicGW590cQmrP9djX3IZ6R9Dibw OKv/G4G0oJA8xW36d8CJaF/cQVlgv0tyVw0iycq4i4rCaOYtusbcRFjtnsSH+epVky6A jdHO+S/c5GXoQeH3o1wqeo0nunsimVyCLssZrdDNv9i7CoMWOWNfDXM5kdcBdchYXo9D GvwFFetUz0gVOu+kHLH9Hu7Fx2/i+sCfzf0jhBOgSl1dml/3HU2rsMpCvlVQHoxireXW jZLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=q3CefzUtc8ARx5igmI6OAV93rHh79UbwRWS23FyRq/w=; b=iMvUcf90FRhQWQ8Yhkz58CqmDCBPHYBAVh51N0Q6zMQDe8QXinyAr8X1wCQR8FQXrY 7GImMZNP9+rn4WCRntHsGFKlOr21vgFwkDsHVXDFECww2oO59VY7Zzm5BS+sarPiZBI/ EAiHfVsNq+qiWMB44ShxLQNKa1KN1Fpoq9oXPJDoUAyUh/qDB+96Whzkf37G4iq6tgjL Wa0ClRaAEgfifqmNJ7QqzsvElnbni4vzI1swbGQNcZCZh4tWrg0eLVwZRG1xQPX1Rl0T x27YioEtjjvV64pnwZBxRtfjIkHb5GYYhN76J5VSFUcNJrEv1AdfDuWwGpq4JQDa97xw ryWg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="r2qSR7f/"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com. [2607:f8b0:4864:20::434]) by gmr-mx.google.com with ESMTPS id n21si511342pjq.1.2021.05.13.15.19.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 May 2021 15:19:00 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) client-ip=2607:f8b0:4864:20::434; Original-Received: by mail-pf1-x434.google.com with SMTP id e19so4745078pfv.3 for ; Thu, 13 May 2021 15:19:00 -0700 (PDT) X-Received: by 2002:a63:db53:: with SMTP id x19mr43413204pgi.327.1620944339557; Thu, 13 May 2021 15:18:59 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id i2sm7719996pjj.25.2021.05.13.15.18.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 15:18:59 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 3D2D6A231; Thu, 13 May 2021 18:18:48 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="r2qSR7f/"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:28343 Archived-At: 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.