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 > `/testreq1.tex'

Re: Problem specifying a new converter

2013-05-09 Thread Stephen Brooking
> $$r The full path to the original LyX file being processed, e.g. > D:/Documents/LyX/ Is this supported in Windows? I tried to update my LaTeX (pdflatex) -> PDF (pdflatex) converter to specify the output directory (to overcome the problem in my other thread); so it is specified as this: pdflat

Re: Problem specifying a new converter

2013-05-09 Thread Stephen Brooking
> There may not be any pdf->png converter defined, though one could use > ImageMagick to define one. A better solution might be to modify the > script you have to export something other than PDF. This is probably > fairly easy to do. So I have now updated my script to convert to PNG also, and s

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 th

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, Ste

Re: Problem specifying a new converter

2013-05-08 Thread Stephen Brooking
> Which doesn't seem to show any error. > > Any other suggestions of what I could try? Am I doing the right thing in > trying to get the console output in the command prompt? Sorry - I wasn't looking high enough up in the debug output. If I just select 'Graphics conversion and loading' messages

Re: Problem specifying a new converter

2013-05-08 Thread Stephen Brooking
> > So I now get my conversion performed OK when I generate the PDF > > document, but the preview of the figure in the LyX editing window > > still says 'Error converting to loadable format'. Would you be able to > > provide me any pointers as to why this is? Is there a log of the > > errors th

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 creat

Re: Problem specifying a new converter

2013-05-08 Thread Stephen Brooking
> > No? I hesitate to contradict you Richard but in my tinkering with > > Python scripts I've run converters using *all* the following: > > [snip] > > $$p The full directory path of the LyX temporary directory. On my > > Windows system one day this was > > > > C:/Users/Andrew/AppData/Local/Temp/l

Problem specifying a new converter

2013-05-07 Thread Stephen Brooking
Hi, I have specified a new converter to convert Visio drawings into PDF (using some VBScript borrowed from elsewhere on the web), but have run into issues. My converter is specified like this: cscript /vsd2pdf.vbs "$$i" "$$o" When Visio runs, it can't access the file to convert because the curr