Olivier Ripoll wrote:
Uwe Stöhr wrote:
Hello LyXers,

the alternative Windows installer for LyX 1.6.4 is now available.

Hi Uwe,

Thanks for being so fast as compiling (and thanks all the team for the new version).

I noticed there is a change for elyxer and embedded images. For people who do not have python installed on their machine, the hack to have elyxer to work has changed (the "--directory $$r" has to be added to the LyX->HTML converter, as it has been added in the default installation).

As a reference, the process is the following:

[...]

Here is a variant for people who do not want to (or cannot) copy the elyxer.py file into their lyx folder.
Assuming you have elyxer installed in
C:\Program Files\elyxer
The line to use in step 2 becomes

python "C:/Program Files/elyxer/elyxer.py" --directory $$r $$i $$o

Note that you can also use backslashes:
python "C:\Program Files\elyxer\elyxer.py" --directory $$r $$i $$o

You must take care to enclose the path with "" if you have spaces (like between 'Program' and 'Files').

This variant has the advantage that you do not need to do step 1 at every time you install / uninstall LyX and that you can do it as a user if you are not administrator (i.e. if you cannot write in the Program Files directory, you can have elyxer somewhere in your account).

Best regards,

Olivier

PS: For people who wonder how one can run python while it is not installed on the machine, the answer is that LyX (and inkscape, ...) comes bundled with their own minimal python on Windows.

1- copy the elyxer.py (at least version 0.27) into LyX scripts folder, which should be on most machines:
C:\Program Files\LyX 1.6.4\Resources\scripts

2- in LyX, got to Tools->Preferences, then go to File Handling->Converters section. Select the "LyX -> HTML" converter definition, and replace the Converter line
elyxer --directory $$r $$i $$o
by
python $$s/scripts/elyxer.py --directory $$r $$i $$o
[If you have used this trick before with 1.6.3 and kept the old preferences when installing 1.6.4, the old line to replace should be
python $$s/scripts/elyxer.py $$i $$o
and you should replace it by the same line with the added --directory $$r]

3- Press "Modify" then "Save". You should now be able to export and view with elyxer and have the images.

Without this trick, on my machine, the default code results in elyxer being opened in my text editor (the default action for .py files when you do not have python installed is probably to open them in a editor, or to do nothing).

I hope this can be useful for other people.

Best regards,

Olivier

Reply via email to