[NTG-context] Accessing the URL of \useURL (for putting URLs into footnotes)

Matthias Weber matweber at indiana.edu
Thu Aug 7 12:26:47 CEST 2014


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
}

Thanks,

Matthias




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20140807/cecb1e7f/attachment.pgp>


More information about the ntg-context mailing list