7

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 @?

  • 2
    Could you please be more specific. – Caramdir Sep 23 '11 at 1:17
  • I have no authority to affix a image. There exists difference between @ made by latex and @ made by word, I like the word type @. – Pig Cry Sep 23 '11 at 1:58
  • 1
    Did you try the with \MVAt command with \usepackage{marvosym} in the preamble? I just found it via Detexify – percusse Sep 23 '11 at 2:07
  • @percusse,the package works,thx – Pig Cry Sep 23 '11 at 2:35
10

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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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