ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: typesetting a url from variabless
Date: Tue, 24 Oct 2006 12:51:52 -0400 (EDT)	[thread overview]
Message-ID: <Pine.WNT.4.63.0610241249310.3244@nqvgln> (raw)
In-Reply-To: <115224fb0610240755q597e77b2uc4c8be635d0b6cc3@mail.gmail.com>

On Tue, 24 Oct 2006, Wolfgang Schuster wrote:

> 2006/10/24, Aditya Mahajan <adityam@umich.edu>:
>> 
>> Hi,
>> What is the best way of typesetting a url from a variable. For
>> example, if I have
>> 
>> \setvariables[test][website=http://www.xyz.com/~abc/first_index.html]
>> 
>> how can I print the url. I tried
>> 
>> \starttext
>> \goto{\getvariable{test}{website}}[URL(\getvariable{test}{website})]
>> \stoptext
>> 
>> but this does not seem to work. Any suggestions?
>> 
>> Aditya
>
>
> Hi Aditya,
>
> you should look into the log-file and will see it is a problem with the
> tilde
> in the url.

I know that the tilde is causing problems, but I do not know how to 
prevent that.


> The following example works fine, tested on the garden with live ConTeXt.

Yes, but in my project, I need to pass the complete website address 
:-)

Aditya


> \setvariables[garden][website=http://www.contextgarden.net]
>
> \starttext
> \goto{\getvariable{garden}{website}}[URL(\getvariable{garden}{website})]
> \stoptext
>
>
>
> Wolfgang
>

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008

  reply	other threads:[~2006-10-24 16:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-23 22:37 Aditya Mahajan
2006-10-24 14:55 ` Wolfgang Schuster
2006-10-24 16:51   ` Aditya Mahajan [this message]
2006-10-24 17:43     ` Sanjoy Mahajan
2006-10-26  7: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=Pine.WNT.4.63.0610241249310.3244@nqvgln \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.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).