<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 6, 2012, at 1:36 PM, Ross Moore wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">The use of \urldef *must* come before hyperref is loaded, since hyperref changes the definition of \url .<br>After hyperref has been loaded, the syntax of \urldef\....\url{...} will fail, because of that redefinition. But it is handy to have all of your URLs defined in the preamble, so that the body of your document is not cluttered with long URL constructions, but just neat meaningful macro names. URLs defined this way also work in footnotes, and within expansions of other macros, since all the required catcode changes for special characters have already taken place.<br></span></blockquote></div><br><div>Ross,</div><div><br></div><div>Many thanks for your lucid explanation of the interaction between the url and hyperref packages---an extremely useful post.</div><div><br></div><div>Michael</div></body></html>