3

How to reproduce this symbol, using Latex, that consists of a long vertical bar, on the right hand side of an expression, and some small text at the bottom, that defines some condition?

enter image description here

How to reproduce this symbol using latex?

2
  • 4
    It is given in LaTeX as \vert and it is extensible, as in \left. \frac{...}{...}\right\vert_{...} Sep 29, 2017 at 16:43
  • @egreg fair enough. updated. how does the question look now? Sep 29, 2017 at 18:45

2 Answers 2

3

The basic building bloc is \vert. Because it is extensible, you have various ways to make it grow.

The various forms of \[B/b]ig[g] grow it a defined amount, whereas the use as part of a \left...\right context grows it to fit the content.

\documentclass{article}
\begin{document}
\[
A\vert_x
\]
\[
\frac{A}{B}\bigr\vert_x
\frac{A}{B}\Bigr\vert_x
\frac{A}{B}\biggr\vert_x
\frac{A}{B}\Biggr\vert_x
\]
\[
\left.\frac{\displaystyle\frac{A}{B}}{\displaystyle1 + \frac{C}{D}}\right\vert_x
\]
\end{document}

enter image description here

2
  • Interesting—I've always used \Big|_{x}. Should I prevert to substitute \vert for |?
    – wchargin
    Sep 29, 2017 at 21:29
  • @wchargin In general | and \vert are completely equivalent. Indeed, \vert is defined as \delimiter "026A30C and the \delcode of | is 26A30C, while its \mathcode is 026A.
    – egreg
    Sep 29, 2017 at 22:37
3

Just for training

\documentclass{article}
\usepackage{amsmath,amssymb}

\begin{document}
    \[
    +\Delta\mu_{i}\left.\frac{\partial E_{S\sim\mathcal{N}(\mu,\sigma^{2}_{S})}[f(S)]}{\partial \mu}\right\vert_{\mu=\mu_{S}}
    \]
\end{document}

enter image description here

Not the answer you're looking for? Browse other questions tagged .