Olivier Ripoll wrote:
Uwe Stöhr wrote:
Olivier Ripoll schrieb:

Just a question: What's the status of elyxer in your installer ?

[...]

But even now, LyX will recognize eLyXer when you have it installed. All you have to do is to add the path to the file elyxer.py in the PATH prefix in LyX's preferences. Then reconfigure LyX and eLyXer should work. Could you please try this out? A feed back from you if this works would help me.

Well, after doing this, exporting to HTML results only in elyxer.py being opened in my text editor, LyX window being "white" until I close the editor (closing the file is not enough). And no HTML has been produced, as far as I can see. I do not have python installed and do not want to (well, there are some python.exe with LyX and Inkscape), so the only action defined for .py files is "open", which is with my text editor (PSPAD).

Same effect with elyxer 0.23 or 0.24.

It seems that the problem is that lyx tries to launch elyxer.py directly instead of calling the local python interpreter. But then, if I add python before elyxer.py in the command for LyX->HTML, python fails to find elyxer.py (even if I copy it in the scripts or bin folders).

Any idea ?

I managed to get elyxer working by doing the following:
- copy elyxer.py to the script folder ("C:\Program Files\LyX 1.6.3\Resources\scripts") on my machine, - in Preferences -> Converters, in the LyX -> HTML, modify the command to be:
python $$s/scripts/elyxer.py $$i $$o

That works.

The first file sent to elyxer was probably a little too complex. I killed python after 40 minutes running full on one CPU. I later gave it a less complex file and it returned a correct and nice result (where htlatex fails). I appreciate the fact that the home-made character styles are converted to a "Flex" CSS class, which can then be created in CSS.

Tiny bugs / feature requests for elyxer and LyX (probably already known):

1-
Figure numbers are missing in the references. The link with a little blue arrow works, but my text is full of "Fig. " without figure number.

2-
The HTML file is returned in a subfolder, so all images links are broken. When moving the file in the parent folder (where the lyx file is, and where the pdf/ps/TeX are exported, it works fine.

3-
There is one place in my file where I used the "\unittwo" tip given in LyX docs (Appendix A "Typographic Advice" of Math docs).

The LyX file at that point is:
\begin_inset Formula $\unit[950]{\mu m}$
\end_inset

The "view source" panel shows:
$\unit[950]{\mu m}$

The pdf export is fine, but elyxer outputs:
<span class="formula"><span class="unknown">\unit</span>[950]μ<i>m</i></span>

which results in Firefox in:
\unit[950]μm

But overall, it looks already very good.

Best regards,

Olivier

Reply via email to