public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Markdown w/Include files convert to PDF?
@ 2021-05-13 15:35 'russurquhart1' via pandoc-discuss
       [not found] ` <aa45b5fd-283c-4138-b43e-41407f9e11f1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: 'russurquhart1' via pandoc-discuss @ 2021-05-13 15:35 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 773 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 1200 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Markdown w/Include files convert to PDF?
       [not found] ` <aa45b5fd-283c-4138-b43e-41407f9e11f1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-05-13 22:18   ` John MacFarlane
       [not found]     ` <m21raa46rb.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2021-05-13 22:18 UTC (permalink / raw)
  To: 'russurquhart1' via pandoc-discuss, pandoc-discuss


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"
<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Markdown w/Include files convert to PDF?
       [not found]     ` <m21raa46rb.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
@ 2021-05-15  7:53       ` BPJ
  0 siblings, 0 replies; 3+ messages in thread
From: BPJ @ 2021-05-15  7:53 UTC (permalink / raw)
  To: pandoc-discuss

[-- Attachment #1: Type: text/plain, Size: 2472 bytes --]

The pp puerperocessor is even designed for use with Pandoc

https://github.com/CDSoft/pp

Den fre 14 maj 2021 00:20John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> 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"
> <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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.

[-- Attachment #2: Type: text/html, Size: 4332 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-15  7:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 15:35 Markdown w/Include files convert to PDF? 'russurquhart1' via pandoc-discuss
     [not found] ` <aa45b5fd-283c-4138-b43e-41407f9e11f1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-05-13 22:18   ` John MacFarlane
     [not found]     ` <m21raa46rb.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-05-15  7:53       ` BPJ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).