From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Taco Hoekwater <taco@elvenkind.com>
Subject: Re: inline textbackgrounds across linebreaks
Date: Tue, 15 Jan 2019 15:22:56 +0100 [thread overview]
Message-ID: <455d630d-df5e-b65d-f398-a17c56291df8@xs4all.nl> (raw)
In-Reply-To: <3D8395A3-8371-4DE3-81B9-AB37A39006D5@elvenkind.com>
On 1/15/2019 2:36 PM, Taco Hoekwater wrote:
> Hi,
>
> Quick explanation: I am trying to implement the concept of the HTML <u> tag,
> which is supposed to be like a font switch, but doing underlining. I have a
> bunch of french clients, and this is a requirement I cannot get around. French
> officials _love_ underlining and uppercasing :(
>
> Because of its flexibility, I try to use text backgrounds, but that seems to
> only work when the text does not break across lines: when on one line, the
> background starts and stops at the right spot, great! But if there is a line
> break, then it underlines complete lines, even for the first and last line.
>
> Is there any way to have underlining + line breaks behave correctly?
> (perhaps not using text backgrounds at all?)
>
> My current code is attached.
works her ebut better is probably:
\definebar[tacobar] [method=1,dy=-0.4,offset=-0.3,continue=yes]
\starttext
Here is the start of the paragraph
{\tacobar hello! (this looks fine)}
and some extra text running on to the next line
\blank
Here is the start of the paragraph
{\tacobar \input ward }
and some extra text running on to the next line
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2019-01-15 14:22 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 [this message]
2019-01-15 15:05 ` Taco Hoekwater
2019-01-16 13:27 ` Aditya Mahajan
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=455d630d-df5e-b65d-f398-a17c56291df8@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=ntg-context@ntg.nl \
--cc=taco@elvenkind.com \
/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).