Jean-Marc Lasgouttes wrote:
Richard Heck <[EMAIL PROTECTED]> writes:
bigblop wrote:
But that does not work in the "LaTeX source" area. Only in the LyX editor.
Yes, that's right. What people call "round-trip" source view doesn't
yet exist, though many people would like to see it. It's possible
it'll be implemented before too long, but there are non-trivial
obstacles to be overcome before then. In a way, all the pieces exist:
We can import LaTeX using tex2lyx. But the problem is that, at the
moment, tex2lyx isn't really integrated into LyX; it's a standalone
utility. And even if it were integrated into LyX, tex2lyx isn't always
terribly reliable. Those, as I understand things, are the main issues.
The main issue as I see it is that some people have the hope that writing
raw latex will allow them to get almost native support for things that
LyX does not support yet. If one does not like the kind of code that
LyX outputs, I do not see how it could be possible to modify it and
hop that LyX will stick to this new form of writing.
I'd like to hear about reasonable use cases.
One possible example: I had a document in which I wanted an equation
array with non-default column alignments. I could not find any way to
do this in LyX (which might just mean I missed something obvious -- but
I posted the question here and got no responses). So I exported a LaTeX
file and edited it outside LyX. That's fine, but suppose that I want to
modify the document (in LyX) in the future while retaining that change.
I don't need LyX to display the equation array with the tweaked
alignment, but I do want to be able to use LyX's math editing features
on it (meaning that I do not want to convert it to ERT), and I'm not
sure whether importing the LaTeX file will preserve the change and still
produce a math inset v. ERT (I have not tried this).
This is probably not exactly what the original requester had in mind,
but it might be an application of a round-trip edit feature.
/Paul