TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am writing a big formula where a vertical line is needed. Instead of $\vline$ or $|$, does anyone know a way to draw this vertical line of desired length? The formula is something like

F_{m-1}\Big( \text{some big contents} \Big) |\: \mathcal{F}_1

Thank you very much!

share|improve this question
For lots of examples and techniques for typesetting math, the mathmode documentation is very helpful. It should be part of your TeX distribution. – Alan Munn Jan 2 '11 at 18:53
Thanks Alan Munn, I guess what you mean is this one: tex.ac.uk/tex-archive/info/math/voss/mathmode/Mathmode.pdf It is very helpful.:-) – Anand Jan 2 '11 at 21:09
up vote 16 down vote accepted

Well, if you are manually defining the size, as in the example you could just put a \Bigg| at the right place. Probably better would be using \left, \middle and \right.

By the way: You should prefer \[ and \] instead of double $$.

\[ E\left[ F_{m-1}\Big( \text{some big contents} \Big) \middle|\: \mathcal{F}_1 \right] \]
share|improve this answer
Thank you very much! :-) – Anand Jan 2 '11 at 20:45

Try enclosing your expression into \left. and \right\vert, as in

\left.\frac{\partial L}{\partial\bm{\beta}}\right\vert_{\hat\beta}=-2\bm{X'y}+2\bm{X'X\hat\beta}=0

which yields:

alt text

share|improve this answer
Thank you very much! :-) – Anand Jan 2 '11 at 20:30

If you were using this type of construction extensively you could define a notation such as

enter image description here


MathJax is unable to handle the LaTeX so I have uploaded the image.

share|improve this answer
@azetina Thanks for the edit. – John Wayland Bales May 22 at 20:19
This answer was intended for a different question on another tab in my browser.. Sorry for the confusion. – John Wayland Bales May 22 at 20:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.