[w_url macro Panu Kalliokoski **20040624222904 Keywords: (atehwa@sange.fi--2004/stx2any--prod--2--patch-57) ] { hunk ./README 14 -There are also w_link(http://sange.fi/~atehwa/cgi-bin/piki.cgi/stx2any, -a homepage) and w_link(http://sange.fi/~atehwa/, a distribution page) -for this project. You can contact the author at -w_link(mailto:atehwa@sange.fi, atehwa@sange.fi). +There are also a homepage at +w_url(http://sange.fi/~atehwa/cgi-bin/piki.cgi/stx2any) and a +distribution page at w_url(http://sange.fi/~atehwa/) for this project. +You can contact the author at w_url(mailto:atehwa@sange.fi). hunk ./common/markup.m4 8 +define(`w_url', `w_literal(`$1')') hunk ./examples/Stx-ref.stx 106 +`w_url(url)':: + put /url/ into the document. In HTML, it also becomes a link. + hunk ./html/make.m4 66 +define(`w_url', `w_link(`$1', `$1')') + hunk ./latex/make.m4 34 -define(`w_link', `$2`'w_footnote(w_literal(`$1'))') +define(`w_link', `w_ensure_url`'$2`'w_footnote(`\url{$1}')') hunk ./latex/make.m4 61 + +define(`w_ensure_url', +`ifdef(`@w_has_url',, + `define(`@w_has_url',t)w_begdiv(preamble)\usepackage{url} +w_enddiv(preamble)')') +define(`w_url', `w_ensure_url\url{$1}') + hunk ./regression/markup.docbook-xml 33 +Google - named link; +http://www.google.fi/ - unnamed link. + hunk ./regression/markup.html 31 +

Google - named link; +http://www.google.fi/ - unnamed link. + hunk ./regression/markup.latex 10 +\usepackage{url} hunk ./regression/markup.latex 20 -foo in action, this is a link to heaven\footnote{\litfmt{http://heaven/}}. \\ +foo in action, this is a link to heaven\footnote{\url{http://heaven/}}. \\ hunk ./regression/markup.latex 35 + +Google\footnote{\url{http://www.google.fi/}} - named link; +\url{http://www.google.fi/} - unnamed link. hunk ./regression/markup.man 38 +.PP +Google\& +.SM (2) +\& - named link; +\fChttp://www.google.fi/\fP - unnamed link. +.br +\& +.SM (2) +\& http://www.google.fi/ +.br hunk ./regression/markup.test 32 +w_link(http://www.google.fi/, Google) - named link; +w_url(http://www.google.fi/) - unnamed link. + }