ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* URL macro with \bgroup ... \egroup
@ 2014-04-14 13:34 Joshua Krämer
  0 siblings, 0 replies; only message in thread
From: Joshua Krämer @ 2014-04-14 13:34 UTC (permalink / raw)
  To: ntg-context-wvrSQK3plZs

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-wvrSQK3plZs@public.gmane.org / 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-14 13:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-14 13:34 URL macro with \bgroup ... \egroup Joshua Krämer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).