Text FormattingClickable e-mail address with a dot and clickable URL

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
pantera
Posts: 11
Joined: Mon Feb 20, 2012 6:01 pm

Clickable e-mail address with a dot and clickable URL

Post by pantera »

Hi,

I use \usepackage{url} to include a clickable e-mail address with a dot.

Code: Select all

\url{my.e-mail@yahoo.com}
Note the dot right after "my".

However, in the pdf document created it doesn't come out right because when I click on the e-mail it actually reads as .e-mail@yahoo.com. Anything before the dot is gone.

Also, I use \url{sth} but in the pdf document the link is NOT clickable.

How can I fix this error?

Thanks a lot

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Clickable e-mail address with a dot and clickable URL

Post by Stefan Kottwitz »

Hi,

for real hyperlinks use the hyperref package, not just the url package. For details, have a look at the hyperref manual.

Stefan
LaTeX.org admin
pantera
Posts: 11
Joined: Mon Feb 20, 2012 6:01 pm

Clickable e-mail address with a dot and clickable URL

Post by pantera »

Thanks, Stefan_K. I used the package you recommended and now the URL's are clickable. However, the e-mail address with a dot doesn't work properly. Still, everything before the dot disappears. I used the following code in my tex file.

Code: Select all

\href{mailto: my.e-mail@example.com}{my.e-mail@example.com}
I'm using a class provided by an Elsvier journal article, and I don't know whether it affects the use of such a hyperref package.
Post Reply