So how do you combine the two commands to batch convert?
"Jason Davies" <ophi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> Hi folks,
>
> I just tried to convert three short Word files one at a time; one worked
> fine but two gave errors like this:
>
> pandoc(24405,0x209984e00) malloc: can't allocate region
> :*** mach_vm_map(size=1048576, flags: 100) failed (error code=268435465)
> pandoc(24405,0x209984e00) malloc: *** set a breakpoint in
> malloc_error_break to debug
> pandoc: pdflatex: createProcess: runInteractiveProcess: exec: resource
> exhausted (Cannot allocate memory)
>
I just got an M1 mac, and I ran into this same error.
I found that if I fully specify the pdflatex path, it works:
pandoc -o my.pdf --pdf-engine=/Library/TeX/texbin/pdflatex
It's a bit mysterious why this should be needed, since
`which pdflatex` returns this path!
And running pandoc with --verbose shows that the PATH is
correctly passed through to the process running pdflatex.
Anyone have any ideas? AT least this gives a workaround...