TransWikia.com

Big symbol "|" in latex

TeX - LaTeX Asked by user254087 on February 26, 2021

I need to use | with the mean of “such that”. It’s in an expression with fraction and so I need to have a big |. I’ve tried to use displaystyle before | but it doesn’t work. Putting left before | work, but Texstudio give an error because there isn’t any right. What can I do?

4 Answers

You could do the following

begin{equation}
left. frac{partial f left( x , y right)}{partial x} right|_{x = 0}
end{equation}

This will yield

437265

Correct answer by zyy on February 26, 2021

If you want only a left delimiter but not a right one, you can use left| right. (with a dot).

Answered by Bart Michels on February 26, 2021

I find the ‘middle’ commands look better for this:

documentclass{article}

usepackage{mathtools}

begin{document}
    [
left.frac{partial f(x, y)}{partial x}right| f(t) = t^2 + 1
 ]%
    [
 frac{partial f( x, y)}{partial x}biggm| f(t) = t^2 + 1
 ]%

end{document} 

enter image description here

Answered by Bernard on February 26, 2021

Using a specific package called diffcoeff (https://ctan.mirror.garr.it/mirrors/ctan/macros/latex/contrib/diffcoeff/diffcoeff.pdf) you can obtain the same result. It is not a classic command but it is very simple to understand. The diffdef{pvrule}{op-symbol=partial} is a macro for to write a partial symbol.

documentclass[a4paper,12pt]{article}
usepackage{diffcoeff}
diffdef{pvrule}{op-symbol=partial}

begin{document}
[diff.pvrule.{f(x,y)}x[x=0]]
end{document}

enter image description here

Addendum:

You can use a similar code for the function of one variable using the character $d$: see the macro op-symbol=d.

documentclass[a4paper,12pt]{article}
usepackage{diffcoeff}
diffdef{pvrule}{op-symbol=d}

begin{document}
[diff.pvrule.{(x^2+3x)}x[x=1]=5]
end{document}

enter image description here

Answered by Sebastiano on February 26, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP