ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Joop Susan <jgsusan@xs4all.nl>
Subject: URL as parameter...
Date: Mon, 12 Jun 2000 16:47:56 +0200	[thread overview]
Message-ID: <20000612144756.6557.qmail@crux.private.off-line> (raw)

Hello,

Can anyone tell me how to pass a URL as a parameter to a macro if there is 
a tilde character present in the string. In the following example, the 
direct version works, but the macro version has it's '~' character 
substituted by white space.

==================================================

\starttext

\setupcolors[state=start]

\setupinteraction [state=start]

\setupurl
    [style=italic]

{\bf Direct:}

\useURL[tmp][http://www.xs4all.nl/~vnf/]
\goto {\url[tmp]}[URL(tmp)]

{\bf Macro:}

\def\utest#1%
{\useURL[tmp][#1]
 % ...
 % ...
 \goto {\url[tmp]}[URL(tmp)]}

\utest{http://www.xs4all.nl/~vnf/}

\stoptext

==================================================

Joop


             reply	other threads:[~2000-06-12 14:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-12 14:47 Joop Susan [this message]
2000-06-12 18:16 ` Berend de Boer
2000-06-13 20:03 ` Hans Hagen
     [not found] <Your message of "Mon, 12 Jun 2000 20:16:57 +0200." <00c001bfd49a$659c08c0$0321a8c0@bmach.nederware.nl>
2000-06-12 20:46 ` Joop Susan
2000-06-13 20:06   ` Hans Hagen
     [not found] <20000614100157.11715.qmail@crux.private.off-line>
2000-06-14 13:58 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20000612144756.6557.qmail@crux.private.off-line \
    --to=jgsusan@xs4all.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).