From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31515 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: typesetting a url from variabless Date: Tue, 24 Oct 2006 16:55:16 +0200 Message-ID: <115224fb0610240755q597e77b2uc4c8be635d0b6cc3@mail.gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0709566530==" X-Trace: sea.gmane.org 1161701816 21050 80.91.229.2 (24 Oct 2006 14:56:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Oct 2006 14:56:56 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 24 16:56:54 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GcNhK-0004xU-7D for gctc-ntg-context-518@m.gmane.org; Tue, 24 Oct 2006 16:56:10 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1DD5B1FE82; Tue, 24 Oct 2006 16:56:09 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26007-01-8; Tue, 24 Oct 2006 16:56:00 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3EE9E1FDE0; Tue, 24 Oct 2006 16:56:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4AC6E1FE2D for ; Tue, 24 Oct 2006 16:55:58 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26007-01-7 for ; Tue, 24 Oct 2006 16:55:53 +0200 (CEST) Original-Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by ronja.ntg.nl (Postfix) with SMTP id D85981FDD4 for ; Tue, 24 Oct 2006 16:55:51 +0200 (CEST) Original-Received: by py-out-1112.google.com with SMTP id b36so68691pyb for ; Tue, 24 Oct 2006 07:55:17 -0700 (PDT) Original-Received: by 10.35.113.12 with SMTP id q12mr8990946pym; Tue, 24 Oct 2006 07:55:16 -0700 (PDT) Original-Received: by 10.35.21.8 with HTTP; Tue, 24 Oct 2006 07:55:15 -0700 (PDT) Original-To: "mailing list for ConTeXt users" In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31515 Archived-At: --===============0709566530== Content-Type: multipart/alternative; boundary="----=_Part_83619_26674757.1161701716702" ------=_Part_83619_26674757.1161701716702 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 2006/10/24, Aditya Mahajan : > > 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. The following example works fine, tested on the garden with live ConTeXt. \setvariables[garden][website=http://www.contextgarden.net] \starttext \goto{\getvariable{garden}{website}}[URL(\getvariable{garden}{website})] \stoptext Wolfgang ------=_Part_83619_26674757.1161701716702 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

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.
 
The following example works fine, tested on the garden with live ConTeXt.
 
\setvariables[garden][website=http://www.contextgarden.net]

\starttext
  \goto{\getvariable{garden}{website}}[URL(\getvariable{garden}{website})]
\stoptext

 

Wolfgang

------=_Part_83619_26674757.1161701716702-- --===============0709566530== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============0709566530==--