[tex-eplain] \leavevmode in front of hyperlinks
geolsoft at mail.ru
geolsoft at mail.ru
Fri Jul 22 20:55:57 CEST 2005
On Fri, Jul 22, 2005 at 08:12:16PM +0200, Karl Berry wrote:
> Seems like the cleanest thing to do is just \ifvmode\leavevmode\fi
> before outputting a link. (Of course this should only be done if
> hyperlinks are actually enabled.)
OK, I will do this. But what is the reason for \ifvmode ?
plain.tex defines \leavevmode as
\def\leavevmode{\unhbox\voidb at x}
so it is just a no-op in horizontal mode. Knuth actually
uses it in several macros without the \ifvmode.
--
Best regards,
Oleg Katsitadze
More information about the tex-eplain
mailing list