On 1. Nov 2010, at 14:22, Jürgen Spitzmüller wrote:

> Yann Disser wrote:
>> 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?
> 
> I agree it would be nice. But it's almost impossible. The problem is that 
> (La)TeX provides multiple ways (packages) for achieving the same thing. LyX 
> will never be able to support them all, so either your LaTeX collaborators 
> will needs to know what LyX supports (which is not what they will want to 
> know) or the LyX file will be cluttered with ERT. Also, some of the non-tex-
> relevant information will get lost on the way.
> 
> So, like Pavel already notes, if you collaborate intensely with LaTeX users, 
> using a LaTeX editor is probably much more adequate.
> 
> Jürgen

What would also already be very helpful would be the ability to export not the 
entire document, but only the part which is currently selected (we usually have 
one .tex file per chapter/section). At the moment I am doing this by 
copy-pasting from the source view to a text editor. But exporting individual 
parts, say sections/tables/etc..., might be very useful not only for me. And it 
should not be so difficult to implement, right? I am thinking about a checkbox 
in the export dialog à la "export selection only".

Yann

Reply via email to