1

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.).

  • 2
    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? –  May 09 '12 at 16:25
  • works fine for me, I think an update of your distribution is in order... – cmhughes May 09 '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 09 '12 at 17:58
  • 3
    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 09 '12 at 18:00

1 Answers1

4

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.

egreg
  • 1,121,712