David Boutillier wrote:
I am having difficulty getting LyXWin working properly.

As someone else pointed out in the thread, be sure that you do not try to start LyX from a directory containing spaces in its name or path. Bad Things Will Happen.

Also, it makes a difference what directory is current when you start LyX (in that it will, among other things, create all sorts of new defaults if you start it from someplace other than your normal working directory). This is actually good if you like having different LyX setups for different sorts of projects but can be confusing if unintended. My suggestion (once you have LyX working) is to create a Windows shortcut to the program with Target: set to

<path to LyX bin>\lyx.exe -userdir <path to your home directory>

and Start in: set to <path to LyX bin> (making sure that the paths are free of spaces).

3) When I reconfigure I get a lot of stuff in the command window. Some of it
is as follows:

C:\LaTeX\LyX\lyx\share\lyx\..\..\bin;
C:\LaTeX\LyX\lyx\bin;c:\latex\imagemagick-6.2.3-q16;C:\LaTeX\texmf\miktex\bi
n;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sustem32\Wbem

Usage: C:\LaTeX\LyX\lyx\bin\sed.exe [OPTION] .
.

configure: error: cannot find chkconfig.ltx script.

What does this error mean?

The reconfiguration shell script looked for a file named chkconfig.ltx and did not find it.

How can I fix it?

The first step is to make sure that it's there -- should be in <LyX install directory>\share\lyx. If it's not there, something ate it -- you need to get a copy from somewhere (ask and someone will e-mail it to you).

If it's there, the problem may have to do with the path to it (spaces?). When you run Edit->Reconfigure from inside LyX (started in debug mode), somewhere near the top of the stuff that shows up in the background command window should be something akin to

C:/LyX/share/lyx/configure

(which comes from my setup, so yours will be different). The configuration script attempts to deduce where chkconfig.ltx is by peeling off the path portion of that line. If the path is somehow wrong (or contains spaces), that could account for the "can't find it" message.

Also, I have the folders
c:\latex\gs, and c:\latex\ghostgm that are not mentioned in the search path.

Are they on your Windows command search path? (If you open a command prompt and type "path", are they listed?) If so, they should be part of the stuff that spewed out above (the line that ended with wbem.

I tried changing my PATH to include every folder with an .exe file that has
anything to do with LyX, but that hasn't seemed to make any difference.

Certain external programs that LyX wants to use (notably latex.exe) need to be on the Windows command path. Others (notably Acrobat Reader, if that's what you want to use for viewing PDFs) need not be. IIRC, ImageMagick and Ghostscript binaries need to be on the command path.

4) I have upgraded to a more recent version of sed. When I enter sed
-version into the command window, I get:

GNU sed version 4.1.4

This should work.

5) I deleted the .lyx folder from c:\documents and settings\<user name>, and
that got things mostly working,

Gets rid of those annoying spaces.

but when I try to export of view a .lyx file
as a .pdf, I get a dialogue box that says "Cannot view file. No information
for viewing PDF (dvipdfm)". I have Acrobat reader 7.0 installed in a nearby
folder whose name does not contain any spaces.

Actually, spaces in the path to Acrobat Reader are not a problem, since they are not processed by any natively Unix helpers.

However, having Acrobat Reader installed and LyX knowing that's what you want to use are two separate things. Wander over to Edit->Preferences->File formats->PDF (dvipdfm) and contemplate the Viewer: entry. If it's blank, enter acrord32 and click Modify. Repeat for the other PDF formats, then Save.

Also, when I export a .lyx
file as a .ps file, ghostview does not open, and I cannot control where the
.ps file goes. Is this to be expected?

Yes. First, export does not view a document, it creates an output file in the exported format. If you want to view a document as Postscript, repeat what you did for Acrobat Reader above, but do it to the Postscript file format and make the viewer gsview32 rather than acrord32. This will add Postscript to the choices on the View menu.

As far as where exported files go, they go to the same directory from whence the LyX file came (true for all export formats).

Any help would be muchly appreciated.

Stop back with more specifics if the collected wisdom of the thread doesn't get you squared away.

-- Paul


djb

David Boutillier

PhD Candidate (ABD)

--

Department of Philosophy

The University of Western Ontario

London, Ontario, Canada

N6A 3K7

--

Phone: 416-567-1362

Fax: 519-661-3922

Email:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]


Reply via email to