Dear list,

I want to have better hyphenated and clickable URLs in my bibliography.
I have defined the following macro:

\define [1] \URL {\goto{\hyphenatedurl{#1}}[url(#1)]}

And I want to use it in the bibliography like that:

\setuppublicationlayout [electronic]
{
    \inserturl{ URL:\ \URL\bgroup }{\egroup.}{}%
}

But the macro doesn't work with \bgroup ... \egroup, it works with
braces only.  Minimal non-working example:

\define [1] \URL {\goto{\hyphenatedurl{#1}}[url(#1)]}
\starttext
\URL \bgroup http://test.invalid\egroup
\stoptext

It complains about too many }.

How can I use my URL macro in the bibliography?

Thanks and kind regards,
Joshua Kraemer


___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to