Discussion:
hyperref: removing "mailto"
(too old to reply)
g***@gmail.com
2009-05-02 19:15:39 UTC
Permalink
Hi guys,

my apologies if this is a dumb question...

I'd like to compile the latex source code below (minimal example) with
PDFLaTeX, where I'm using the hyperref package in order to obtain a
PDF document with PDF bookmarks to the various sections as the output.
However I don't want the little "@mailto:provider.com" window to
appear in Acrobat reader when I hover the mouse over the
"@provider.com" portion of the email address. In other words, I would
like my email address "***@provider.com" to be interpreted as
plain text, and I don't want hyperref+PDFLaTeX to create a "mailto"
link. Is there any way I could achieve this?

Thanks a lot in advance.

=========================

\documentclass{article}
\usepackage{hyperref}

\begin{document}
Author: My Name
E-mail: ***@provider.com
\section{Section 1}
Some text.
\section{Section 2}
Some other text.
\end{document}

=========================
g***@gmail.com
2009-05-02 21:35:19 UTC
Permalink
I should add that I noticed that by using the command

\href{}{***@provider.com}

instead of the expression

***@provider.com

in the minimal example above, I can get rid of the "mailto" window,
but the cursor changes nevertheless, and I would like to avoid that
too.
Heiko Oberdiek
2009-05-02 21:03:07 UTC
Permalink
Post by g***@gmail.com
I'd like to compile the latex source code below (minimal example) with
PDFLaTeX, where I'm using the hyperref package in order to obtain a
PDF document with PDF bookmarks to the various sections as the output.
appear in Acrobat reader when I hover the mouse over the
plain text, and I don't want hyperref+PDFLaTeX to create a "mailto"
link. Is there any way I could achieve this?
The link is not added by hyperref. AR interprets some text as urls and
mail addresses. You can turn it off by an option in AR.
In AR7/Linux, for example, the option is:
Edit->Preferences->General->"Automatically detect URLs from text"

Yours sincerely
Heiko <***@uni-freiburg.de>
g***@gmail.com
2009-05-03 13:59:34 UTC
Permalink
Post by Heiko Oberdiek
The link is not added by hyperref. AR interprets some text as urls and
mail addresses. You can turn it off by an option in AR.
  Edit->Preferences->General->"Automatically detect URLs from text"
Yours sincerely
Thanks a lot for your reply, Heiko. I tried removing the hyperref
package, and I saw that the link was still there, just as you said. In
other words, there's nothing I can do to prevent the link to appear
when someone else opens my compiled PDF document on a different
computer, as this depends on the settings of the other person's PDF
reader... am I right? I guess that in this case, using the usual \href
{mailto:***@provider.com}{***@provider.com} is probably the
better option, as the little window that appears when hovering over
the text with the mouse will at least display the correct, full email
address.

Cheers,
George
Heiko Oberdiek
2009-05-03 17:24:44 UTC
Permalink
Post by g***@gmail.com
Post by Heiko Oberdiek
The link is not added by hyperref. AR interprets some text as urls and
mail addresses. You can turn it off by an option in AR.
  Edit->Preferences->General->"Automatically detect URLs from text"
Thanks a lot for your reply, Heiko. I tried removing the hyperref
package, and I saw that the link was still there, just as you said. In
other words, there's nothing I can do to prevent the link to appear
when someone else opens my compiled PDF document on a different
computer, as this depends on the settings of the other person's PDF
reader... am I right?
Yes.

(Except for trying to fool AR's heuristic, e.g. by
replacing "***@provider.com" by "address at provider.com"
or similar.)

Yours sincerely
Heiko <***@uni-freiburg.de>
Massimo Ortolano
2009-05-05 13:54:26 UTC
Permalink
Post by g***@gmail.com
Thanks a lot for your reply, Heiko. I tried removing the hyperref
package, and I saw that the link was still there, just as you said. In
other words, there's nothing I can do to prevent the link to appear
when someone else opens my compiled PDF document on a different
computer, as this depends on the settings of the other person's PDF
reader... am I right? I guess that in this case, using the usual \href
better option, as the little window that appears when hovering over
the text with the mouse will at least display the correct, full email
address.
You could try the insdljs package from the acrotex bundle: it can be
used to insert javascript code into the pdf and I've once used it to set
some reader option.

This was part of the preamble:

\documentclass[pdftex]{article}
\usepackage{eforms}
\usepackage{insdljs}

% Highlights empty fields
\OpenAction{/S /JavaScript /JS (%
if (!app.runtimeHighlight)
{
app.runtimeHighlight = true;
})}

Loading...