Looking a bit deeper into the spaces in directories bug, I found that a warning for spaces does exist for included graphic files (insets/figinset.C). I used the same code to make a warning for the main file. Included .lyx files *can* reside in a path with spaces, as long as the patch is applied (sent previously and included here too). Change log: files modified buffer.C,insets/insetinclude.C Warning for spaces in mainfile enable, temporary file names with spaces fixed with underscores. ------------------------------------------------------------ --- buffer.C.bak Fri Jul 7 17:53:28 2000 +++ buffer.C Fri Jul 7 19:48:40 2000 @@ -1684,6 +1684,14 @@ texrow.newline(); } if (!original_path.empty()) { + if (contains(original_path, "#") || contains(original_path, +"~") + || contains(original_path, "$") || contains(original_path, +"%") + || contains(original_path, " ")) { + WriteAlert(_("The TeX run shall be aborted."), + _("Your main file can't contain any of these +characters:"), + _("space, '#', '~', '$' or '%'. ")); + return; + } ofs << "\\makeatletter\n" << "\\def\\input@path{{" << original_path << "/}}\n" ----------------------------------------------------------- --- insetinclude.C.bak Sun Jul 2 12:39:40 2000 +++ insetinclude.C Sun Jul 2 13:04:18 2000 @@ -363,6 +363,7 @@ if (!master->tmppath.empty() && !master->niceFile) { incfile = subst(incfile, '/','@'); + incfile = subst(incfile, ' ','_'); #ifdef __EMX__ incfile = subst(incfile, ':', '$'); #endif ------------------------------------------------------------- -- saludos, Edscott