I just found a solution. It maybe helpful to document it. So, feel free to document it somewhere.
There is a proposed solution at: http://www.mail-archive.com/[EMAIL PROTECTED]/msg29976.html
But there is an error there:
LYXDIR\lyx2lyx.bat foo.lyx > temp.lyx should be==> LYXDIR\lyx2lyx foo.lyx > temp.lyx
After making the changes as described there, I am not sure if it solves the problem for all the systems. For me, it needs a bit more work. Basically I found a way manually convert latex to lyx with the native win32 lyx. It takes two steps, in addition to the changes described in that link: (assuming your LYXDIR\bin is on PATH)
1. Convert Latex file to lyx file:
perl LYXDIR\bin\relyx xxx
Note: the latex filename is xxx.tex, above automatically produces xxx.lyx
for help: perl LYXDIR\bin\relyx -h
Such an xxx.lyx file cannot be used yet, one should:
2. Convert Lyx accross different Lyx versions:
python -S LYXDIR\share\lyx\lyx2lyx\lyx2lyx -o yyy.lyx xxx.lyx
Such a xxx.lyx file should be unix format (No need to change Enter key to DOS format)
one can also add -t 1.3 -f 1.1.6
From ver1.1.6 to ver1.3 (I guess) For detail look at the python scriptLYXDIR\share\lyx\lyx2lyx\lyx2lyx
For help: python -S LYXDIR\share\lyx\lyx2lyx\lyx2lyx -h
(For Win98, to get more space for env var, one may need to add one line in config.sys: shell=C:\WINDOWS\command.com C:\WINDOWS /e:4096 /p)
Frank
From: Andres Becerra Sandoval <[EMAIL PROTECTED]> To: Frank Chu <[EMAIL PROTECTED]> Subject: Re: Converting latex to lyx with Lyx 1.3.x Date: Fri, 21 Nov 2003 10:26:40 -0500
Hello,
The conversion from latex to lyx is complex, and the process has no guarantees to work perfectly.If the latex file is simple the conversion works, if it has lots of stuff it may fail.
Maybe you can split the latex document in order to convert the chunks partially.
If you want, you can send me the file to convert, I can't promess nothing, anyway :-)
Andres.
En Fri, 21 Nov 2003 01:22:29 -0600, Frank Chu <[EMAIL PROTECTED]> escribió:
Andres wrote:Do you still have problems with lyx? What problems?
It seems I can guess some reasons: is it the problem of the conversion script in lyx 1.3.x ? Just now I happened to use a Unix version of Lyx (but 1.3.x) and it can't convert my latex file to lyx file right (however lyx 1.1.6fixed does very good job -- never had a problem). Do you know any compatibility problem in lyx version control, etc. ? Sorry for my ignorance. Thanks!
Frank
_________________________________________________________________
Say “goodbye” to busy signals and slow downloads with a high-speed Internet connection! Prices start at less than $1 a day average. https://broadband.msn.com (Prices may vary by service area.)