# Incomplete Mailto in PDF with amsart [closed]

When I use the amsart class and run LaTeX => PDF, the email macro produces strange output. Namely, the PDF shows an incomplete mailto. For example:

\documentclass{amsart}

\email{a.b@c.d}
\email{b@c.d}

\begin{document}
\end{document}


In the output, the first link points to b@c.d and the second to @c.d. Interestingly, when I run LaTeX => PS => PDF, both links are correct. How do I fix this?

This question is similar to email adress renders incomplete mailto in PDF. However, unlike in that case, I want to use the \email macro, or at least to simulate the behavior of \email in the amsart class (e.g., I want e-mail addresses to appear at the end of the article, etc.).

-

## closed as too localized by cmhughes, Harish Kumar, Werner, lockstep, Stefan Kottwitz♦May 11 '12 at 16:13

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Alas and it works fine for me with pdflatex. My amsart version is Document Class: amsart 2009/07/02 v2.20.1. What is yours? –  Harish Kumar May 9 '12 at 16:25
works fine for me, I think an update of your distribution is in order... –  cmhughes May 9 '12 at 16:55
The .log file says, "Document Class: amsart 2009/07/02 v2.20.1", but the behavior persists. Shall I post the .log file? –  Andrew Uzzell May 9 '12 at 17:58
If I say \usepackage{hyperref} and then \email{\href{mailto:a.b@c.d}{a.b@.c.d}}, the mailto: links are created. What precisely are you trying to achieve? –  egreg May 9 '12 at 18:00
@egreg That does the trick. Thank you. –  Andrew Uzzell May 9 '12 at 18:32

You have to load hyperref, of course. Then the following works:

\documentclass{amsart}
\usepackage{hyperref}

\email{\href{mailto:a.b@c.d}{a.b@c.d}}
\email{\href{mailto:b@c.d}{b@c.d}}

\begin{document}
\end{document}


One might redefine \email, but it seems overkill.

-