ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Variables in \useURL
@ 2020-06-19 11:28 Nigel King
  2020-06-19 11:49 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Nigel King @ 2020-06-19 11:28 UTC (permalink / raw)
  To: Context News Group


[-- Attachment #1.1: Type: text/plain, Size: 484 bytes --]

Hi Group,
I want to insert a variable hyper reference into a pdf document. The following method does not work for some reason.

\def\hyperref{http://www.website <http://www.website/>.com/abc/def}
show \hyperref
Gives the correct answer but
\useURL[this_doc][\hyperref][][displayed text]
\from[this_doc]
Gives
hyperef%20 as the url

What am I doing wrong?

TIA
—
Nigel
nigel@nigelking.me.uk
m:07917 803879
h:01364 642265
Abbey Moor, Moreleigh, Totnes, TQ9 7JW.


[-- Attachment #1.2: Type: text/html, Size: 3016 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Variables in \useURL
  2020-06-19 11:28 Variables in \useURL Nigel King
@ 2020-06-19 11:49 ` Hans Hagen
  2020-06-19 12:10   ` Taco Hoekwater
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2020-06-19 11:49 UTC (permalink / raw)
  To: ntg-context@ntg.nl >> mailing list for ConTeXt users

On 6/19/2020 1:28 PM, Nigel King wrote:
> Hi Group,
> I want to insert a variable hyper reference into a pdf document. The 
> following method does not work for some reason.
> 
> \def\hyperref{http://www.website.com/abc/def}
> show \hyperref
> Gives the correct answer but
> \useURL[this_doc][\hyperref][][displayed text]
> \from[this_doc]
> Gives
> hyperef%20 as the url
> 
> What am I doing wrong?
the content is not expanded, why not just use

\useURL[this_doc][http://www.website.com/abc/def][][displayed text]

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Variables in \useURL
  2020-06-19 11:49 ` Hans Hagen
@ 2020-06-19 12:10   ` Taco Hoekwater
  2020-06-19 18:54     ` Nigel King
  0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2020-06-19 12:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> On 19 Jun 2020, at 13:49, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> On 6/19/2020 1:28 PM, Nigel King wrote:
>> Hi Group,
>> I want to insert a variable hyper reference into a pdf document. The following method does not work for some reason.
>> \def\hyperref{http://www.website.com/abc/def}
>> show \hyperref
>> Gives the correct answer but
>> \useURL[this_doc][\hyperref][][displayed text]
>> \from[this_doc]
>> Gives
>> hyperef%20 as the url
>> What am I doing wrong?
> the content is not expanded, why not just use
> 
> \useURL[this_doc][http://www.website.com/abc/def][][displayed text]

or 

  \expanded{\useURL[this_doc][\hyperref][][displayed text]}

if that is truly impossible for some reason.

Best wishes,
Taco
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Variables in \useURL
  2020-06-19 12:10   ` Taco Hoekwater
@ 2020-06-19 18:54     ` Nigel King
  0 siblings, 0 replies; 4+ messages in thread
From: Nigel King @ 2020-06-19 18:54 UTC (permalink / raw)
  To: Context News Group


[-- Attachment #1.1: Type: text/plain, Size: 1467 bytes --]

Taco,
Thanks very much - I had necessarily simplified the example to show my simplest problem.

\expanded suits my purpose perfectly.

On 19 Jun 2020, at 13:10, Taco Hoekwater <taco@elvenkind.com> wrote:



> On 19 Jun 2020, at 13:49, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> On 6/19/2020 1:28 PM, Nigel King wrote:
>> Hi Group,
>> I want to insert a variable hyper reference into a pdf document. The following method does not work for some reason.
>> \def\hyperref{http://www.website.com/abc/def}
>> show \hyperref
>> Gives the correct answer but
>> \useURL[this_doc][\hyperref][][displayed text]
>> \from[this_doc]
>> Gives
>> hyperef%20 as the url
>> What am I doing wrong?
> the content is not expanded, why not just use
> 
> \useURL[this_doc][http://www.website.com/abc/def][][displayed text]

or 

 \expanded{\useURL[this_doc][\hyperref][][displayed text]}

if that is truly impossible for some reason.

Best wishes,
Taco
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 3353 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-06-19 18:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-19 11:28 Variables in \useURL Nigel King
2020-06-19 11:49 ` Hans Hagen
2020-06-19 12:10   ` Taco Hoekwater
2020-06-19 18:54     ` Nigel King

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).