Adam Hoffman wrote:
I recently installed LyX 1.6.4-1 on a Windows 7 system, and I'm having an
issue that is not common to my previous LyX installs (1.6.?) on an XP SP3
and Vista 64 SP1 system.
Whenever I try to generate a pdf/dvi/ps file from a file path that includes
spaces, I get an error message indicating that this is not permitted. I am
not having this issue with previous installs of LyX. Can anyone explain the
source of the issue and, more importantly, how I can resolve it?
The source of the problem:
LyX is just an editor for formatted text. To do anything else, such
as printing, making pdf/html/whatever or dealing with images, helper
applications is used.
This is useful, because there are many such helper apps exist.
The most important one is latex, of course.
Whenever helper apps is used, they get invoked through the command line.
And on the command line, a space is a separator. The name of the helper
app is separated from the file(s) to process with spaces. And when there
are several files to process, they are aain separated with spaces.
Unless care is taken, a path like "C:\My Documents\filename", turns into
two odd paths: "C:\My" and "Documents\filename".
There are various workarounds for this. One of them is to put
filenames in quotes, but again one has to be careful as filenames can
contain quotes too.
Now, LyX itself is supposed to handle filenames with spaces. If it
doesn't, then you can report the bug to the developers. They will
normally fix it in the next release.
If the problem is in one of the helper apps, then the LyX developers
can't fix it. You may still report it to whoever is responsible for
that particular app - maybe it gets fixed someday.
In the meantime, consider working around the problem by using a
path without spaces. Either some folder not under "My Documents",
or rename "My Documents" to "My_Documents" or similiar.
Helge Hafting