An accented symbol is treated by TeX as an ordinary one; you have to tell it that you want a relation symbol:
\( w_{1} \mathrel{\tilde{\in}} w_{2} \)
The commands for declaring a math symbol are
\mathord
(ordinary)
\mathbin
(binary operation)
\mathrel
(binary relation)
\mathop
(operator, use with care)
An ordinary symbol is typeset without any spacing around it. A binary operation is something like +
; for example, if one wanted to define a "mod" operation, a correct way would be
\newcommand{\bmod}{\mathbin{\textrm{mod}}}
(amsmath does it in a quite different way, but that's not the point). A binary relation is like <
; the spacing around binary relation symbols is larger than around operation symbols. Moreover the space around relation symbols is uncompressible, while it is for operations.
As already said, putting an accent over a symbol makes it lose its predefined nature: the accented cluster is considered as an ordinary symbol; therefore we have to state explicitly its nature.
If you need to do it in math mode you can use $\acute{\mathrm{e}}$
.
Here is a comparison of the output:
\documentclass{article}
\begin{document}
$\acute{e}$ within math mode (without mathrm)\par
$\acute{\mathrm{e}}$ within math mode (with mathrm)\par
\'{e} outside of math mode
\end{document}
Best Answer
Using Psirus's idea:
One has to load
fontenc
and specify theT3
encoding; ifT1
is not desired, say\usepackage[T3,OT1]{fontenc}
so as to getOT1
as the default encoding.