Rui Prior wrote:
Dear LyX developers,
Under windows (at least), the paths to the viewers configured under
Preferences->File_Formats->Viewer
cannot contain spaces. In most installations, at least acrobat reader
will be under "C:\Program Files", and cannot be used. As a workaround I
created .bat files that call the actual viewers and placed them under
"C:\Programs", but it would be nice not to have to resort to such hacks.
You can actually configure a viewer with spaces in the pathname by
placing it inside double quotes, and it will work, but only until you
restart LyX. The problem in the parsing of the preferences file, as such
pathname will be stored as in this example:
\format "eps" "eps" "EPS" "" ""C:\Program Files\gsview\gsview32.exe"" ""
I have tried manually adding different styles of escaping, but without
success...
Best regards.
Rui Prior
You didn't specify which version of LyX you're using. In recent
versions (at least 1.3.7 and 1.4.x), in the Preferences dialog there's a
tab for Paths which includes a PATH Prefix. You can add C:\Program
Files\whoever\whatever to the path prefix (including spaces), with a
semicolon as separator from the rest of the path. Then give just the
viewer name (without path) in the file formats tab.
/Paul