Mail Archives: cygwin/2008/01/10/15:11:28
---559023410-1483920592-1199995842=:8742
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT
On Thu, 10 Jan 2008, Sven Köhler wrote:
> Hi,
>
> so i have a latex file here. "pdflatex document.tex" works. But "run
> pdflatex document.tex" does not.
>
> "run.exe" seems to be the best way to call cygwin application from
> external windows apps. But the seems to be some difference from invoking
> by a shell.
>
> pdfetex seems to check the name by it has been invoked. When invoking
> from the shell, it correctly finds out, that it has been invoked as
> "pdflatex" but when invoked via run.exe, this check seems to lead to the
> wrong result.
>
> I guess, it's a bug of run.exe which might do more work, than it should
> (like following symbolic links, or such stuff).
This is not really a bug in run.exe, because it was never documented to
work correctly with symlinks, and you'd get the same problem with any pure
Windows way of invoking pdflatex anyway. But it is, arguably, a
deficiency in run.exe.
You can do a few things. One is to pass an explicit parameter that tells
pdfetex to use pdflatex mode (i.e., "-fmt pdflatex"). Another is to
invoke pdflatex via bash (i.e., "run bash -c 'pdflatex ...'"). Finally,
you can look at the sources for run.exe (available via Cygwin setup) and
submit a patch (look at the first argument to CreateProcess).
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"That which is hateful to you, do not do to your neighbor. That is the whole
Torah; the rest is commentary. Go and study it." -- Rabbi Hillel
---559023410-1483920592-1199995842=:8742
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
---559023410-1483920592-1199995842=:8742--
- Raw text -