Uwe Stöhr wrote:

 
> But you are right, that using ERT is error-prone. But creating the whole
> table will be more error-prone for many users. (Those who are able to
> create tables with LaTeX-commands often prefers to use editors instead
> of Lyx.)

My point is that if you insert ERT formatting code inside LyX, you can
easily fool LyX to generate some malformed LaTeX code. For example,
unbalanced brackets. When the newbie tries to generate its DVI, he will get 
a very cryptic error box without any hint how to solve the problem. The
parth, I'm generally following is :
1) create the table in LyX
2) Export to LaTeX
3) Modify it in Kile with my LaTeX manual at hand
4) Reimport, include it in LyX

The colortable package is an example where they would be a need for a plugin
interface in LyX. One should be able to write a plugin in Python (or your
favorite programmation language) adding some additional dialogs to LyX for
coloring rows, cells and lines. The plugin would be responsible to add the
package in the preamble and generate correct LaTeX code.

>From my experience in KDE, the DCOP scripting interface has made possible
for not-very-experienced people to add the very feature they fancy. A
plugin interface would certainly give a big boost to LyX and attract a new
crowd of programmers that would be ready to spend a week or two writing a
plugin but don't want to be drown in piles of C++ code. Now, we need to
convince some core developpers to create one.

Cheers,
Charles 
--------
http://www.kde-france.org

Reply via email to