There are 2 things one can do in this case. If your CDF notebook is not too large you might do the following:
I take it that your initial notebook has the
GroupOpeners, or may be not. Independently of this:
- Open the notebook which you are going to transform into CDF in Mathematica.
- Place the cursor into the cell that you want to have a
- Press Shift+Ctrl+E. The cell will transform into a text. Type in
ShowGroupOpener->True within the square parenthesis, as it is shown in the picture below:
- Now place the cursor into this cell again and press Shift+Ctrl+E. Done
- Repeat this with all cells you want to have the group openers in the CDF format.
- Now transform this document into the CDF:
The cells of your choice of the resulting CDF document will have the
GroupOpeners. At least I get them in Mathematica 220.127.116.11. Have a look below
The left document is the source notebook (I did not save it, and, therefore, it has no name). The right one is the resulting CDF notebook entitled
"Example.cdf". For the sake of example I only added the
GroupOpeners to the
Section 1 and
Subsection 1, while
Section 2 and
Subsection 2 are left as they initially were.
There is another way also. It is to add the
GroupOpener to the
StyleSheet of the notebook to the definitions of certain cells of your choice. It can be done such that this
StyleSheet would be, so to say, "quenched" into the CDF file. That is, it will persist also if the CDF document will be open with another machine on which the changed
StyleSheet is not installed. This is a bit longer, and I only recommend it, if you have a very long document with many cells to change, or if you need to change a whole number of style elements simultaneously. Let me know, if this is the case.