I am working with graphs (V, E) which have a fixed number of common neighbours and common non-neighbours for each pair of adjacent vertices, and non-adjacent vertices as well. To denote these four invariants, I'm using the following symbols:

enter image description here

I'm not too keen on it though (I don't like how _\sim and _\nsim look). I'm considering using the \tilde accent, but I would like an analogous \nottilde accent, that is, a stricken-through \tilde accent:

enter image description here

I'd imagine creating such a command would involve quite a bit of hassle, especially to be compatible with \widetilde. I have no idea how to go about creating it (I used paint for the picture above).

I'm also open to other suggestions for this notation! Thanks.

  • What do you mean "compatible with \widetilde"? How would you envision the proper way to strike through a \widetilde? With the same small strike or with an enlarged one? – Steven B. Segletes Dec 5 '17 at 18:29
  • @StevenB.Segletes I'd imagine the strikethrough to stretch out horizontally as the tilde does, however it's not that important to be honest. I'd be more interested in getting it to position itself correctly on the letter f or capital A for example. – Luke Collins Dec 5 '17 at 18:45

What about this?


enter image description here

  • Very nice! Is there any reason the \sim looks slimmer than the \nsim here? – Luke Collins Dec 5 '17 at 18:33
  • Also, would it be possible to get \xtilde{f} and \nottilde{f} to look right also? I might use the letters e and f. – Luke Collins Dec 5 '17 at 18:43

A variation on my answer at Big tilde in math mode, showing \reallywidetile and \reallywidenotilde.







\parskip 1ex


enter image description here

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.