On 02/27/2014 01:47 PM, Georg Baum wrote:
Rainer M Krug wrote:

I assume that in LyX, there is an API which could be used to convert
*independent* from the file format?
The closest to this are probably the different writing methods of each
individual inset, e.g. Inset::latex(), Inset::xhtml() etc. One could invent
a new one for the roundtrip. This could even allow to get some or all of the
information that would otherwise be extracted from LaTeX, e.g. ToC and
counters (since LyX keeps track of that for on-screen display anyway).

That is really the big question: Do you write an external LyX -> ODT/DOCX converter, or do you export from within LyX itself? The advantages to the latter are the same as with XHTML: the ones Georg partly lists. The advantage to the former is that we could probably leverage a lot of existing work.

Richard

Reply via email to