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?