Enrico,
Sorry about the previous message. Below is the script as I copy-pasted
it. The prog=latex.exe part was on the previous line (thus commented)
and at first not recognized by me to be part of the script.
I tried the corrected script but still it doesn't work. I get an error
box in lyx with in the upper part:
LaTeX error: Missing \begin{document}.[]
LateX error: File `images/logo.eps' not found.[]
Etc.
And in the lower part:
{{\string"
/cygdrive/d/Documents and Settings/MSA/My Documents/LyX
Files/...
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
As well as in the cygwin window:
$ lyx-winbin.exe
Locale nl_NL could not be set
LColor::getFromLyXName: Unknown color "default"
cygpath: can't convert empty path
pplatex: Process input file schippershandleiding.dvi
: No such file or directorym/cmr10.tfm
: No such file or directorylvetic/phvb8t.tfm
: No such file or directorylvetic/phvb8t.tfm
: No such file or directorylvetic/phvr8t.tfm
: No such file or directorylvetic/phvb8t.tfm
: No such file or directorymes/ptmr8t.tfm
: No such file or directorymes/ptmb8t.tfm
: No such file or directorylvetic/phvb8t.tfm
: No such file or directorym/cmsy10.tfm
: No such file or directorymes/ptmri8t.tfm
: No such file or directorymes/ptmr8t.tfm
: No such file or directorymes/ptmr8t.tfm
: No such file or directorymes/ptmr8t.tfm
: No such file or directorylvetic/phvb8t.tfm
: No such file or directorymes/ptmri8t.tfm
: No such file or directorymes/ptmb8t.tfm
: No such file or directorym/cmsy7.tfm
: No such file or directoryurier/pcrr8t.tfm
pplatex: Copy data to schippershandleiding.dvi
Any suggestions?
Maarten
/usr/local/bin/latex
#!/bin/sh
# This is a wrapper script for the MikTeX's latex
#
# Simply change all Cygwin pathnames into mixed-style pathnames
# both on the command line and in [EMAIL PROTECTED] statements. # # 2006-03-20
Enrico Forestieri
# ===================================================================
# The program to call (This should be in the PATH)
prog=latex.exe
while [ $# -gt 0 ] ; do
case "$1" in
-*=*) opt=`echo "$1" | cut -d= -f1`
arg=`echo "$1" | cut -d= -f2-`
arg=`cygpath -m -- "$arg"`
prog="$prog $opt='\"$arg\"'"
;;
-*) prog="$prog $1"
;;
*) prog="$prog '`cygpath -m -- "$1"`'"
ipath=`head "$1" | grep [EMAIL PROTECTED]
if [ ! -z "$ipath" ]; then
posixpath=`expr "$ipath" : '[EMAIL PROTECTED](.*\)//}}.*'`
winpath=`cygpath -m -- "$posixpath"`
sed -i -e
"/[EMAIL PROTECTED]/s?$posixpath?$winpath?" "$1"
fi
;;
esac
shift
done
eval "exec $prog"
-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Enrico Forestieri
Sent: 21 March 2006 14:21
To: [email protected]
Subject: Re: Path of images in .layout and lyx1.4 on cygwin
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
>
> >>>>> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes:
>
> Enrico> Georg Baum <Georg.Baum <at> ...> writes:
> Enrico> No, Georg, this is an oversight on my part :(
>
> Enrico> LyX inserts an \input <at> path line, but that path is in
> Enrico> posix format and MikTeX doesn't understand it.
>
> Wasn't this the whole point of the cygwin-path checkbox?
Indeed. But, as I already said, it needs to be reviewed. I was missing
this case and then there is the PATH prefix handling one. As it is now,
the PATH prefix is to be entered in posix format, irrespectively of the
checkbox status (whose name needs to be changed, too).
My plan is to do that, but my spare time is a limited resource...
--
Enrico