Jean-Marc Lasgouttes wrote: > Jean-Marc> What I am wondering about right now is where your ~ came > Jean-Marc> from. Obviously, your temp path contains dos-style paths > Jean-Marc> whereas it should not. What about fixing this first? > > More precisely, what about using GetLongPathName > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/getlongpathname.asp > on the result of GetTempPath?
It certainly seems reasonable to do this incrementally, so: * Use GetLongPathName on the result of GetTempPath * Use latex_path to wrap any references to external files, rather than external_path. * Fix os_win32.C's os::external_path. * Fix the file browser to allow the user to select files with spaces in their name. Thereafter, we would need only to modify latex_name to include any 'clever' tricks. I guess if we were really being clever then we'd have a latex_name_preamble() function, called by the various validate() functions to add something like Jürgen's catcode magic for '%' characters to the preamble. For a rainy day. -- Angus