|
|
Welcome to the TeXnik web site HTML and \url |
![]() |
||||||||||
|
Different Urls for html and LaTeX |
Macros as Argument |
Different Urls for html and LaTeX HTML should give <a href=http://x.y.z>My Link</a>DVI/PS should give My Link (http://x.y.z)Put the following in the preamble: \usepackage{html}
\usepackage{url}
\latex{\renewcommand{\htmladdnormallink}[2]{#1 (\url{#2})}}
and use \htmladdnormallink{<linktext>}{<the url>} in the usual way.
Macro as an argument If you have something like \newcommand{\EMail}{muster@mann.de}
E-Mail \url{\EMail}
it wouldn't work, because the \Mail macro isn't expanded. You have to use
\newcommand{\EMail}{muster@mann.de}
E-Mail \expandafter\url\expandafter{\EMail}
|
|||||||||||