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