Dear Daniel,
That's also a feature that I'd like to have. Many authors only want to work with the LaTeX source.

I think it is possible to save some internal features of LyX (inset collapsed/expanded, notes, etc.) in LaTeX as well. They could be exported as special LaTeX comments. Of course, editing these comments would lose the extra data, but we'd have to trust people working on the low-level LaTeX code on that :-)

This probably works best of the comments are short (so people are not tempted to delete them), such as

\begin{table}%%LyX{inset:collapsed}
...
\end{table}

(using two % to distinguish the comment for normal comments).


Liviu Andronic wrote:
Dear Daniel,


On Sun, Apr 14, 2013 at 10:26 AM, Daniel Vainsencher
<daniel.vainsenc...@gmail.com> wrote:
Please CC me on answers.

I often collaborate with people who (still) prefer LaTeX, and also submit
papers to conferences that make it easy to submit latex via
style/class/sample.tex files. This makes it important to be able to work in
LyX, but debug/modify in latex, then continue working in LyX.

I would strongly agree with this. Round-tripping LyX <--> LaTeX
documents is one of the long-term goals of LyX. And in my
understanding this is something that lies in the realm of achievable.
What we need is, mostly, for a devel or student to show more love to
the tex2lyx conversion routines.


It would probably be difficult to preserve latex source formatting etc, and
I am not proposing that; I am assuming the main source of content is LyX.

Two particular features would make this easier:

- Math-macros, if turned into \global\long\def, should be turned back so
LyX's beautiful visual editing is restored (can keep the math-macro def in a
comment in the latex version and restore it).
BTW, when does a math-macro become a \newcommand vs \global\long\def?

- Automatically generate styles for environments defined in imported
documents. For example if the imported latex has a keywords environment,
that should not suddenly become ERT in LyX.
This should allow me to start from the conference sample file, import it
into LyX, and obtain a first class lyx environment.

Both your suggestions look useful, although I'm wondering how
achievable is the 2nd one. I'd love to hear what established devels
think of this.

Either way, I think this is a project worthy for GSoC and if you can
come up with a suitably worded project proposal feel free to place it
here: http://wiki.lyx.org/Devel/SummerOfCode2013Ideas (and let us know
on lyx-devel). This would greatly increase the chances of a student
picking it up. And if we have no student for such a project this year,
we should certainly consider it for subsequent GSoC summers.

Regards ,
Liviu


--
Regards,
Cyrille Artho - http://artho.com/
Steve Jobs said two years ago that X is brain-damaged and it will be
gone in two years. He was half right.
                -- Dennis Ritchie

Reply via email to