Text FormattingPhone number link \href tel:

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
thag1987
Posts: 17
Joined: Sun Jun 14, 2015 11:19 pm

Phone number link \href tel:

Post by thag1987 »

Hey, I was trying to have the phone number as a clickable link in the pdf, similar to

Code: Select all

\href{mailto:email@gmail.com}{email@gmail.com}
but

Code: Select all

\href{tel:1999999999}{+1 999 999 999}
is not working and also not referenced in the hyperref package.

Is there an easy way to achieve this?

Reference html would be

Code: Select all

<a href="tel:1999999999">+1 999 999 999</a>

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Phone number link \href tel:

Post by Johannes_B »

Quick question, what should happen if the link is clicked?
Do you hope somebody reads the CV on a smartphone and calls you right away?

Could be handy, but this isn't possible right now.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
thag1987
Posts: 17
Joined: Sun Jun 14, 2015 11:19 pm

Re: Phone number link \href tel:

Post by thag1987 »

Kind of. Most companies have some kind of VOIP setup, so they could make an instant call from their computer with one click.

That's sad :(
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Phone number link \href tel:

Post by Stefan Kottwitz »

Your suggestion is working for me. I get a clickable link with tel: reference:

Code: Select all

\documentclass{article}
\usepackage{hyperref}
\begin{document}
\href{tel:1999999999}{+1 999 999 999}
\end{document}
tel-link.png
tel-link.png (6.83 KiB) Viewed 22266 times
Stefan
LaTeX.org admin
Post Reply