Why not specify --output=myfile.pdf to get pandoc to run the latex command for you? 

http://pandoc.org/MANUAL.html#creating-a-pdf

Pandocomatic also allows you to specify --to format as a pdf so you don't need to specify the output filename if that works better for you (plus pandocomatic supports multiple LaTeX templates depending on your needs):

https://heerdebeer.org/Software/markdown/pandocomatic/

Ian

On Thursday, 1 June 2017 08:31:26 UTC+8, htor...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
So I was wondering if it's possible to do a 3-step output

My current way is by writing in markdown -> converting to latex -> converting to PDF 
latex output looks much better so I use that, but is annoying to use two commands, anyone have a way to do all three in one command?

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2bc67387-92a7-406e-b2b3-966ba5fe9291%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.