Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question

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.

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? –  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
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 9 '12 at 18:00
    
@egreg That does the trick. Thank you. –  Andrew Uzzell May 9 '12 at 18:32

1 Answer 1

up vote 4 down vote accepted

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.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.