@Wiscocrew's answer is on the right path, but, unfortunately, it is a little more complicated than that.
Pandoc permits you to pass the full path to pdflatex
with the --latex-engine
switch (c.f. http://pandoc.org/README.html#options-affecting-specific-writers), but if you just do something like
--latex-engine=`cygpath -w /usr/bin/pdflatex`
Pandoc gives a different error: pandoc.exe: latex-engine must be pdflatex, lualatex, or xelatex.
. The reason for this error is that Cygwin's pdflatex is an symlink:
$ ls -lh /usr/bin/pdflatex
lrwxrwxrwx 1 myuser Domain Users 10 Mar 14 11:52 /usr/bin/pdflatex -> pdftex.exe
My work around was to copy /usr/bin/pdftex.exe
to /usr/local/bin/pdflatex.exe
and pass it to Pandoc like so:
pandoc Foo.md -o Foo.pdf --latex-engine='C:\\cygwin64\\usr\\local\\bin\\pdflatex.exe' -t latex -s