3

In the following LaTeX code, x and \widetilde and \mathcal{G}_i are too close.

T(x\:\widetilde{\in}\:\mathcal{G}_i)

I feel wired because it remains so even if \: is added. What is the problem and how to solve it?

0

1 Answer 1

6

You seem to want \widetilde{\in} to be a relation symbol; but the problem is that accenting a symbol makes it to lose its type and produces something treated as an ordinary symbol. This can be cured by explicitly making the object a math relation

T(x\mathrel{\widetilde{\in}}\mathcal{G}_i)

Better defining a new command, then.

\documentclass{article}
\usepackage{amsmath}

\newcommand{\win}{\mathrel{\widetilde{\in}}}

\begin{document}

\begin{gather*}
T(x\win\mathcal{G}_i) \\
T(x\in\mathcal{G}_i)
\end{gather*}

\end{document}

enter image description here

1
  • Why \win and not \lose?
    – Gaussler
    Mar 7 at 11:52

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.