[Tex/LaTex] How to change the @ symbol in e-mail addresses

fontssymbolsurls

I use

\documentclass{article}
\usepackage{hyperref}
\begin{document}
\href{mailto:e.xmaple@example.com}{e.xmaple@example.com}
\end{document}

This way I can write an email address, but I don't like the shape of the @ symbol inserted by LaTeX:

Computer Modern @

How can I get it to look like Word @?

Best Answer

The @ symbol you get is dependent on the font you use. As you note, the standard Computer Modern @ is quite different from e.g. the one in Times. So you can define your own macro to insert the @ from a different font, and then choose whichever @ you like best.

Here's an example of substituting the Times font itself (with Computer Modern below for comparison). Another reasonable alternative is Charter (\fontfamily{bch}).

\documentclass[12pt]{article}
\usepackage[colorlinks=true]{hyperref}
\newcommand*\myat{{\fontfamily{ptm}\selectfont @}}
\begin{document}
\Large
% Charter
\href{mailto:foo@bar}{foo\myat bar}

% Computer Modern
\href{mailto:foo@bar}{foo@bar}
\end{document}

output of code

Some people may tell you that you shouldn't switch fonts for a single symbol like this, since the relative weights of the fonts look different, (as you can see from the image above) but for most purposes this may not be an issue.

For a list of most of the commonly installed fonts and their internal names see this question:

How do I use a particular font for a small section of text in my document?