[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-texinfo] html: playing with the style

From: Akim Demaille
Subject: Re: [help-texinfo] html: playing with the style
Date: Sat, 27 Apr 2019 09:52:11 +0200

Hi Patrice!

> Le 26 avr. 2019 à 23:38, Patrice Dumas <address@hidden> a écrit :
> On Fri, Apr 26, 2019 at 05:54:34PM +0200, Akim Demaille wrote:
>> Hi all,
>> Bison has recently gained colored diagnostics, like GCC does.  I would like
>> to document that and show examples of this.  I would like to do that in PDF,
>> but I don't think it is possible, and probably not desirable.  I would like
>> to do it in HTML, but then I have a bunch of problems on how to do it.
> For text within a paragraph, it is better to use inline conditionals,
> like @inlineraw{html, <b style="color:\name\">\text\</b>}, so the whole
> could be something like
> @macro color{name, text}
> @inlinefmtifelse{html, @inlineraw{html, <b style="color:\name\">\text\</b>}, 
> \text\}
> @end macro

Excellent!  That is exactly what I needed, it works brilliantly.  Sorry I 
missed that in the documentation :(

Thanks a lot!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]