Georg Baum <[EMAIL PROTECTED]> writes: > > Am Montag, 20. März 2006 11:03 schrieb Sanders, Maarten (M.J.L.): > > This returns: > > > > LaTex Error: File `images/logo.eps' not found.[] > > > > When I ask for a dvi or ps2pdf view. > > > > I have tried hardcoding the path in the layout file but for some reason > > the file cannot be found. If I run 'by hand': > > Both should work. Please have a look at the .tex file that is created in > the temporary directory. Does it include something like > > \def\input <at> path{{/path/to/the/lyx/file}} > > If not then this is http://bugzilla.lyx.org/show_bug.cgi?id=1751
No, Georg, this is an oversight on my part :( LyX inserts an [EMAIL PROTECTED] line, but that path is in posix format and MikTeX doesn't understand it. Maarten, I will fix this bug in 1.4.1. For the moment, please put the attached script in /usr/local/bin. The script name should be "latex" and you should make sure that /usr/local/bin comes before the miktex/bin directory (this should already be the case if you have not customized the PATH prefix in LyX). Most likely you will also need a pdflatex script: simply make a copy of the same script and replace the single occurrence of latex.exe in it with pdflatex.exe. Sorry for the inconvenience. -- Enrico --------8<--------8<--------8<--------8<--------8<--------8<--------8<-------- #!/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" --------8<--------8<--------8<--------8<--------8<--------8<--------8<--------