I am trying to produce a table of sections with each section containing a DynamicModule. My two questions are: (1) How do I produce grouped sections that are folded shut? (2) How do I stop the text in my DynamicModule from having quotes around it?
Here is a toy code for the dynamic module
ClearAll[f];
f[a_] := DynamicModule[{x = 0.5},
Column[{
"Plot " <> ToString[a],
Slider[Dynamic[x]],
Dynamic[
Plot[Sin[a x t], {t, 0, 2 \[Pi]}, AxesLabel -> {"x", "y"}]
]
}]
]
I now do a table to produce the sections
Table[
CellPrint[TextCell["Section " <> ToString[i], "Subsection"]];
CellPrint[f[i]],
{i, 3}];
The output is open cells and extra quotes around the strings. How do I CellPrint folded cells and get rid of the extra quotes"?


are folded shut? – Kuba May 21 '15 at 11:46