* Hans Hagen
\def\dodouseURL[#1][#2][#3][#4]% {\iffirstargument \iffourthargument \setgvalue{\v!file:::#1}{\doexternaldocument[#2][#3][#4]}% \else\ifthirdargument \setgvalue{\v!file:::#1}{\doexternalurl[#2][#3][#1]}% \else\ifsecondargument \setgvalue{\v!file:::#1}{\doexternalurl[#2][][#1]}% \fi\fi\fi \fi}
\def\doexternalurl[#1][#2][#3]% {\bgroup \doifsomething\@@urstyle{\let\@@iastyle\@@urstyle\let\@@urstyle\empty}% \doifsomething\@@urcolor{\let\@@iacolor\@@urcolor\let\@@urcolor\empty}% \doexternaldocument[#1][#2][{\url[#3]}]% \egroup}
Seems to work fine, thanks. nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}