[l2h] Problems with external links
Tanja Wittke
tawi@gruft.de
Tue, 23 Jul 2002 19:32:41 +0200
Hi,
> Rather than do this for every link, you could use a conditional
> definition in the document preamble:
>
> \begin{htmlonly}
> \newcommand{\href}[2]{\htmladdnormallink{#2}{#1}}
> \end{htmlonly}
Yes, I noticed that my tex-files include so many links... I did not want
to edit every link, so I this afternoon I did exactly what you mentioned
above.
> > fine, but is would be nicer if external sites were opened in a new
> > window. So I need a href with the target TARGET="_blank", but latex2html
> > only produces TARGET="_TOP" automatically.
>
> This may be possible by setting the $target variable on the fly,
> within the LaTeX document:
>
> \htmlset{target}{_blank}
> \externallink....
> \htmlset{target}{}
>
> Try this with small documents first, as it may upset other
> targets (e.g. for getting cross-references and citations
> correct within the frames of a complicated document).
I think I will try this tomorrow :-)
Thank you,
Tanja