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




Reply via email to