5

The @ symbol is not coming as I wish. I want to have the classical symbol, like the one visualized here. I tried in normal text and math mode but it is the same.

With the code below, I am not getting the symbol I want. I post images of both symbols.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[italian]{babel}

\begin{document}
@
$@$

\end{document}

What I get:

enter image description here

What I want:

What i get

3
  • Maybe \emph{@} would do the trick?
    – Bernard
    Jan 18 at 11:04
  • 4
    That's simply a different font. With \usepackage{newtxtext} you'll get the desired output but all fonts will become Times-like.
    – campa
    Jan 18 at 11:08
  • 1
    I think it's worth someone saying this: fonts are carefully designed to form a cohesive whole, and if you're going to switch fonts for a single character you should have a good reason (beyond merely not being used to the symbol in the font you are using). I too found the Computer Modern @ sign unusual when I first saw it but I got used to it, and I would find it jarring and strange if I noticed you used (say) a Times @, or a bold @, in a Computer Modern text at regular weight.
    – dbmag9
    Jan 19 at 10:54

3 Answers 3

13

It's up to the font designer to decide how a particular glyph should be rendered in their font.

You can decide to borrow a particular symbol from another font, though. It seems that your preference goes for the symbol in Times, so the simplest strategy is to do

\newcommand{\myfavoriteat}{{\fontfamily{ptm}\selectfont @}}

and to use \myfavoriteat (or whatever name you prefer).

You might also decide to make @ active so to be able to simply type @.

\documentclass{article}

\protected\def\myfavoriteat{%
  {\fontfamily{ptm}\selectfont @}%
}
\begingroup\lccode`~=`@ \lowercase{\endgroup\let~}\myfavoriteat
\catcode`@=\active

\begin{document}

This is @.

This is \symbol{`@} (original in the font)

\end{document}

enter image description here

If you go with the active character approach, don't blame me if something goes wrong. I did warn you.

1
  • +1 for the warning
    – Miguel
    Jan 19 at 12:57
5

\textit{@} and/or \textsl{@}, along with their bold variants, may provide what you're looking for.

enter image description here

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern} % 'Latin Modern' is a clone of 'Computer Modern'

\begin{document}
@ \textit{@} \textsl{@} \textit{\textbf{@}} \textsl{\textbf{@}}
\end{document}
3

If you don't want to change the font but just want the symbol, you can add \usepackage{marvosym} to your preamble, and then use the command \MVAt to make the @ symbol.

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.