I just want to format a simple set theory example. But the following is annoying:

See how close the cap gets to the 'A' because of the tilde sign? I've used sim for the tilde sign. Any suggestions?
|
|
You could avoid the binary operator spacing by writing |
|||
|
|
|
You could use one of the following commands:
(They generate different spaces, but I don't know how to mark them in the code.) See also the short math guide, p. 11. EDIT: This solution should't be used here (see comments below). However, I'll not delete it as there is no harm to know about these commands. |
|||||||||
|
|
I believe it's doing that because You can always manually fix it up with extra space
|
|||
|
|
|
Here is a complete code example with output (I just took Stefan's answer and wrote it out).
Switching in and out of math mode is not a good way to get extra spaces. If you still want them after classifying the tilde as an ordinal, you can insert them with |
|||
|
|