public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Help running pandoc/latex on simplest markdown file
@ 2023-11-14  5:23 Srini N
       [not found] ` <3d175dc1-5e5f-46a2-8008-267a0f303c46n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Srini N @ 2023-11-14  5:23 UTC (permalink / raw)
  To: pandoc-discuss


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

Step 1: Created simple *test.md *with just three lines below:

# Primary header (similar to HTML H1 tag)
## Secondary header (similar to HTML H2 tag)
### Tertiary header (similar to HTML H3 tag)

Step 2: Ran following command

docker run --rm --volume "$(pwd):/data" --user $(id -u):$(id -g) --platform 
*linux/amd64* *pandoc/latex* *test.md* -o *outfile.pdf*

And no file is generated and no error is thrown. Had to use "--platform 
linux/amd64" option because default option does not work on Apple Mac with 
M1 chip. No idea what is wrong.

Appreciate any help

Thanks much

-- 
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/3d175dc1-5e5f-46a2-8008-267a0f303c46n%40googlegroups.com.

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

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

* Re: Help running pandoc/latex on simplest markdown file
       [not found] ` <3d175dc1-5e5f-46a2-8008-267a0f303c46n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-12-05 15:35   ` Julien Dutant
  0 siblings, 0 replies; 2+ messages in thread
From: Julien Dutant @ 2023-12-05 15:35 UTC (permalink / raw)
  To: pandoc-discuss


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

On an apple Silicon you cannot run linux/amd64 images, you need aarch64 
ones. The Pandoc docker images are amd64 only. You should use another image 
or install Pandoc directly. 

I encountered this problem a while back and made a apple silicon-compatible 
image for quarto: 
https://hub.docker.com/repository/docker/jdutant/quarto-minimal/general
Quarto embeds pandoc, so you can also use it to run Pandoc:

docker run --rm --volume $(pwd):/data jdutant/quarto-minimal pandoc 
source.md -o out.html

It's a slightly older version of Pandoc, but you can use it for a try-out.

J

On Tuesday, November 14, 2023 at 4:23:37 PM UTC+11 Srini N wrote:

> Step 1: Created simple *test.md *with just three lines below:
>
> # Primary header (similar to HTML H1 tag)
> ## Secondary header (similar to HTML H2 tag)
> ### Tertiary header (similar to HTML H3 tag)
>
> Step 2: Ran following command
>
> docker run --rm --volume "$(pwd):/data" --user $(id -u):$(id -g) 
> --platform *linux/amd64* *pandoc/latex* *test.md* -o *outfile.pdf*
>
> And no file is generated and no error is thrown. Had to use "--platform 
> linux/amd64" option because default option does not work on Apple Mac with 
> M1 chip. No idea what is wrong.
>
> Appreciate any help
>
> Thanks much
>

-- 
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/3ddc2f86-9c78-43a9-89ea-493728cb0bb0n%40googlegroups.com.

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

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

end of thread, other threads:[~2023-12-05 15:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-14  5:23 Help running pandoc/latex on simplest markdown file Srini N
     [not found] ` <3d175dc1-5e5f-46a2-8008-267a0f303c46n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-12-05 15:35   ` Julien Dutant

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