From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91505 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.comp.tex.context Subject: URLs in color including underbar Date: Sun, 17 May 2015 20:07:20 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1960294048==" X-Trace: ger.gmane.org 1431933527 5484 80.91.229.3 (18 May 2015 07:18:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 May 2015 07:18:47 +0000 (UTC) To: ntg-context Original-X-From: ntg-context-bounces@ntg.nl Mon May 18 09:18:30 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YuFJl-0006RZ-Gc for gctc-ntg-context-518@m.gmane.org; Mon, 18 May 2015 09:18:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A6C39101FC for ; Mon, 18 May 2015 09:18:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0cQegjfhfxZ5 for ; Mon, 18 May 2015 09:18:27 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6D41E10232 for ; Mon, 18 May 2015 09:18:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 040CF101FB for ; Sun, 17 May 2015 20:07:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id rQoUE4_UDDH0 for ; Sun, 17 May 2015 20:07:25 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 445A1101E6 for ; Sun, 17 May 2015 20:07:24 +0200 (CEST) Original-Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t4HI7KBX019832 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 17 May 2015 20:07:24 +0200 Original-Received: by lagv1 with SMTP id v1so189082774lag.3 for ; Sun, 17 May 2015 11:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=YCzrYtbw8k99gY3SIcrto+2nV1nZl9/bPUNfurp3pa0=; b=DUXOrhBZ5D3E5W6ZhG9x5tr88b9Q/771J60/ZB+K/HzB139HXbCQsSqPQQWjFpP6oL oXzSeFdRUOHfjoGoIRsMXJaozP+KP2tQYsAbU2QVoIxSuGkjLtOgd8XPdoWp/tszzkVR lort+F08GTiVwZ9t/pezwAVHjhvTlN6Qd3EHzZdi17zDie15grMQXOS4dSZULrw/9pGK 6/6tYeHeqW4Q54367Zfnu2va9YVnXYYbZjx72dR7eGgooV/29eniwG/Pkihgftajbqbp gLMjp164Ey7aUC+VIfdLi70cTy5EMz+ftXSooZlr8Cp7oLckM0oQ7BQgb5xZogbHKrLK 3DLQ== X-Received: by 10.152.87.13 with SMTP id t13mr6536181laz.66.1431886040514; Sun, 17 May 2015 11:07:20 -0700 (PDT) Original-Received: by 10.112.36.103 with HTTP; Sun, 17 May 2015 11:07:20 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c03::230; country=FI; region=South Karelia; city=Lappeenranta; latitude=61.0667; longitude=28.1833; http://maps.google.com/maps?q=61.0667,28.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01Ot67lWx - cc97885833e4 - 20150517 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of haroogan@gmail.com designates 2a00:1450:4010:c03::230 as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2a00:1450:4010:c03::230; envelope-from=; helo=mail-la0-x230.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-Mailman-Approved-At: Mon, 18 May 2015 09:18:02 +0200 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:91505 Archived-At: --===============1960294048== Content-Type: multipart/alternative; boundary=001a11c353e6cdc85405164af2f3 --001a11c353e6cdc85405164af2f3 Content-Type: text/plain; charset=UTF-8 Hello, So far I came up with the following solution: \setupurl[ style={\mono\underbar}, color={blue}, ] \def \url{% \dosingleargument \dourl } \def \dourl[#1]{% \begingroup \setupbar[% style={\urlparameter{style}}, color={\urlparameter{color}}, ]% \from[#1]% \endgroup } Is there a more natural way to make URLs appear in blue color including underbar? Thanks. Kind regards, Alexander --001a11c353e6cdc85405164af2f3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

So = far I came up with the following solution:

\setupurl[
=
=C2=A0 style=3D{\mono\underbar},
=C2=A0 color=3D{blue},
]

\def
\url{%
=C2=A0 \dosingleargument
=C2=A0 \= dourl
}

\def
\dourl[#1]{%
=C2=A0 \begingroup
=
=C2=A0 =C2=A0 \setupbar[%
=C2=A0 =C2=A0 =C2=A0 style=3D{\urlparameter{style}},
=C2=A0 =C2=A0 =C2=A0 color=3D{\urlparameter{color= }},
=C2=A0 =C2=A0 ]%
=C2=A0 =C2=A0 \from[#1]%
= =C2=A0 \endgroup
}

Is there a more natural way to make URLs appear in blue color including = underbar?=C2=A0 Thanks.

Kind regards,
Al= exander
--001a11c353e6cdc85405164af2f3-- --===============1960294048== 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= --===============1960294048==--