ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matthias Weber <matweber@indiana.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Accessing the URL of \useURL (for putting URLs into footnotes)
Date: Thu, 7 Aug 2014 07:34:05 -0400	[thread overview]
Message-ID: <797436C3-382C-4E42-B970-42B423E35174@indiana.edu> (raw)
In-Reply-To: <DC1C975E-7D27-4214-A130-43C78EB2EF97@gmail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 2066 bytes --]

Thanks Wolfgang!

Matthias

On Aug 7, 2014, at 6:35 AM, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

> 
> Am 07.08.2014 um 12:26 schrieb Matthias Weber <matweber@indiana.edu>:
> 
>> Dear All,
>> 
>> for the printable version of a document I’d like to put the actual URLs into footnotes.
>> In other words, I’d like to replace
>> 
>> \setupinteraction [state=start]
>> \starttext
>> 
>> \useURL
>> [garden]
>> [http://wiki.contextgarden.net/Main_Page]
>> []
>> [ConTeXtgarden]
>> 
>> 
>> \starttext
>> 
>> Look at the \from[garden]!
>> 
>> \stoptext
>> 
>> with
>> 
>> \setupinteraction [state=start]
>> \starttext
>> 
>> \useURL
>> [garden]
>> [http://wiki.contextgarden.net/Main_Page]
>> []
>> [ConTeXtgarden\footnote{\hyphenatedurl{http://wiki.contextgarden.net/Main_Page}}]
>> 
>> 
>> \starttext
>> 
>> Look at the \from[garden]!
>> 
>> \stoptext
>> 
>> To save me from retyping all the URLs, there must be some way to access the URL of garden instead of the display text so that
>> I could do something like
>> 
>> 
>> \def\myfrom[#1]{
>> 	\startmode[screen] 
>> 		\from[1]
>> 	\stopmode	
>> 	\startmode[print] 
>> 		\from[1]
>> 		\footnote{\hyphenatedurl{get the URL text  from \useURL instead of the display text}}
>> 	\stopmode
>> }
> 
> \setupinteraction [state=start]
> 
> \useurl
>  [garden]
>  [http://wiki.contextgarden.net/Main_Page]
>  []
>  [ConTeXt garden]
> 
> \starttext
> 
> Look at the \from[garden] at \url[garden].
> 
> \stoptext
> 
> Wolfgang
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.1.2: Type: text/html, Size: 4502 bytes --]

[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 842 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2014-08-07 11:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-07 10:26 Matthias Weber
2014-08-07 10:35 ` Wolfgang Schuster
2014-08-07 11:34   ` Matthias Weber [this message]

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=797436C3-382C-4E42-B970-42B423E35174@indiana.edu \
    --to=matweber@indiana.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).