When I put \email{e.xmaple@example.com} in a LaTeX document the resulting PDF shows the email address correct, but the link points to .xample@example.com. de character before the dot gets left off.
How do I fix this?
(I'm a newbie at LaTeX.)
Asked
Active
Viewed 6,889 times
13
Norbert B.
- 233
1 Answers
19
Try this:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\href{mailto:e.xmaple@example.com}{\nolinkurl{e.xmaple@example.com}}
\end{document}
yannisl
- 117,160
-
I don't think you need the
\nolinkurlcommand here. What does it do? – Alan Munn Jan 18 '11 at 16:13 -
@Alan Munn You are right it is not needed to create the link. I just use it to ensure that the typesetting is right. Try it with and without and you will observe the difference. – yannisl Jan 18 '11 at 16:43
-
@Yiannis I see. I generally like links in hrefs to match my text font, but I can see in this case why you might want a monofont there. – Alan Munn Jan 18 '11 at 17:39
-
@Yiannis Lazarides Thank it works ok. I need to alter te style of this mailto-link. A turqouise box is drawn arround it. any suggestion how to get rid of that. As I said I'm a newbie. – Norbert B. Jan 19 '11 at 08:29
-
1@norbert See http://tex.stackexchange.com/questions/823/remove-ugly-borders-around-clickable-crossreferences-and-hyperlinks to remove the border. Thanks for accepting the answer. – yannisl Jan 19 '11 at 09:07
-
@Yiannis No thanks. If an answer is correct I acknowledge the fact. it the civil thing to do. – Norbert B. Jan 19 '11 at 10:42
\emailcommand. But you've apparently found a bug in it. It would be good to contact the package/class developers. – Matthew Leingang Jan 18 '11 at 15:27\documentclass{}and your\usepackage{}commands? – Matthew Leingang Jan 19 '11 at 14:00