Re: Specifying a path prefix in a LaTeX macro

2013-05-21 Thread Julien Rioux
On 09/05/2013 1:11 PM, Stephen Brooking wrote: I've tried the same under Windows (I need this to work with LyX under Windows), setting an environment variable to point to a path (and reconfiguring and restarting LyX just in case), and specifying that path as my \filepath, but I still get the

Re: Specifying a path prefix in a LaTeX macro

2013-05-21 Thread Julien Rioux
On 09/05/2013 1:11 PM, Stephen Brooking wrote: I've tried the same under Windows (I need this to work with LyX under Windows), setting an environment variable to point to a path (and reconfiguring and restarting LyX just in case), and specifying that path as my \filepath, but I still get the

Re: Specifying a path prefix in a LaTeX macro

2013-05-21 Thread Julien Rioux
On 09/05/2013 1:11 PM, Stephen Brooking wrote: I've tried the same under Windows (I need this to work with LyX under Windows), setting an environment variable to point to a path (and reconfiguring and restarting LyX just in case), and specifying that path as my \filepath, but I still get the

Re: Specifying a path prefix in a LaTeX macro

2013-05-09 Thread Stephen Brooking
\filepath{c:/docs/} Have you tried it with Windows-style path names? So I changed this to define a \dirsep macro which gives me a backslash. Using \textbackslash (and I think escaping the backslash) seemed to insert a \T1 macro that is undefined. However, with my \dirsep, I still get the

Re: Specifying a path prefix in a LaTeX macro

2013-05-09 Thread Stephen Brooking
I've tried the same under Windows (I need this to work with LyX under Windows), setting an environment variable to point to a path (and reconfiguring and restarting LyX just in case), and specifying that path as my \filepath, but I still get the same 'I can't write on file `path/testreq1.tex'

Re: Specifying a path prefix in a LaTeX macro

2013-05-09 Thread Stephen Brooking
\filepath{c:/docs/} Have you tried it with Windows-style path names? So I changed this to define a \dirsep macro which gives me a backslash. Using \textbackslash (and I think escaping the backslash) seemed to insert a \T1 macro that is undefined. However, with my \dirsep, I still get the

Re: Specifying a path prefix in a LaTeX macro

2013-05-09 Thread Stephen Brooking
I've tried the same under Windows (I need this to work with LyX under Windows), setting an environment variable to point to a path (and reconfiguring and restarting LyX just in case), and specifying that path as my \filepath, but I still get the same 'I can't write on file `path/testreq1.tex'

Re: Specifying a path prefix in a LaTeX macro

2013-05-09 Thread Stephen Brooking
> > \filepath{c:/docs/} > > Have you tried it with Windows-style path names? So I changed this to define a \dirsep macro which gives me a backslash. Using \textbackslash (and I think escaping the backslash) seemed to insert a \T1 macro that is undefined. However, with my \dirsep, I still get

Re: Specifying a path prefix in a LaTeX macro

2013-05-09 Thread Stephen Brooking
> I've tried the same under Windows (I need this to work with LyX under > Windows), setting an environment variable to point to a path (and > reconfiguring and restarting LyX just in case), and specifying that path as > my \filepath, but I still get the same 'I can't write on file >

Specifying a path prefix in a LaTeX macro

2013-05-08 Thread Stephen Brooking
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

Re: Specifying a path prefix in a LaTeX macro

2013-05-08 Thread Richard Heck
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

Re: Specifying a path prefix in a LaTeX macro

2013-05-08 Thread Stephen Brooking
\filepath{c:/docs/} Have you tried it with Windows-style path names? Hi Richard, I have, but I'm not sure I've tried it in the correct way. \filepath{c:\docs\} The above would be looking for the macro \docs ? How should I express the Windows-style path names? Thanks and regards, Steve

Re: Specifying a path prefix in a LaTeX macro

2013-05-08 Thread Richard Heck
On 05/08/2013 01:05 PM, Stephen Brooking wrote: \filepath{c:/docs/} Have you tried it with Windows-style path names? Hi Richard, I have, but I'm not sure I've tried it in the correct way. \filepath{c:\docs\} The above would be looking for the macro \docs ? How should I express the

Re: Specifying a path prefix in a LaTeX macro

2013-05-08 Thread Paul A . Rubin
What about escaping the backslashes? Paul

Specifying a path prefix in a LaTeX macro

2013-05-08 Thread Stephen Brooking
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

Re: Specifying a path prefix in a LaTeX macro

2013-05-08 Thread Richard Heck
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

Re: Specifying a path prefix in a LaTeX macro

2013-05-08 Thread Stephen Brooking
\filepath{c:/docs/} Have you tried it with Windows-style path names? Hi Richard, I have, but I'm not sure I've tried it in the correct way. \filepath{c:\docs\} The above would be looking for the macro \docs ? How should I express the Windows-style path names? Thanks and regards, Steve

Re: Specifying a path prefix in a LaTeX macro

2013-05-08 Thread Richard Heck
On 05/08/2013 01:05 PM, Stephen Brooking wrote: \filepath{c:/docs/} Have you tried it with Windows-style path names? Hi Richard, I have, but I'm not sure I've tried it in the correct way. \filepath{c:\docs\} The above would be looking for the macro \docs ? How should I express the

Re: Specifying a path prefix in a LaTeX macro

2013-05-08 Thread Paul A . Rubin
What about escaping the backslashes? Paul

Specifying a path prefix in a LaTeX macro

2013-05-08 Thread Stephen Brooking
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

Re: Specifying a path prefix in a LaTeX macro

2013-05-08 Thread Richard Heck
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

Re: Specifying a path prefix in a LaTeX macro

2013-05-08 Thread Stephen Brooking
> > \filepath{c:/docs/} > > Have you tried it with Windows-style path names? Hi Richard, I have, but I'm not sure I've tried it in the correct way. \filepath{c:\docs\} The above would be looking for the macro \docs ? How should I express the Windows-style path names? Thanks and regards,

Re: Specifying a path prefix in a LaTeX macro

2013-05-08 Thread Richard Heck
On 05/08/2013 01:05 PM, Stephen Brooking wrote: \filepath{c:/docs/} Have you tried it with Windows-style path names? Hi Richard, I have, but I'm not sure I've tried it in the correct way. \filepath{c:\docs\} The above would be looking for the macro \docs ? How should I express the

Re: Specifying a path prefix in a LaTeX macro

2013-05-08 Thread Paul A . Rubin
What about escaping the backslashes? Paul