On 1. Nov 2010, at 14:42, Jürgen Spitzmüller wrote: > Yann Disser wrote: >> I wish I had time to help you with that (sounds like fun ;-) )... Perhaps >> sometime in the future. > > Don't count on it. We have many reasons for not using the tex file format > natively. For instance, LyX is storing some information for which no tex > syntax exists (and which does not make sense for tex files). Also, LyX does > not only output tex, but also DocBook and XHTML, for instance. So tex is just > one output format, albeit the most frequently used (and the best working). > > It's more likely that LyX will change to some XML-kind of format eventually. > Of course, we will try to improve the lyx<->tex import and export chain as > much as possible. > > Jürgen
Your arguments make sense. However, I think many people must have my problem. Perhaps it would be sufficient to provide a way to keep the .lyx file and the .tex file in sync. Whenever one of the two would get changed, lyx would automatically import/export. This approach would then work for all file formats for which there is an import and an export handler. It would make my life dramatically easier when trying to collaborate via svn/git/... Of course, the approach has limitations, like what to do, if both files get modified at the same time. Also it does not deal with the preamble problem. But I think, even ignoring these things (by asking the user which file to take over), the feature would be incredibly helpful. What do you think? Yann