From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95002 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Underbar offset Date: Wed, 25 May 2016 17:35:40 +0200 Message-ID: <5745C64C.6060602@gmail.com> References: <4abee7cf-485f-af70-bb15-c680a7af7a6d@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4016634325206162721==" X-Trace: ger.gmane.org 1464190592 13929 80.91.229.3 (25 May 2016 15:36:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 May 2016 15:36:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 25 17:36:17 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b5aqz-0001qa-L9 for gctc-ntg-context-518@m.gmane.org; Wed, 25 May 2016 17:36:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CF1EAE1B4; Wed, 25 May 2016 17:35:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MR8-xN1yS6kd; Wed, 25 May 2016 17:35:56 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 11168E1B8; Wed, 25 May 2016 17:35:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 22689E1B6 for ; Wed, 25 May 2016 17:35:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6mj7INDgHqYG for ; Wed, 25 May 2016 17:35:54 +0200 (CEST) Original-Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A5847E1B5 for ; Wed, 25 May 2016 17:35:44 +0200 (CEST) Original-Received: by mail-wm0-f42.google.com with SMTP id n129so188647179wmn.1 for ; Wed, 25 May 2016 08:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=HrxJ02UHLXn/LAjEDEKIWZBI3FWPK9xjJCL36941GE8=; b=wXALWtlvppJDqsX76yV7quI5gDJG6nSRJl4nDsQwHFjVoNZitJVY4YjVFmuJwRIqi2 41uK202VOjg7LxTinCFW0cBCbwm6e0xdcagfUowLukywjIsP7h9upFFxoAvtzPToJi70 xPcPvj42jeAcULHfPb1xCIrEb2yZJA+1aKLn+/KhkasiARgx+yIWMy5J2mn7UucF24lV ogX7d9on5wG/YlppvHGNiINEoESYqHTOQAUpmSy53Qkj3xIIa3RfCd9Jo45+zxnVImNH N/U+HJN9VvEshge40YQ8t7nAp4KiSxiY2wylD2HptVtwkeQdUQEU+YMaD9CDkJkXy7sU fmrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=HrxJ02UHLXn/LAjEDEKIWZBI3FWPK9xjJCL36941GE8=; b=NDdhwLfZZfDZJ8OJ7VrExnT+2Y9wo0V9kqLrAmtZkSoC+L34RcPTHRvwMVOXUbbb2h UkBPjD5Mdaxdk9fvPLev7lyT66sxZws1PdXRa2iJkKYhTmyM+QGv3o9DWvWTpTxkNjy/ JOyMgd3OEKNvNuhbWMr1WDyCRM9MmDJvRm7pZ3eFCTxRgWFf506orgoQGWjM/WAnHT+U HiH0R3PwWfHNqM8qfo2cVuOEALG11EGRK4vlUUPDgZGp1Wf9oxD+RzsFw6qo/88vWNJ/ xbwREJkFQj/DGkwLkp7mmmM1WBd58Hi6qQV/062ymjEFxH42zCv9cNw18gUn/ej/y7od XD8g== X-Gm-Message-State: ALyK8tK6T6NrbnQO0AxZdhJKXaij7it0mg1zck5wj2RLlHECF8wGOMkyvXQgCN3OVvEyQg== X-Received: by 10.194.71.80 with SMTP id s16mr5221965wju.157.1464190544305; Wed, 25 May 2016 08:35:44 -0700 (PDT) Original-Received: from keima.localdomain (x2f2df50.dyn.telefonica.de. [2.242.223.80]) by smtp.gmail.com with ESMTPSA id q194sm3653571wme.18.2016.05.25.08.35.42 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 May 2016 08:35:43 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <4abee7cf-485f-af70-bb15-c680a7af7a6d@wxs.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95002 Archived-At: This is a multi-part message in MIME format. --===============4016634325206162721== Content-Type: multipart/alternative; boundary="------------090401050607060400060104" This is a multi-part message in MIME format. --------------090401050607060400060104 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Hans Hagen > 24. Mai 2016 um 14:19 > On 5/24/2016 1:54 AM, Mojca Miklavec wrote: >> Hi, >> >> I would like to add a continuous underbar under a paragraph or a=20 >> title as in: >> >> \setupbar >> [color=3Dred,offset=3D10pt] >> \starttext >> \underbar{Test this \high{\tfxx =C2=AE}} >> \stoptext >> >> ... but I'm confused about two aspects: >> >> - How can I prevent \high{} from shifting the underbar? > > i need to think about it .. maybe an option > >> - How can I add more offset? > > underbar is derived from the parent but has its own offset and an=20 > offset is relative to the baseline and a fraction of th eunit=20 > (normally the ex of a font) > > \setupbar[underbar][color=3Dred,offset=3D-.5] > > \starttext > > \underbar{Test this \high{\tfxx =C2=AE}} > > \stoptext With \shiftup the line under the raised text stays at the same position. \starttext \underbar{Test this \shiftup{=C2=AE}} \stoptext Wolfgang --------------090401050607060400060104 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
24= .=20 Mai 2016 um 14:19
On 5/24/2016 1:54 AM, Mojca=20 Miklavec wrote:
Hi,

I would like to add a continuous underbar under a paragraph or a=20 title as in:

\setupbar
=C2=A0=C2=A0=C2=A0 [color=3Dred,offset=3D10pt]
\starttext
\underbar{Test this \high{\tfxx =C2=AE}}
\stoptext

... but I'm confused about two aspects:

- How can I prevent \high{} from shifting the underbar?

i need to think about it .. maybe an option

- How can I add more offset?

underbar is derived from the parent but has its own offset and an=20 offset=20 is relative to the baseline and a fraction of th eunit (normally the ex=20 of a font)

\setupbar[underbar][color=3Dred,offset=3D-.5]

\starttext

\underbar{Test this \high{\tfxx =C2=AE}}

\stoptext
With \shiftup the line under the raised text stays at the same position.<= br>
\starttext
\underbar{Test this \shiftup{=C2=AE}}
\stoptext

Wolfgang
--------------090401050607060400060104-- --===============4016634325206162721== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============4016634325206162721==--