Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
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
    
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

1 Answer 1

up vote 10 down vote accepted

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?

share|improve this answer
    
I learn a lot, thanks. –  Pig Cry Sep 23 '11 at 4:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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