GeneralVertical bar in math environment

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
sukramix
Posts: 2
Joined: Sun Nov 16, 2008 10:33 pm

Vertical bar in math environment

Post by sukramix »

Hi,

does anybody know how to create a vertical bar like the one in the screenshot at the end of the line? I tried

Code: Select all

(y-K)\frac{\partial}{\partial y}\frac{1}{2}\sigma_{loc}^2(y,T)y^2p(S,t;y,T)\vert_K^\infty
but this is much too small.

Thanks in advance!

sukramix
Attachments
screenshot
screenshot
bar.jpg (11.64 KiB) Viewed 2705 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Vertical bar in math environment

Post by Stefan Kottwitz »

Hi sukramix,

welcome to the board! You could use \right| together with \left. like

Code: Select all

\left.(y-K)\frac{\partial}{\partial y}\frac{1}{2}\sigma_{loc}^2(y,T)y^2p(S,t;y,T)\right|_K^\infty
You could find information about \left, \right, \big, \Big etc. in math docs like those listed in Mathematics with LaTeX, especially in the first documentation called Mathmode.

Stefan
LaTeX.org admin
sukramix
Posts: 2
Joined: Sun Nov 16, 2008 10:33 pm

Re: Vertical bar in math environment

Post by sukramix »

I've also tried it with \left and \right but I forgot the "." after \left. Now it works! Thx
Post Reply