1

I need to type the following summation symbol in Latex. Could anyone help me? Literally, there needs to be a vertical line in a summation symbol, and $\hat{\beta}_2$ is just a subscript. Thanks in advance!

enter image description here

4
  • I think @Sigur's comment is the answer to your question. Commented Feb 21, 2019 at 1:35
  • @Sigur Your solution has incorrect spacing, just sayin. For example, try: x$\clap{$\sum$}\Big\vert_{\hat{\beta}_2}$ Commented Feb 21, 2019 at 1:39
  • @sigur worse than that...the \sum is wrongly shifted left. Commented Feb 21, 2019 at 1:41
  • @StevenB.Segletes, specially the position of the limits.
    – Sigur
    Commented Feb 21, 2019 at 1:44

1 Answer 1

4

Fine adjustments can be made to the \vert placement by placing positive or negative lengths in the 2nd argument (horizontal) or 4th argument (vertical) to \stackinset.

\documentclass{article}
\usepackage{stackengine}
\stackMath
\begin{document}
inline: $\stackinset{c}{}{c}{}{\Big\vert}{\sum} _{\hat{\beta}_2} x_i$
\end{document}

enter image description here

You must log in to answer this question.

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