[NTG-context] Accessing the URL of \useURL (for putting URLs into footnotes)
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 signature.asc Description: Message signed with OpenPGP using GPGMail ___ 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 ___
Re: [NTG-context] Accessing the URL of \useURL (for putting URLs into footnotes)
Am 07.08.2014 um 12:26 schrieb Matthias Weber matwe...@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 ___
Re: [NTG-context] Accessing the URL of \useURL (for putting URLs into footnotes)
Thanks Wolfgang! Matthias On Aug 7, 2014, at 6:35 AM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 07.08.2014 um 12:26 schrieb Matthias Weber matwe...@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 ___ signature.asc Description: Message signed with OpenPGP using GPGMail ___ 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 ___