Dear All,
I would like to know whether it is possible to make LyX converting ERT to WYSIWIG, whenever possible? Could somebody here please help me?
Thank you a lot in advance!
A problem here is to know when this is possible.
Simple ERT just produce output, such as "{\color{red}test}" This one could
easily enough be converted to a picture and displayed in the document.
(This is a bad example, lyx supports red text so there's no need.)Some ERT produce output depending on the surrounding text, for example: "TEST\hfill TEST" How this turns out (particularly the length of the hfill) will depend a lot on what else is on the line where this occurs. So this cannot easily be shown in advance. (Again, bad example as lyx supports \hfill natively)
Some ERT don't produce output at all, it merely
affects other stuff. "\renewcommand\thesection{sec \Roman{section}}"
A better example, this isn't directly supported in lyx.
It causes all further sections to be labeled with "Sec " and the
section number in uppercase roman numerals.
(Sec I, Sec II, Sec III, Sec IV, . . . )The only way of displaying the effect of this is to render the entire document, such as view->dvi
You might want to show the effects of the first kind of ERT only, but there is no useful way a program can see the difference between the different kinds of ERT.
Helge Hafting
