Re: A Question on Win32 Lyx
Frank Chu wrote: > 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) These patches constitute the difference between the official LyX 1.3.x release and Ruurd's Win32 port. You don't need to touch them. In fact, we should roll them back into the official LyX source. Your problem appears to be that the 'supporting software' that LyX uses isn't up to the task on your system. That's things like 'perl', 'python' and a 'shell environment'. Ruurd provides stripped down versions of these utilities; perhaps they are insufficient for your needs and you should get the real things instead. -- Angus
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
"Frank Chu" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > 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). > I seem to recall some posts to the list once upon a time saying that lyx2lyx was not foolproof. Might be you've hit a bug in it. Two things come to mind: 1. You could try running the following from a DOS prompt: C:\applications\lyx\share\lyx\lyx2lyx\lyx2lyx -t221 -d2 C:/temp/work1.lyx Note that I changed the slashes to Microsoft slashes in the program path but not in the path to the data file (not sure the latter makes a difference), and that I added the -d2 switch to put it in verbose mode (not sure if there should be a space between d and 2). This might give a useful error message. 2. Assuming no proprietary content, you could try posting both the Unix and DOS versions of work1.lyx to the list, so that some of us could try it on our setups. (Or, if you're bashful, you could e-mail them to me. :-) -- Paul
Re: A Question on Win32 Lyx
On Friday 24 October 2003 04:12, Frank Chu wrote: > 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"' Is python installed in your computer. What version? > 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 -- José Abílio LyX and docbook, a perfect match. :-)
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
[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
Re: A Question on Win32 Lyx
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
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