Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I've used the ConfidentialReport stylesheet for a CDF document. When I edit the CDF within MMA a Paragraph Item appears with an opener as follows: enter image description here

but when the document is opened in the Player itself, the opener is not there. Does anyone know of a systemic reason why, or a fix? (I've a related question about local stylesheets for CDF documents but there's quite a bit of discussion already which I need to trawl through first...)

share|improve this question
1  
In Mathematica 9.0.1, ItemParagraph has no opener for me on Windows, using ConfidentialReport stylesheet. Please state your operating system and the Mathematica and CDF versions you are using. –  Rolf Mertig Apr 27 at 23:35
    
9.0.1 MMA and CDF player. In fact I was surprised to see the opener was there, but it was exactly what I wanted; so I was surprised to see the different behaviour in exactly the same CDF document in the 2 environments. I did apply the stylesheet after creating the CDF from within a notebook that did not have the same stylesheet, if that makes a difference. –  fairflow Apr 28 at 8:30
    
MacOS Mavericks btw –  fairflow Apr 28 at 8:42

1 Answer 1

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:

  1. Open the notebook which you are going to transform into CDF in Mathematica.
  2. Place the cursor into the cell that you want to have a GroupOpener.
  3. 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: enter image description here
  4. Now place the cursor into this cell again and press Shift+Ctrl+E. Done
  5. Repeat this with all cells you want to have the group openers in the CDF format.
  6. Now transform this document into the CDF: Menu/File/CDF Export/Standalone The cells of your choice of the resulting CDF document will have the GroupOpeners. At least I get them in Mathematica 9.0.1.0. Have a look below enter image description here 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.

share|improve this answer
    
great; luckily I only had one cell to edit in this way. It didn't occur to me to use this method (obviously!). In fact I did this by simply editing the CDF document from within Mathematica (and, as per a recent comment of mine mathematica.stackexchange.com/a/3172/4811 written to you, I avoided creating a CDF using the Export menu). –  fairflow Apr 28 at 8:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.