![](https://secure.gravatar.com/avatar/2924d3b08fd49ee6439e6febea831dee.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 5/17/2015 8:07 PM, Alexander Shukaev wrote:
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
maybe just: \definebar[urlbar][underbar] \setupurl[style=\mono\urlbar,color=blue] ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/2924d3b08fd49ee6439e6febea831dee.jpg?s=120&d=mm&r=g)
\definebar[urlbar][underbar]
\setupurl[style=\mono\urlbar,color=blue]
Interesting, thank you, Hans, it indeed works as expected. Could you supplement this with some explanations, i.e. why this one works compared to using plain `underbar'? I assume that the `color' key is overridden by `setupurl' in the case of `urlbar' but not in the case of `underbar', why? Regards, Alexander
participants (2)
-
Alexander Shukaev
-
Hans Hagen