Am 28.10.2010 um 08:53 schrieb Taco Hoekwater: > On 10/27/2010 02:43 PM, Wolfgang Schuster wrote: >> >> Am 27.10.2010 um 12:35 schrieb Steffen Wolfrum: >> >>> Hi Hans and other catcode wizards, >>> >>> isn't there a way to make this kind of catcode trickery only be available >>> *inside* \hyphenatedurl{} environment? >> >> It’s useless in this case because the „%“ is read from the footnote before >> \hyphenatedurl can see it and any local catcode changes have therefore no >> effect. > > This works: > > \startbuffer [comurl] \catcode`\%=12 > \hyphenatedurl{http://www.kommers.se/upload/Analysarkiv/In%20English/Analyses/Woolcock%20paper%20on%20impact%20of%20Lisbontreaty%20on%20tradepolicy.pdf} > \stopbuffer > > \setupinteraction > [state=start] > > \starttext > > test\footnote{test \getbuffer[comurl] text.} text. > > \stoptext
Sure but \getbuffer isn’t expanded when the footnote text is read by tex, when you look at the tuc file you can see the entry for the footnote is: titledata={ title="test \\getbuffer [comurl] text.", }, 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 ___________________________________________________________________________________