For several years I've been able to export to PDF using pdflatex regardless of whether or not there was spaces in the directory path or filename.
On Windows 10 Home (Version 1607) I installed LyX 2.2.0 (2016 October 10), and when I try exporting with pdflatex I get the error "Directory path to the document cannot contain spaces".
This seems to be a very common error that is never properly addressed:
- Latex Community: Blank Space(s) in Directory Path - Suggested solution was to de-select 'updates on the fly' in MikTeX but as others said in their replies, it doesn't work for everyone.
- LyX Users: Directory path to the document cannot contain spaces - Suggested solution here was just to remove the spaces in the directory path, which is not actually a solution.
- Linux Questions: lyx help... directory path to the document cannot contain spaces - Suggested solution was to put the whole file path in quotes, but this seems to only be possible using command line LyX in Linux, it is not a solution for Windows.
What is a solution that works for LyX 2.2.0 in Windows 10 ?
name surname
) without problems for months, I added"..."
when needed (now I've given up LyX and also reinstalled W10 with username
but for other reasons). Maybe you have to put the quotes in the paths saved in your LyX options. I also suggest to you to reinstall LyX using the new bins from the LyX site, I know there were problems with the Windows installer of the last version (but now they have fixed them).~/x x/x x.lyx
and it work fine. But said that, with or without LyX, with or without LaTeX, with or without Windows, the main error is still use other than a single and short word for a directory. Sooner or later you will face some problem due to this , including forgetting or mistyping unnecessary complex paths."..."
, unfortunately I don't have LyX available at the moment, you may ask the mailing list [email protected]a.txt b.txt
just one file or two? It's not clear if spaces are allowed, right? So you/the-program need to know if it is the space is only a separator or the character of a filename (quoting, escaping, using%20
, etc.). This is always correctly done? Not at all. More complexity, more errors, so simple.