Am 27.10.2010 um 16:56 schrieb Peter Münster:
On Wed, Oct 27 2010, Wolfgang Schuster wrote:
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.
He wants perhaps:
\starthyphenatedurl www.%.com \stophyphenatedurl
No, he wants \footnote{...\hyphenatedurl{...%...}...} and before \hyphenatedurl can take a look at the content and change the % to a normal character the footnote already interpreted it as a comment and it’s gone. What you can do is to redefine \footnote to read it’s content with a different catcode regime or you use Adityas modified \asciicode command which makes % a printable character but you loose then comments (and \starthiding/\stophiding does not count as comment). Wolfgang