On Friday 06 December 2002 10:04, Chris Lale wrote:
> I am using DocBook article (SGML)in Lyx 1.1.6fix4. I make much use of a
> few inline SGML tags eg <filename>some text</filename>. The < ... > tags
> are in red text. I would like to avoid using the red tags by redefining
> Styles in the preamble. Here is the most complex change I wish to make:
>
> Layout > Noun Style
> Render as Bold and Typewriter (without Small Caps) in Lyx, DVI, PDF.
> Render as <filename>some text</filename> when exported to DocBook.
>
> If I can find out how do this, I should be able to redefine other Styles
> to render other SGML tags.

  Similar to that I planned to redirect typewriter font to literal. But where 
the meaning seems obvious.
  Certainly we can define Small Caps to mean filename, but this would be only 
a hack.

  Instead of adding this kind of hacks I would prefer to work in the full 
solution, as it is easier to maintain in the long term. And the proper fix is 
to add support for styles in lyx.

  If you still want to make this work, I can give some tips where to look for. 
Actually you only need to change the code in one function, so it shouldn't be 
too hard.

  Now if you want to fake some styles we can use the colours, that clearly 
don't have any counterparts in docbook and use them for different styles. But 
this only shows how much we need real user defined styles in lyx.

> I would be grateful for any suggestions.

  I hope this helps,

> Thanks,
>
> Chris.

-- 
Jos� Ab�lio

Reply via email to