I am using Windows 7, Cygwin (CYGWIN_NT-6.6-WOW64), and MiKTeX 2.9. I am trying to compile a document of a friend of mine who has written a specific document class file (.cls), a class that is able to run Python code from the document LaTeX source (.tex) and include its output in the document (maybe along with the Python code). I want (in a sense, I need) to write my own documents using that class.
My friend works on Linux, and I try to compile his document from a Cygwin terminal by using
pdflatex --enable-write18 thedocumentfile.tex (indeed, my command line is
PATH=.:$PATH pdflatex --enable-write18 thedocumentfile.tex). If I search for
latex packages in my Cygwin Setup, I only find
texlive-collection ones, not installed, so I guess
pdflatex is calling a latex-to-PDF compiler version in a MiKTeX 2.9 package called
miktex-pdftex-base-2.9. I think this is what I want, just one LaTeX distribution (MiKTeX) installed in my machine.
But compilation fails because command lines passed as arguments to
\write18 are written to be interpreted by a
bash, but my compilation attempts send them to a Windows command interpreter.
I don't know if it is possible to instruct my compiler not to pass command lines to the Windows interpreter, but to the
bash shell of Cygwin. I hope it will. Does anybody know how?