[EMAIL PROTECTED] wrote:
Hi Paul,

I have just upgraded LyX to v 1.3.5 on a Windows XP machine. Works well except for the export function. I cannot even export latex. Can anyone suggest what I need to do?


I take "works well" to mean you can view documents in DVI form? If so, it sounds like a path or permission problem.


Correct.

Open a command window (in the LyX bin directory if it's not on your command path, or any directory if it is) and start LyX in debug mode:

lyx -dbg 262144 -userdir <path to your document directory>


Then open a document and try to export to LaTeX. (I'm assuming that the File->Export->LaTeX option exists and is not grayed out on the File menu.) What does the command window show in the way of debugging messages?


When I followed this prescription, the export function worked correctly.

So I shut down LyX and tried again by clicking on my file. Now the export fails.

That's pretty much a given in the Windows version. I don't know why it happens, but when you invoke a file by double-clicking on the file, LyX inserts path information into the file name, with separators replaced by underscores. I see from one of your recent posts that you encountered this. The path and file names are correct, but apparently some portion of LyX chokes on them. Among other things, if you open a file this way, View->DVI works, but if you then modify the document and try to update the DVI view, updating fails.


The pdf is produced I think (latex runs twice and there is a buffer export according to the commentary on the bottom left of the LyX window), but then vanishes into the ether.

I am beginning to suspect that there is a problem with a configuration file. Can I return to default settings somehow?

You can, but I doubt this is the culprit. When you run LyX, it will create a directory tree under whatever folder you start in, or whatever folder you declare to be your home directory. Any customization you do is stored in this tree; the default "out of the box" setup information is preserved in the LyX ...\share\lyx\... tree. There's a file named "preferences" (no extension) in the home directory. Delete that and LyX should restart using the default preferences. If that's not sufficient, delete all the files and folders LyX created in your home directory, and then restart LyX. I'm pretty sure this is overkill, though.


Is the Windows registry used?

No. That's one virtue of this being a Unix port -- Unix has no registry, so unless Ruurd goes out of his way, his LyX port won't use the Windows registry.


Looking at your recent posts raises a question. If you open LyX first, then use the File->Open command to open a document, view it (successfully) and try to export it (unsuccessfully), does the copy of the file in the temp directory have an unqualified file name and extension, or are there underscores and path information? The latter should occur only when you open the file by double-clicking. (Well, it shouldn't happen at all, but at worst it should only happen with the double-click approach.)

One other thing, which may or may not be relevant to your setup: Unix does not allow spaces in path names, and so portions of LyX and/or parts of your LaTeX distribution will choke on spaces. In particular, if you open a document living in a directory whose path contains spaces, bad things will happen. I've been assuming this is not the case for you, because typically you get a message that latex.exe cannot process the file, but I should confirm this with you.

-- Paul


Andrew

. *--------------------------------------------------*
Andrew Horsfield [EMAIL PROTECTED]
Department of Physics and Astronomy,
University College London,
Gower Street, London WC1E 6BT, United Kingdom
Phone:+44-(0)20-7679-7701 FAX:+44-(0)20-7679-1360
*--------------------------------------------------*




--
******************************************************************************************
Paul A. Rubin Phone: (517) 432-3509
Department of Management Fax: (517) 432-1111
The Eli Broad Graduate School of Management E-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




Reply via email to