Uwe Stöhr wrote:
Abdelrazak Younes schrieb:

But that's what I'm currently doing. tex2lyx needs to be updated with most of the fileformat changes. This cannot be changed.

This *can* be changed. Instead of writing a lyx file, tex2lyx should ask LyX to write it with current format.

How should that be done? Should tex2lyx call lyx2lyx?

No, tex2lyx could use lyx code (via a static or dynamic library) to write a lyx file. Right now tex2lyx only uses portions of lyx code.

Currently LyX calls tex2lyx and afterwards lyx2lyx.

> Or alternatively LyX could
integrate tex2lyx completely. The last solution is the best IMO.

Can you be a bit more precise please? When tex2lyx is integrated in the lyx executable, how does it improves the current situation?

The file format will always be current. LyX will read the LaTeX file, fill in a Buffer structure and then save the Buffer into a lyx file.

Abdel.

Reply via email to