Stephen Harris wrote:
> Hello from a tester,

Hello, Stephen.

> I did not meet with success in setting up tex2lyx.exe
> and tex2lyx.cmd.  I received the error message: "Cannot
> open specified file. Create new document with this name?"

Before we try and get tex2lyx working "automatically" from within LyX,
we should try and get it working from the command line where
debugging is much easier.

> Originally, I had a C:\python24 not under Tools. So I made
> a directory c:\tools and moved python24 underneath it
> so as to conform with this instruction from Nicolas in
> writing tex2lyx.cmd
> 
> set PYTHONPATH=C:\tools\Python24\lib;C:\tools\Python24\dlls

I don't think that we should need to mess around with PYTHONPATH.
That's something that your Python installation should handle. FWIW, I
have Python installed at C:\Python24 on my Windows machine and it
works perfectly.

>From a cmd console can you run tex2lyx and lyx2lyx "by hand"?

PROMPT> C:\Program Files\lyx\bin\tex2lyx infile.tex > outfile_14x.lyx
PROMPT> C:\Python24\python.exe C:\Program
Files\lyx\Resources\lyx\lyx2lyx\lyx2lyx --to 221 --output
outfile_13x.lyx outfile_14x.lyx

I may have the exact syntax wrong, but you get the idea.

PROMPT> tex2lyx -help
PROMPT> python <path to>\lyx2lyx --help

> I thought that in Windows that putting the prime directive
> in the path was sufficient since dos searches all the
> sub-directories unlike *nix? 

Really? Weird.

-- 
Angus

Reply via email to