1

Basically, I'm trying to get my set definition to look exactly like the image.

But when I do \Set{w \in { 0,1 } \mid (long definition) }, the text just goes off the right edge of the page and neither the brackets nor the | adjust to fit the long contents.enter image description here

1 Answers1

1

Here is one way, with a stack.

\documentclass{article}
\usepackage{amsmath,stackengine}
\begin{document}
\[
\renewcommand\stackalignment{l}
\left\{
w \in \{0,1\}^* \,\middle|\,
\stackanchor{there is a way to insert the substring 011 (once) into $w$}
{so that the result is a multiple of 3 in binary}
\right\}
\]
\end{document}

enter image description here