2

Can I adjust the symbol "|" in every set?

If we type the below code, the symbol "|" is too small. I know that I can use \big to adjust by manual. Is there a method for automatically adjust?

$\left\{ \sum\limits_{v\in e} f(v) |\ e\in E \right\}$
2
  • 1
    There is a nice macro for sets defined in the answer to the question How to add mathematical notation of a set – user30471 May 8 '15 at 5:19
  • You shouldn't be typing | in the first place. Try \Bigm\vert, which will give you the correct amount of horizontal spacing as well. – Mico May 8 '15 at 5:39
3

The extension e-TeX (should be enabled with the LaTeX format) adds \middle to \left and \right. Also the sizes can be manually set using \big and friends. The latter looks nicer, because the index of the summation does not need to be included in the size of the delimiters. Also \bigm sets additional space around the symbol, because it is set as relational operator:

\documentclass{article}
\begin{document}
\[\left\{ \sum\limits_{v\in e} f(v) \middle| e\in E \right\}\]
\[\Bigl\{\sum\limits_{v\in e} f(v) \Bigm| e\in E\Bigr\}\]
\end{document}

Result

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