I have a command for setbuilder notation,
\newcommand{\set}[2]{\left\{ #1 \ \big| \ #2 \right\}}
Pretty simple stuff. I have issues, however, when I want larger characters in the set, for example summations, fractions, and whatnot as the vertical bar doesn't scale. Is there a way its height can be tied to the outside brackets?
\DeclareMathDelimiter
. Note that it is never recommended to auto scale by default as it more often than not ends up in the wrong scale. The manual has an example that defines a one arg\Set
macro.