Ana Lobo wrote:
Hi all,
I´m novice in both LyX and LateX. I´m running LyX in Windows XP. I´ve installed LyX version 1.3.7 and I´m running it with Small Miktex version 2.4.1461.
I´ve started running the tutorials, and it worked nicely. Than, I tried to write my own article using a predefined style from my University. After a while, it worked ok too (I needed to adapt using Preamble and adding an ERT).
So far, I was succedeeing in generating a DVI file. To do this, I just select
View->DVI in LyX menu.
The next step was adding float figures in my document. I succedded to add the
figures, they are showed in the LyX document. I´ve just added them by using the options
Insert->Floats->Figure and Insert->Graphics. Then, I added an EPS figure.
The figure is displayed in LyX document nicely, everything seems to be ok,
but when I try to generate a DVI file, it didn´t work. It appears the
following error message:
Cannot convert file
Error while executing
python "C:/Arquivos de programas/LyX/Resources/lyx"
The argument to the python command is a directory, when it should be a
file. I have not seen that error before, so I have no idea what caused it.
Other times when I tried to generate the DVI file, it occurs a different error. It seems the DVI file was generated wrongly and then the DVI viewer couldn´t open it correctly.
It seems odd that the error is inconsistent. Do you recall what the
other error messages were?
Despite this error message, I´ve got the DVI file following these steps:
1) Export the LateX file (File->Import->Latex)
2) Runnig Miktex on the generated Tex file and running the DVI viewer
(outside Lyx environment).
Do you have any idea what´s going on? I´ve tried to find any clue in LyX documentation but I didn´t find.
I´d like to do everything inside LyX environment. Could you help on this,
please?
The first thing I would do is check the converter. In LyX, click on
Edit->Preferences->Converters. There should be an entry labeled
'DraftDVI->DVI'. Click on that and look at the entry in the Converter:
field. It should look like the following:
python $$s/scripts/clean_dvi.py $$i $$o
Does yours match that?
/Paul