On Mon, Jul 09, 2001 at 12:27:05PM +0200, Lars Gullik Bjønnes wrote:
> LyX is not an tex-editor, and using tex-mode has always been: "The
> user is now on his own". Several users (and developers) have taken
> advantage and misused tex-mode for different purposes (float placemnet
> f.ex.)
I don't want to use lyx as a tex editor, but LyX doesn't support all the
features of latex, not to mention all available packages.
> | For example, suppose I want to have \foo{$x$}.
>
> why would you even want this?
For example, \foo can be \fbox.
> | Previously, I could do ctrl+l \foo{ ctrl+m x <escape> } ctrl+l
> | Now, I need to do (assuming ctrl+l is bound to ert-insert)
> | ctrl+l \foo{ <right> ctrl+m x <escape> ctrl+l } <right>
> | Namely two more keypresses. But this is only a minor issue.
>
> bad example since you are trying to use mathed in side a tex-mode...
> this was never supposed to word and did so only by chance.
>
> ctrl+l \foo{$x$} <right>
>
> Is what you should write. Everything else is just luck.
Why?
The ability to mix lyx insets with latex code like the above is a great
feature of LyX. Just because you doesn't use doesn't mean that it shouldn't
be supported anymore.
> | Considering this problem and the problem with literate document, I suggest
> | reenabling tex-mode and removing it after 1.2.0.
>
> All I have seen so far is just _small_ problems. We gain nothing by
> waiting and get a frustrated Lgb by waiting. Also I really want user
> to get accustomed to not having the latex layout or the latex font
> style as soon as possible.
The problem with scrap is note simple. You need to allow definition of insets
in the layout file, which is something completely new.
(note that the text in a scrap inset should be free-spacing)
There are also several small bugs with the ERT-inset (e.g. the text in a new
ERT inset is black and not red), and fixing them takes time, which could
have spent elsewhere.