topnush
```
\documentclass{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}
\frametitle{}
\uncover<1-10>
{
$S$ = \foreach [count=\y] \x in {\{0\},\{0,1\},{0,1,2},{4,1,2},{4,1,2},{4,1,2},{4,1,2},{4,8,2},{4,8,9},{4,8,9}}{\only<\y>{\x}}
}
\end{frame}
\end{document}
```
I would like the curly brackets around the sets to all be shown. Normally I would do `$\{0,1,2\}$` but that doesn't work either. Strangely {0} is shown properly but {0,1} is not. I tried `\{0\,1\}` but then the comma isn't shown.
Top Answer
samcarter
You can wrap the items in your list in an additional pair of curly brackets. Without them your list looks just like `{x0x, x0, 1x,...}` to TikZ.
```
\documentclass{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}
\frametitle{}
\uncover<1-13>
{
$S$ = \foreach [count=\y] \x in {{\{0\}},{\{0,1\}}}{\only<\y>{\x}}
}
\end{frame}
\end{document}
```
