ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: inline textbackgrounds across linebreaks
Date: Wed, 16 Jan 2019 08:27:14 -0500 (EST)	[thread overview]
Message-ID: <nycvar.YAK.7.76.44.1901160824060.6290@nqv-guvaxcnq> (raw)
In-Reply-To: <642543ED-9EBE-480A-9A36-CE86DDE79F7E@elvenkind.com>

On Tue, 15 Jan 2019, Taco Hoekwater wrote:

>> On 15 Jan 2019, at 15:08, Mohammad Hossein Bateni <bateni@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@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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2019-01-16 13:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-15 13:36 Taco Hoekwater
2019-01-15 14:08 ` Mohammad Hossein Bateni
2019-01-15 14:22 ` Hans Hagen
2019-01-15 15:05   ` Taco Hoekwater
2019-01-16 13:27     ` Aditya Mahajan [this message]
2019-01-15 17:39 ` Aditya Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=nycvar.YAK.7.76.44.1901160824060.6290@nqv-guvaxcnq \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).