This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [BUG?] run.exe and pdflatex


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@cs.nyu.edu | igor@watson.ibm.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
--
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]