# IEEEtran and the automatic generation of mailto: links

I wonder what IEEEtran does with parentheses around email links. I noticed that email addresses are automatically converted to links (which is what I want), but parentheses around an email and some more text make the text part of the mailto: link.

Is that not clear enough? Here's a MWE:

\documentclass{IEEEtran}
\usepackage{hyperref}
\begin{document}
(e-mail: test@example.com) % result: mailto:e-mail:test@example.com

e-mail: test@example.com   % result: mailto:test@example.com

(e-mail: test@example.com  % result: no link

e-mail: test@example.com   % result: no link
\end{document}


I want, of course, in HTML notation

(e-mail: <a href=mailto:test@example.com>test@example.com</a>)


I could not find anything about this in the IEEEtran or hyperref package documentations, and neither could I find any mailto: handling in the IEEEtran code. What is happening here, and how can I prevent it?

Update: The same issue arises without hyperref, and it only happens with words such as "e-mail" or "x-y", not with "email" or "x-" or "-y" for example. Here's an updated and extended MWE:

\documentclass{IEEEtran}
\listfiles
\begin{document}
test@example.com           % correct: mailto:test@example.com

email: test@example.com    % correct: mailto:test@example.com

e-mail: test@example.com   % correct: mailto:test@example.com

(email: test@example.com)  % correct: mailto:test@example.com

(email: test@example.com   % correct: mailto:test@example.com

(e-mail: test@example.com) % wrong:   mailto:e-mail:test@example.com

(x-y: test@example.com)    % wrong:   mailto:x-y:test@example.com

(x-: test@example.com)     % correct: mailto:e-mail:test@example.com

(-y: test@example.com)     % correct: mailto:e-mail:test@example.com

(e-mail: test@example.com  % wrong:   no link

e-mail: test@example.com   % wrong:   no link
\end{document}


With that MWE, these are the file versions listed:

*File List*
IEEEtran.cls 2012/12/27 V1.8 by Michael Shell
ot1ptm.fd 2001/06/04 font definitions for OT1/ptm.
***********

• Strictly speaking, and in accordance with the IEEE rules, you are not supposed to use hyperref package with IEEEtran Nov 15, 2013 at 10:09
• You are right when referring to IEEE PDF guidelines. However, I might like to use IEEEtran for work that might not be published on IEEE Xplore, and above all, I want to understand what's happening (and perhaps even, why).
– bers
Nov 15, 2013 at 10:14
• All the above cases produce links for me. Which version of the packages are you using? (put \listfiles at the top of you document to get that infomation in the log). Nov 15, 2013 at 10:49
• I just checked and did not find any updates to my MikTex 2.9 installation. The file versions are here: pastebin.com/6D3ph16k
– bers
Nov 15, 2013 at 14:27
• If you really have to use it, use inside an \href tag and let hyperref handle it instead of letting IEEEtran parsing it. Nov 18, 2013 at 13:55