[NTG-context] Bar within math (amended)

Henning Hraban Ramm texml at fiee.net
Mon Jun 15 19:57:18 CEST 2020


> Am 11.06.2020 um 13:41 schrieb Axel Kielhorn <tex at axelkielhorn.de>:
> 
>> Am 09.06.2020 um 20:41 schrieb Wolfgang Schuster <wolfgang.schuster.lists at gmail.com>:
>> 
>> Use a textbackground to highlight parts of your text.
>> 
>> \definetextbackground
>> [Highlight]
>> [frame=off,
>>  background=color,
>>  backgroundcolor=yellow]
>> 
>> \starttext
>> 
>> \m{1 + 2 = \unit{3 kilo newton}}
>> 
>> \m{1 + 2 = \Highlight{\unit{3 kilo newton}}}
>> 
>> \stoptext
>> 
>> Wolfgang
>> 
> 
> Is there a way to highlight just the words and leave the space white?
> Something like \overstrikes?


Wolfgang or whoelse,
when would you advise to use textbackgrounds and when bars? E.g. if I need a “marker” highlighting.

Hraban


More information about the ntg-context mailing list