On 05/08/2013 10:26 AM, Stephen Brooking wrote:
Hi,I'm using LyX 2.0.5.1 on a Windows 7 machine. I am trying to put together a LyX framework that will allow me to enter some text, set it to a particular Style, and for the text marked by that Style to be written to a file. The filename and path to be specified by other macros. The file created would then be included in my document. (In the interest of brevity I won't go into why I would like to do this.) With the implementation detailed below, I get an error when I generate the PDF document: ! I can't write on file `c:/docs/test.tex'. I have verified that I can generally create files in the c:/docs directory, so I don't think it's a permissions or existence issue. I wonder if it's to do with Windows-style path names? So for example I have this in my document (this is the source that LyX shows for the text I've entered with Styles): \filepath{c:/docs/}
Have you tried it with Windows-style path names? rh
