Re: [NTG-context] URLs in color including underbar
\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 ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] URLs in color including underbar
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 - ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___