On Tue, 10 Jan 2006 09:44:01 -0600
Bo Peng <[EMAIL PROTECTED]> wrote:

> > If the bib file is in a local user directory (with spaces) and included by
> > the user browsing to it then it is very much a lyx bug.
> 
> This is the case I reported, and I think lyx should do something about
> it. Actually, a label above the browse button like "File with spaces
> in its path may not work" should suffice.
> 
> People tend to think this is a latex feature/bug, not lyx'. However,
> if I use latex directly, I will get a bunch of error messages like
> File "c:\my " and "documents\" does not exist, while in the case of
> lyx, I get no warning and incomplete output.
> 

I did some more testing.

If I use a relative path (with spaces) instead of an absolute one for the
bibtex file, then compiling through lyx works fine (I am guessing lyx moves this
file to the temp directory to overcome the relative path).

If I try to export the file to latex I get a popup window that warns me that
the path contains spaces and bibtex won't be able to find it (but it does
export).

An absolute path with spaces to the bib file causes an empty bibliography since
bibtex can't find the file.

Everything works fine under linux no matter what I do.

I guess that a partial solution for windows can not to check whether the path
is relative or absolute and always copy the bib file to the temp directory
(assuming that's what is done) thus there won't be any spaces in the relative
path to the bib file (assuming that bibtex can work with paths with spaces as
long as it doesn't know it, i.e the file itself is in a path with spaces). If
bibtex still has a problem you can try recommending setting up a temp directory
with no spaces (possibly allowing a special temp directory only for lyx,
different then the global one by some means).

Another solution that may work is to use old style paths so that they won't
have spaces (don't know if that is possible, I know that the command prompt
accepts it but if the code does).

Of course, the best solution is to just fix bibtex (like I said, on linux it
works fine so there is not need to blabber about it being a "feature" of 
bibtex).

> Bo
>  
>  +++++++++++++++++++++++++++++++++++++++++++
>  This Mail Was Scanned By Mail-seCure System
>  at the Tel-Aviv University CC.
> 

 
 +++++++++++++++++++++++++++++++++++++++++++
 This Mail Was Scanned By Mail-seCure System
 at the Tel-Aviv University CC.

Reply via email to