I have a mathematical set notation that I want to display inline in a paragraph of text. However, when I write this, the output is not very beautiful:
$\{ (w_j,\dots,w_{j+n-1}) | 0 \leq j \leq k-1-n\}$ The curly braces look a bit too small, but it's bearable. What's worse is the spacing, I think: the curly braces are too close to the opening parenthesis on the left side and the "n" on the right side. The same with the pipe symbol in the middle: it's practically glued to the closing parenthesis and the "0".
Overall the tight spacing makes the definition difficult to read. So I wonder if there is a "better" way to write the above set, so that the output is more esthetically pleasing.