This is LaTeX code:
[latex]
B=\{X \mid X \sim A\}
[/latex]