// I first put this question stackoverflow, but was suggested to place the question here as more appropriate
I would like to write P[theta | X] in mathematical notation with MathJax. So I used below notation -
$$ {P\left[\theta\|X\right]}\propto $$
With this the given sign i.e. | and proportional to sign are too small. Attached in the snapshot on my output.
Any suggestion how to make them properly visible will be highly helpful. I am using Google' PT-sans as my font family.


\left \righthere soP[\theta\mid X]should be fine. If you do want a | that grows with\left\rightuse\middle|– David Carlisle May 31 '20 at 18:30