Re: [NTG-context] Variables in \useURL

2020-06-19 Thread Nigel King
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  wrote:



> On 19 Jun 2020, at 13:49, Hans Hagen  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
___

___
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
___


Re: [NTG-context] Variables in \useURL

2020-06-19 Thread Taco Hoekwater


> On 19 Jun 2020, at 13:49, Hans Hagen  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
___


Re: [NTG-context] Variables in \useURL

2020-06-19 Thread Hans Hagen

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
___


[NTG-context] Variables in \useURL

2020-06-19 Thread Nigel King
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?

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

___
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
___