On 2010-11-29, Michal wrote:
>> I've fixed this, in the sense that you can now use "LaTeXType 
>> paragraph".  Try this:
>> [...]
>     Thank you for your help! I guess I'll have to wait until the next
> beta comes out then. After that, I think the only remaining thing is to
> change the look of it to be more like ERT (typewriter font, changing
> color to red, etc.)

This can all be done in a *.module file in your personal LYXDIR. See the
"Help>Customization" documentation.

>     Still, it's not perfect, as it is not an inset (so it will always be
> different than ERT) and it's an environment instead, but it would give
> the feature that I've initially asked for.

You could also define a custom inset instead of a style in a module.

>     Would it be fine to officially support this 'mini-module' in LyX?
> I mean, to include it in sources and to treat any misbehavior of LyX
> wrt it as a bug? I assure you, I'd be the first one to notice anything
> like that :)

How about publishing it on wiki.lyx.org first, fixing the most relevant
issues and include in a later version, if there is enough interest.

>     Another thing that came to me today is that maybe just adding a
> simple option for an ERT inset to add the code to the preamble instead
> would be a simplier solution? Technically, the code in the preamble is
> also a 'TeX code'... a visual cue would be needed with that to not to
> confuse casual ERT with the 'preamblish' one - maybe a color change?

As it is a quite special request (well, I would like it too), a module
(i.e. an opt-in solution) might be the better place.

Günter

Reply via email to