Re: Converting latex to lyx with Lyx 1.3.x
Thanks, Andres, 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 script LYXDIR\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.)
Re: Converting latex to lyx with Lyx 1.3.x
Thanks, Andres, 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 script LYXDIR\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.)
Re: Converting latex to lyx with Lyx 1.3.x
Thanks, Andres, 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 script LYXDIR\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.)
Re: Converting latex to lyx with Lyx 1.3.x
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 Andres. En Thu, 30 Oct 2003 00:00:21 -0600, Frank Chu [EMAIL PROTECTED] escribió: Dear Andres, Do you know if I should install the patches too ? and how ? I saw these on win32 lyx's homepage: Patches extra files: (updated 20030518) extra_win32_files.tar.bz2 (Some extra header files MSVC wrapper) lyx_win32.diff (Patch against CVS) quick_fix.diff (Dirty compile fixes) Thanks, Frank _ online games and music 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.)
Re: Converting latex to lyx with Lyx 1.3.x
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 Andres. En Thu, 30 Oct 2003 00:00:21 -0600, Frank Chu [EMAIL PROTECTED] escribió: Dear Andres, Do you know if I should install the patches too ? and how ? I saw these on win32 lyx's homepage: Patches extra files: (updated 20030518) extra_win32_files.tar.bz2 (Some extra header files MSVC wrapper) lyx_win32.diff (Patch against CVS) quick_fix.diff (Dirty compile fixes) Thanks, Frank _ online games and music 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.)
Re: Converting latex to lyx with Lyx 1.3.x
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 Andres. En Thu, 30 Oct 2003 00:00:21 -0600, Frank Chu <[EMAIL PROTECTED]> escribió: Dear Andres, Do you know if I should install the patches too ? and how ? I saw these on win32 lyx's homepage: Patches & extra files: (updated 20030518) extra_win32_files.tar.bz2 (Some extra header files & MSVC wrapper) lyx_win32.diff (Patch against CVS) quick_fix.diff (Dirty compile fixes) Thanks, Frank _ online games and music 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.)
Re: A Question on Win32 Lyx
Dear Andres, Do you know if I should install the patches too ? and how ? I saw these on win32 lyx's homepage: Patches extra files: (updated 20030518) extra_win32_files.tar.bz2 (Some extra header files MSVC wrapper) lyx_win32.diff (Patch against CVS) quick_fix.diff (Dirty compile fixes) Thanks, Frank From: Andres Becerra Sandoval [EMAIL PROTECTED] To: Frank Chu [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: A Question on Win32 Lyx Date: Sun, 19 Oct 2003 11:52:38 -0500 Hello, Maybe: perl c:\lyx\bin\reLyX file.tex works from commandline ... Andres. En Sat, 18 Oct 2003 11:06:23 -0500, Frank Chu [EMAIL PROTECTED] escribió: Thanks, Andres, It's already on path. BTW, when you installed it, did you need to install any patch ? I haven't yet. The version I am using is 1.3 Is there any manual way to convert the .tex to .lyx with commandline in Windows? Frank _ See when your friends are online with MSN Messenger 6.0. Download it now FREE! http://msnmessenger-download.com
Re: A Question on Win32 Lyx
Dear Andres, Do you know if I should install the patches too ? and how ? I saw these on win32 lyx's homepage: Patches extra files: (updated 20030518) extra_win32_files.tar.bz2 (Some extra header files MSVC wrapper) lyx_win32.diff (Patch against CVS) quick_fix.diff (Dirty compile fixes) Thanks, Frank From: Andres Becerra Sandoval [EMAIL PROTECTED] To: Frank Chu [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: A Question on Win32 Lyx Date: Sun, 19 Oct 2003 11:52:38 -0500 Hello, Maybe: perl c:\lyx\bin\reLyX file.tex works from commandline ... Andres. En Sat, 18 Oct 2003 11:06:23 -0500, Frank Chu [EMAIL PROTECTED] escribió: Thanks, Andres, It's already on path. BTW, when you installed it, did you need to install any patch ? I haven't yet. The version I am using is 1.3 Is there any manual way to convert the .tex to .lyx with commandline in Windows? Frank _ See when your friends are online with MSN Messenger 6.0. Download it now FREE! http://msnmessenger-download.com
Re: A Question on Win32 Lyx
Dear Andres, Do you know if I should install the patches too ? and how ? I saw these on win32 lyx's homepage: Patches & extra files: (updated 20030518) extra_win32_files.tar.bz2 (Some extra header files & MSVC wrapper) lyx_win32.diff (Patch against CVS) quick_fix.diff (Dirty compile fixes) Thanks, Frank From: Andres Becerra Sandoval <[EMAIL PROTECTED]> To: Frank Chu <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: A Question on Win32 Lyx Date: Sun, 19 Oct 2003 11:52:38 -0500 Hello, Maybe: perl c:\lyx\bin\reLyX file.tex works from commandline ... Andres. En Sat, 18 Oct 2003 11:06:23 -0500, Frank Chu <[EMAIL PROTECTED]> escribió: Thanks, Andres, It's already on path. BTW, when you installed it, did you need to install any patch ? I haven't yet. The version I am using is 1.3 Is there any manual way to convert the .tex to .lyx with commandline in Windows? Frank _ See when your friends are online with MSN Messenger 6.0. Download it now FREE! http://msnmessenger-download.com
Re: A Question on Win32 Lyx
Yeah, it works for conversion. The problem I met seems from openning a .lyx file instead of converting a file. I'll show it in my next mail to the list. Frank From: Andres Becerra Sandoval [EMAIL PROTECTED] To: Frank Chu [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: A Question on Win32 Lyx Date: Sun, 19 Oct 2003 11:52:38 -0500 Hello, Maybe: perl c:\lyx\bin\reLyX file.tex works from commandline ... Andres. En Sat, 18 Oct 2003 11:06:23 -0500, Frank Chu [EMAIL PROTECTED] escribió: Thanks, Andres, It's already on path. BTW, when you installed it, did you need to install any patch ? I haven't yet. The version I am using is 1.3 Is there any manual way to convert the .tex to .lyx with commandline in Windows? Frank _ Send instant messages to anyone on your contact list with MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.com
Re: A Question on Win32 Lyx
Thanks, Paul, Here is the error message I got in the debugging window when openning work1.lyx file: Buffer::Buffer() Assigning to buffer 0 Running 'C:/applications/lyx/share/lyx/lyx2lyx/lyx2lyx -t221 C:/temp/work1.lyx' On the Lyx GUI, it said: ERROR! An error occured while running the conversion script. Is that a bug ? BTW, work1.lyx is a good lyx file, in the sense that it is converted from a good lyx file on Unix (converted to DOS just by changing the end-of-line character). Frank From: Paul A. Rubin [EMAIL PROTECTED] To: Frank Chu [EMAIL PROTECTED] Subject: Re: A Question on Win32 Lyx Date: Tue, 21 Oct 2003 16:04:44 -0400 [posted and mailed] Frank Chu [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: Hi, folks, When I tried to import a Latex file, it flashed out a DOS prompt window and immediately closed that window (it seems it said Bad Filename or command or things like that). Looks like I missed some script that it tried to call for converting latex file ? BTW, my lyx's bin directory is on PATH. If this is still a problem, try the following. Open a DOS window in the LyX bin directory, and type lyx -dbg 5 at the command prompt. It should open the LyX GUI. Now try importing your LaTeX file and (without closing the LyX window) switch back to the DOS window and see what messages you got relating to the import operation. Hopefully, if a script blew up, you'll find out which one (and maybe something about why) there. BTW, I agree that the %~p0 in reLyx.bat looks a bit goofy by Windows standards, but it works on my (XP) system. -- Paul * Paul A. Rubin Phone:(517) 432-3509 Department of Management Fax: (517) 432- The Eli Broad Graduate School of ManagementE-mail: [EMAIL PROTECTED] Michigan State University http://www.msu.edu/~rubin/ East Lansing, MI 48824-1122 (USA) * Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different.J. W. v. GOETHE _ Surf and talk on the phone at the same time with broadband Internet access. Get high-speed for as low as $29.95/month (depending on the local service providers in your area). https://broadband.msn.com
Re: A Question on Win32 Lyx
Yeah, it works for conversion. The problem I met seems from openning a .lyx file instead of converting a file. I'll show it in my next mail to the list. Frank From: Andres Becerra Sandoval [EMAIL PROTECTED] To: Frank Chu [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: A Question on Win32 Lyx Date: Sun, 19 Oct 2003 11:52:38 -0500 Hello, Maybe: perl c:\lyx\bin\reLyX file.tex works from commandline ... Andres. En Sat, 18 Oct 2003 11:06:23 -0500, Frank Chu [EMAIL PROTECTED] escribió: Thanks, Andres, It's already on path. BTW, when you installed it, did you need to install any patch ? I haven't yet. The version I am using is 1.3 Is there any manual way to convert the .tex to .lyx with commandline in Windows? Frank _ Send instant messages to anyone on your contact list with MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.com
Re: A Question on Win32 Lyx
Thanks, Paul, Here is the error message I got in the debugging window when openning work1.lyx file: Buffer::Buffer() Assigning to buffer 0 Running 'C:/applications/lyx/share/lyx/lyx2lyx/lyx2lyx -t221 C:/temp/work1.lyx' On the Lyx GUI, it said: ERROR! An error occured while running the conversion script. Is that a bug ? BTW, work1.lyx is a good lyx file, in the sense that it is converted from a good lyx file on Unix (converted to DOS just by changing the end-of-line character). Frank From: Paul A. Rubin [EMAIL PROTECTED] To: Frank Chu [EMAIL PROTECTED] Subject: Re: A Question on Win32 Lyx Date: Tue, 21 Oct 2003 16:04:44 -0400 [posted and mailed] Frank Chu [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: Hi, folks, When I tried to import a Latex file, it flashed out a DOS prompt window and immediately closed that window (it seems it said Bad Filename or command or things like that). Looks like I missed some script that it tried to call for converting latex file ? BTW, my lyx's bin directory is on PATH. If this is still a problem, try the following. Open a DOS window in the LyX bin directory, and type lyx -dbg 5 at the command prompt. It should open the LyX GUI. Now try importing your LaTeX file and (without closing the LyX window) switch back to the DOS window and see what messages you got relating to the import operation. Hopefully, if a script blew up, you'll find out which one (and maybe something about why) there. BTW, I agree that the %~p0 in reLyx.bat looks a bit goofy by Windows standards, but it works on my (XP) system. -- Paul * Paul A. Rubin Phone:(517) 432-3509 Department of Management Fax: (517) 432- The Eli Broad Graduate School of ManagementE-mail: [EMAIL PROTECTED] Michigan State University http://www.msu.edu/~rubin/ East Lansing, MI 48824-1122 (USA) * Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different.J. W. v. GOETHE _ Surf and talk on the phone at the same time with broadband Internet access. Get high-speed for as low as $29.95/month (depending on the local service providers in your area). https://broadband.msn.com
Re: A Question on Win32 Lyx
Yeah, it works for conversion. The problem I met seems from "openning" a .lyx file instead of converting a file. I'll show it in my next mail to the list. Frank From: Andres Becerra Sandoval <[EMAIL PROTECTED]> To: Frank Chu <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: A Question on Win32 Lyx Date: Sun, 19 Oct 2003 11:52:38 -0500 Hello, Maybe: perl c:\lyx\bin\reLyX file.tex works from commandline ... Andres. En Sat, 18 Oct 2003 11:06:23 -0500, Frank Chu <[EMAIL PROTECTED]> escribió: Thanks, Andres, It's already on path. BTW, when you installed it, did you need to install any patch ? I haven't yet. The version I am using is 1.3 Is there any manual way to convert the .tex to .lyx with commandline in Windows? Frank _ Send instant messages to anyone on your contact list with MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.com
Re: A Question on Win32 Lyx
Thanks, Paul, Here is the error message I got in the debugging window when openning work1.lyx file: Buffer::Buffer() Assigning to buffer 0 Running 'C:/applications/lyx/share/lyx/lyx2lyx/lyx2lyx -t221 "C:/temp/work1.lyx"' On the Lyx GUI, it said: ERROR! An error occured while running the conversion script. Is that a bug ? BTW, work1.lyx is a good lyx file, in the sense that it is converted from a good lyx file on Unix (converted to DOS just by changing the end-of-line character). Frank From: "Paul A. Rubin" <[EMAIL PROTECTED]> To: Frank Chu <[EMAIL PROTECTED]> Subject: Re: A Question on Win32 Lyx Date: Tue, 21 Oct 2003 16:04:44 -0400 [posted and mailed] "Frank Chu" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Hi, folks, > > When I tried to > import a Latex file, it flashed out a DOS prompt window and > immediately closed that window (it seems it said "Bad Filename or > command" or things like that). Looks like I missed some script that > it tried to call for converting latex file ? BTW, my lyx's bin > directory is on PATH. If this is still a problem, try the following. Open a DOS window in the LyX bin directory, and type lyx -dbg 5 at the command prompt. It should open the LyX GUI. Now try importing your LaTeX file and (without closing the LyX window) switch back to the DOS window and see what messages you got relating to the import operation. Hopefully, if a script blew up, you'll find out which one (and maybe something about why) there. BTW, I agree that the %~p0 in reLyx.bat looks a bit goofy by Windows standards, but it works on my (XP) system. -- Paul * Paul A. Rubin Phone:(517) 432-3509 Department of Management Fax: (517) 432- The Eli Broad Graduate School of ManagementE-mail: [EMAIL PROTECTED] Michigan State University http://www.msu.edu/~rubin/ East Lansing, MI 48824-1122 (USA) * Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different.J. W. v. GOETHE _ Surf and talk on the phone at the same time with broadband Internet access. Get high-speed for as low as $29.95/month (depending on the local service providers in your area). https://broadband.msn.com
Re: A Question on Win32 Lyx
Thanks so much, Guido, I do have perl in my system (on path too) running normally all the time. Your are right. I found the .lyx file I got from Unix is not DOS format. So I used unix2dos to change it. Now, it still can't open the changed .lyx file. It said ERROR! An error occured while running the conversion script. Below is the reLyx.bat. I don't understand why it has a %~p0 there. It doesn't seem to be a right Windows env var. @echo off rem Wrapper script for Win32 rem written by Ruurd Reitsma set PERLLIB=%~p0..\lib %~p0\perl.exe %~p0\reLyX %1 %2 %3 I tried to run this script in DOS Prompt: perl reLyX xxx (xxx.tex is a Latex file) and it produced a .lyx file successfully. However the same error message occured when I used Lyx to open this .lyx file. Furthermore, I noticed the Window environmental variable PERLLIB became ~p0..\lib, which doesn't seem right. Anything wrong with the reLyX script ? Thanks, Frank From: Guido Milanese [EMAIL PROTECTED] To: Frank Chu [EMAIL PROTECTED] Subject: Re: A Question on Win32 Lyx Date: Sat, 18 Oct 2003 11:58:36 +0200 On Saturday 18 October 2003 06:31, Frank Chu wrote: When I tried to import a Latex file, it flashed out a DOS prompt window and immediately closed that window (it seems it said Bad Filename or command or things like that). Looks like I missed some script that it tried to call for converting latex file ? BTW, my lyx's bin directory is on PATH. reLyX is a perl script, so you need perl in your system (for Windows, if I remember correctly, there is a product called Activeperl available for free). Furthermore, I can't even open a .lyx file that I generated from a lower version lyx on Unix. I can read the .lyx that this win32 lyx brings with. Change end of line. A simple system is to load the file with vim under windows or linux (or kwrite/kate, or any editor with end-of-line control) and to save it again with Windows format. Or use little efficient scripts as unix2dos, available on the Internet. HTH, g. -- Guido Milanese Vocal Ensemble Ars Antiqua, Genova, Italy http://www.arsantiqua.org *** GAUDETE IN DOMINO SEMPER *** _ Send instant messages to anyone on your contact list with MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.com
Re: A Question on Win32 Lyx
Thanks so much, Guido, I do have perl in my system (on path too) running normally all the time. Your are right. I found the .lyx file I got from Unix is not DOS format. So I used unix2dos to change it. Now, it still can't open the changed .lyx file. It said ERROR! An error occured while running the conversion script. Below is the reLyx.bat. I don't understand why it has a %~p0 there. It doesn't seem to be a right Windows env var. @echo off rem Wrapper script for Win32 rem written by Ruurd Reitsma set PERLLIB=%~p0..\lib %~p0\perl.exe %~p0\reLyX %1 %2 %3 I tried to run this script in DOS Prompt: perl reLyX xxx (xxx.tex is a Latex file) and it produced a .lyx file successfully. However the same error message occured when I used Lyx to open this .lyx file. Furthermore, I noticed the Window environmental variable PERLLIB became ~p0..\lib, which doesn't seem right. Anything wrong with the reLyX script ? Thanks, Frank From: Guido Milanese [EMAIL PROTECTED] To: Frank Chu [EMAIL PROTECTED] Subject: Re: A Question on Win32 Lyx Date: Sat, 18 Oct 2003 11:58:36 +0200 On Saturday 18 October 2003 06:31, Frank Chu wrote: When I tried to import a Latex file, it flashed out a DOS prompt window and immediately closed that window (it seems it said Bad Filename or command or things like that). Looks like I missed some script that it tried to call for converting latex file ? BTW, my lyx's bin directory is on PATH. reLyX is a perl script, so you need perl in your system (for Windows, if I remember correctly, there is a product called Activeperl available for free). Furthermore, I can't even open a .lyx file that I generated from a lower version lyx on Unix. I can read the .lyx that this win32 lyx brings with. Change end of line. A simple system is to load the file with vim under windows or linux (or kwrite/kate, or any editor with end-of-line control) and to save it again with Windows format. Or use little efficient scripts as unix2dos, available on the Internet. HTH, g. -- Guido Milanese Vocal Ensemble Ars Antiqua, Genova, Italy http://www.arsantiqua.org *** GAUDETE IN DOMINO SEMPER *** _ Send instant messages to anyone on your contact list with MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.com
Re: A Question on Win32 Lyx
Thanks so much, Guido, I do have perl in my system (on path too) running normally all the time. Your are right. I found the .lyx file I got from Unix is not DOS format. So I used unix2dos to change it. Now, it still can't open the changed .lyx file. It said "ERROR! An error occured while running the conversion script." Below is the reLyx.bat. I don't understand why it has a %~p0 there. It doesn't seem to be a right Windows env var. @echo off rem Wrapper script for Win32 rem written by Ruurd Reitsma set PERLLIB=%~p0..\lib %~p0\perl.exe %~p0\reLyX %1 %2 %3 I tried to run this script in DOS Prompt: perl reLyX xxx (xxx.tex is a Latex file) and it produced a .lyx file successfully. However the same error message occured when I used Lyx to open this .lyx file. Furthermore, I noticed the Window environmental variable PERLLIB became ~p0..\lib, which doesn't seem right. Anything wrong with the reLyX script ? Thanks, Frank From: Guido Milanese <[EMAIL PROTECTED]> To: "Frank Chu" <[EMAIL PROTECTED]> Subject: Re: A Question on Win32 Lyx Date: Sat, 18 Oct 2003 11:58:36 +0200 On Saturday 18 October 2003 06:31, Frank Chu wrote: > When I tried to > import a Latex file, it flashed out a DOS prompt window and > immediately closed that window (it seems it said "Bad Filename or > command" or things like that). Looks like I missed some script > that it tried to call for converting latex file ? BTW, my lyx's > bin directory is on PATH. reLyX is a perl script, so you need perl in your system (for Windows, if I remember correctly, there is a product called Activeperl available for free). > Furthermore, I can't even > open a .lyx file that I generated from a lower version lyx on Unix. > I can read > the .lyx that this win32 lyx brings with. Change end of line. A simple system is to load the file with vim under windows or linux (or kwrite/kate, or any editor with end-of-line control) and to save it again with Windows format. Or use little efficient scripts as unix2dos, available on the Internet. HTH, g. -- Guido Milanese Vocal Ensemble "Ars Antiqua", Genova, Italy http://www.arsantiqua.org *** GAUDETE IN DOMINO SEMPER *** _ Send instant messages to anyone on your contact list with MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.com
A Question on Win32 Lyx
Hi, folks, When I tried to import a Latex file, it flashed out a DOS prompt window and immediately closed that window (it seems it said Bad Filename or command or things like that). Looks like I missed some script that it tried to call for converting latex file ? BTW, my lyx's bin directory is on PATH. My Win98 PC has MikTex installed and it worked all the time. I also installed the following fonts to Windows font directory: http://www-ftp.lip6.fr/pub/lyx/contrib/latex-xft-fonts-0.1.tar.gz I also have Imagemagick installed. The latex file I tried is just a small latex file with a few text and figures.It is a good latex (means: it works on Unix as well as MikTex on my PC). Furthermore, I can't even open a .lyx file that I generated from a lower version lyx on Unix. I can read the .lyx that this win32 lyx brings with. Do I need to install Qt ? I haven't yet. Anyone knows why ? Thanks, Frank PS: its relyx script is like this. Don't understand why. @echo off rem Wrapper script for Win32 rem written by Ruurd Reitsma set PERLLIB=%~p0..\lib %~p0\perl.exe %~p0\reLyX %1 %2 %3 _ Concerned that messages may bounce because your Hotmail account has exceeded its 2MB storage limit? Get Hotmail Extra Storage! http://join.msn.com/?PAGE=features/es
A Question on Win32 Lyx
Hi, folks, When I tried to import a Latex file, it flashed out a DOS prompt window and immediately closed that window (it seems it said Bad Filename or command or things like that). Looks like I missed some script that it tried to call for converting latex file ? BTW, my lyx's bin directory is on PATH. My Win98 PC has MikTex installed and it worked all the time. I also installed the following fonts to Windows font directory: http://www-ftp.lip6.fr/pub/lyx/contrib/latex-xft-fonts-0.1.tar.gz I also have Imagemagick installed. The latex file I tried is just a small latex file with a few text and figures.It is a good latex (means: it works on Unix as well as MikTex on my PC). Furthermore, I can't even open a .lyx file that I generated from a lower version lyx on Unix. I can read the .lyx that this win32 lyx brings with. Do I need to install Qt ? I haven't yet. Anyone knows why ? Thanks, Frank PS: its relyx script is like this. Don't understand why. @echo off rem Wrapper script for Win32 rem written by Ruurd Reitsma set PERLLIB=%~p0..\lib %~p0\perl.exe %~p0\reLyX %1 %2 %3 _ Concerned that messages may bounce because your Hotmail account has exceeded its 2MB storage limit? Get Hotmail Extra Storage! http://join.msn.com/?PAGE=features/es
A Question on Win32 Lyx
Hi, folks, When I tried to import a Latex file, it flashed out a DOS prompt window and immediately closed that window (it seems it said "Bad Filename or command" or things like that). Looks like I missed some script that it tried to call for converting latex file ? BTW, my lyx's bin directory is on PATH. My Win98 PC has MikTex installed and it worked all the time. I also installed the following fonts to Windows font directory: http://www-ftp.lip6.fr/pub/lyx/contrib/latex-xft-fonts-0.1.tar.gz I also have Imagemagick installed. The latex file I tried is just a small latex file with a few text and figures.It is a good latex (means: it works on Unix as well as MikTex on my PC). Furthermore, I can't even open a .lyx file that I generated from a lower version lyx on Unix. I can read the .lyx that this win32 lyx brings with. Do I need to install Qt ? I haven't yet. Anyone knows why ? Thanks, Frank PS: its relyx script is like this. Don't understand why. @echo off rem Wrapper script for Win32 rem written by Ruurd Reitsma set PERLLIB=%~p0..\lib %~p0\perl.exe %~p0\reLyX %1 %2 %3 _ Concerned that messages may bounce because your Hotmail account has exceeded its 2MB storage limit? Get Hotmail Extra Storage! http://join.msn.com/?PAGE=features/es