[NTG-context] inline textbackgrounds across linebreaks

Aditya Mahajan adityam at umich.edu
Wed Jan 16 14:27:14 CET 2019


On Tue, 15 Jan 2019, Taco Hoekwater wrote:

>> On 15 Jan 2019, at 15:08, Mohammad Hossein Bateni <bateni at gmail.com> wrote:
>> 
>> I guess it works fine for me on beta 2019.01.07 16:10.
>
> Thanks for testing. Sorry, I should have checked myself.
>
>> On 15 Jan 2019, at 15:22, Hans Hagen <j.hagen at xs4all.nl> wrote:
>> works her ebut better is probably:
>> 
>> \definebar[tacobar] [method=1,dy=-0.4,offset=-0.3,continue=yes]
>
> I had that earlier, but unfortunately there is also the <s> tag,
> and this does not work the way I want:
>
> %%%
> \definebar[tacobar] [method=1,dy=-0.4,offset=-0.3,continue=yes]
> \definebar[tacoover][method=1,dy=-0.4,offset=0.5,continue=yes]
>
>
> Here is the start of the paragraph
> {\tacobar hello! ({\tacoover this} looks fine)}
> and some extra text running on to the next line
> %%%
>
> Because the \tacoover makes the \tacobar disappear :(

If the text has constant interline spacing, you can try to mimick the old 
(mkii) underbar mechanism. See https://tex.stackexchange.com/a/125486/323 
for an example. I haven't tested this with nested backgrounds, but it 
should work.

Aditya


More information about the ntg-context mailing list