The stmaryrd
package provides two types of multiset, or bag, delimiters: \lbag
and \rbag
; and \Lbag
and \Rbag
.
When I use these commands with the delimiter sizing commands \left
and \right
(or even \bigl
and \bigr
), I get a "Missing delimiter" error. Is there a way to use the multiset delimiters in varying sizes?
I am open to using symbols from another package if necessary.
Best Answer
The
\scaleleftright
andstretchleftright
macros of thescalerel
package give similar functionality to the\left ... \right
syntax. In this case, the optional argument gives the maximum width allowed on the scale. If the width is exceeded, the aspect ratio is adjusted to preserve the limiting width.And if you add a
\strut
to the numerator and denominator of the\frac
, it will look like this:In the comments discussion, I raised the question on what an extensible version of this glyph might look like. For fun, I constructed one by hand. I don't recommend the implementation, but thought it would be interesting to compare, in visual appearance, to my proposed solution above: