public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Export Multiple Markdown Files to PDF?
@ 2021-08-01  7:43 SlyFox
       [not found] ` <7e8db29f-72af-40e9-8d1b-bdf38e3a41e5n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: SlyFox @ 2021-08-01  7:43 UTC (permalink / raw)
  To: pandoc-discuss


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



What is the best way to export multiple Markdown files in a folder to 
(individual) PDF files?

I installed pandoc for Mac but I can’t figure out how to:

a) export multiple files to multiple PDF files. The manual seems to focus 
on merging multiple Markdown files into a single PDF file.

b) keep the same file name - input to output.

-- 
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/7e8db29f-72af-40e9-8d1b-bdf38e3a41e5n%40googlegroups.com.

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

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

* Re: Export Multiple Markdown Files to PDF?
       [not found] ` <7e8db29f-72af-40e9-8d1b-bdf38e3a41e5n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-08-01  8:39   ` SlyFox
       [not found]     ` <3e40a8c4-e2e9-486a-b5c0-184847e2cbb7n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: SlyFox @ 2021-08-01  8:39 UTC (permalink / raw)
  To: pandoc-discuss


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


I tried this:for f in *.md; do pandoc "$f" -o "${f%.md}.pdf"; done

But I get an error:

andoc(45574,0x207810e00) malloc: *** set a breakpoint in malloc_error_break 
to debug

pandoc: pdflatex: createProcess: runInteractiveProcess: exec: resource 
exhausted (Cannot allocate memory)
On Sunday, August 1, 2021 at 11:43:42 AM UTC+4 SlyFox wrote:

> What is the best way to export multiple Markdown files in a folder to 
> (individual) PDF files?
>
> I installed pandoc for Mac but I can’t figure out how to:
>
> a) export multiple files to multiple PDF files. The manual seems to focus 
> on merging multiple Markdown files into a single PDF file.
>
> b) keep the same file name - input to output.
>

-- 
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/3e40a8c4-e2e9-486a-b5c0-184847e2cbb7n%40googlegroups.com.

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

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

* Re: Export Multiple Markdown Files to PDF?
       [not found]     ` <3e40a8c4-e2e9-486a-b5c0-184847e2cbb7n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-08-01 16:24       ` Pablo Rodríguez
  2021-08-01 16:27       ` John MacFarlane
  1 sibling, 0 replies; 5+ messages in thread
From: Pablo Rodríguez @ 2021-08-01 16:24 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

On 8/1/21 10:39 AM, SlyFox wrote:
>
> I tried this:for f in *.md; do pandoc "$f" -o "${f%.md}.pdf"; done

This command works for me:

  for i in *.md; do pandoc "$i" -t context -o "${i%.md}.pdf"; done

BTW, I have to use ConTeXt, I don’t have any other TeX installed on my
computer.

Just in case it might help,

Pablo
--
http://www.ousia.tk

-- 
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/d9de266f-3451-007d-5f6e-b7885886c7e2%40web.de.


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

* Re: Export Multiple Markdown Files to PDF?
       [not found]     ` <3e40a8c4-e2e9-486a-b5c0-184847e2cbb7n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2021-08-01 16:24       ` Pablo Rodríguez
@ 2021-08-01 16:27       ` John MacFarlane
       [not found]         ` <m2pmuxnnai.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  1 sibling, 1 reply; 5+ messages in thread
From: John MacFarlane @ 2021-08-01 16:27 UTC (permalink / raw)
  To: SlyFox, pandoc-discuss


I guess you're on an M1 mac?
See https://groups.google.com/g/pandoc-discuss/c/tWWIEgW94U0/m/yKMfldtYBgAJ

SlyFox <ivan.clinical-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I tried this:for f in *.md; do pandoc "$f" -o "${f%.md}.pdf"; done
>
> But I get an error:
>
> andoc(45574,0x207810e00) malloc: *** set a breakpoint in malloc_error_break 
> to debug
>
> pandoc: pdflatex: createProcess: runInteractiveProcess: exec: resource 
> exhausted (Cannot allocate memory)
> On Sunday, August 1, 2021 at 11:43:42 AM UTC+4 SlyFox wrote:
>
>> What is the best way to export multiple Markdown files in a folder to 
>> (individual) PDF files?
>>
>> I installed pandoc for Mac but I can’t figure out how to:
>>
>> a) export multiple files to multiple PDF files. The manual seems to focus 
>> on merging multiple Markdown files into a single PDF file.
>>
>> b) keep the same file name - input to output.
>>
>
> -- 
> 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/3e40a8c4-e2e9-486a-b5c0-184847e2cbb7n%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/m2pmuxnnai.fsf%40johnmacfarlane.net.


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

* Re: Export Multiple Markdown Files to PDF?
       [not found]         ` <m2pmuxnnai.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2021-08-01 18:16           ` SlyFox
  0 siblings, 0 replies; 5+ messages in thread
From: SlyFox @ 2021-08-01 18:16 UTC (permalink / raw)
  To: pandoc-discuss


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

I am indeed on M1 Mac.

On Sunday, August 1, 2021 at 8:27:16 PM UTC+4 John MacFarlane wrote:

>
> I guess you're on an M1 mac?
> See 
> https://groups.google.com/g/pandoc-discuss/c/tWWIEgW94U0/m/yKMfldtYBgAJ
>
> SlyFox <ivan.c...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > I tried this:for f in *.md; do pandoc "$f" -o "${f%.md}.pdf"; done
> >
> > But I get an error:
> >
> > andoc(45574,0x207810e00) malloc: *** set a breakpoint in 
> malloc_error_break 
> > to debug
> >
> > pandoc: pdflatex: createProcess: runInteractiveProcess: exec: resource 
> > exhausted (Cannot allocate memory)
> > On Sunday, August 1, 2021 at 11:43:42 AM UTC+4 SlyFox wrote:
> >
> >> What is the best way to export multiple Markdown files in a folder to 
> >> (individual) PDF files?
> >>
> >> I installed pandoc for Mac but I can’t figure out how to:
> >>
> >> a) export multiple files to multiple PDF files. The manual seems to 
> focus 
> >> on merging multiple Markdown files into a single PDF file.
> >>
> >> b) keep the same file name - input to output.
> >>
> >
> > -- 
> > 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/3e40a8c4-e2e9-486a-b5c0-184847e2cbb7n%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/cd18e172-7abe-4ef8-8378-78f23f99581cn%40googlegroups.com.

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

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

end of thread, other threads:[~2021-08-01 18:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-01  7:43 Export Multiple Markdown Files to PDF? SlyFox
     [not found] ` <7e8db29f-72af-40e9-8d1b-bdf38e3a41e5n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-08-01  8:39   ` SlyFox
     [not found]     ` <3e40a8c4-e2e9-486a-b5c0-184847e2cbb7n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-08-01 16:24       ` Pablo Rodríguez
2021-08-01 16:27       ` John MacFarlane
     [not found]         ` <m2pmuxnnai.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2021-08-01 18:16           ` SlyFox

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).