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 recently created a custom stylesheet. I then created a notebook with the new style, confirmed that the notebook had adopted the style, and then saved a copy in CDF. But when I opened the CDF in Wolfram's CDF Player, the style had not been applied to the document. Does this mean that CDFs are not able to adopt the style of the original notebook if the style comes from a custom stylesheet? How can I embed the style into cdf?

share|improve this question
add comment

1 Answer

I encountered no problems here. My system: Mathematica 8.0.4 WIN7. My workflow:

1) File > New > Notebook

2) Format > Edit Stylesheet... I applied new styles to Title, Subtitle and Section.

3) Enter your content in Mathematica notebook.

4) File > Deploy > Standalone... This will produce a CDF file with inherited styles.

Here is the snapshot of CDF file I created opened in Wolfram CDF Player - as you can see all styles are preserved:

enter image description here

share|improve this answer
    
There are many problems. If you create your own stylesheet different from the default ones in mathemtica, for example a stylesheet "test" in wich we have defined a particular framed cell, and apply it to notebook, when we deply a standalone cdf, it doesn't open correctly in the player. We have the message box: "the file is basen upon the stylesheet "test" wich cannot be found in mathematica. I'im finding a workaround to include my own styles in the standalone cdf instead..... –  maxmc Mar 19 '12 at 11:21
    
I think that you will need to embed the stylesheet in the notebook, which will be done automatically when you choose Format > Edit Stylesheet as Vitaliy has suggested, then make a change and save the document. If you define a named stylesheet and use that, you would probably have to deliver this along with your cdf, but I'm not sure whether the CDF-Player does actually allow the usage of such stylesheets, at least it misses the menu entries to install them. –  Albert Retey Mar 20 '12 at 11:00
    
@Vitaliy Kaurov Is there a difference between the straightforward saving a notebook as CDF via File/Save As and choosing CDF on one hand, and saving as standalone via File/CDF Export/Standalone (This is in Mma9.01) on the other hand? –  Alexei Boulbitch Jun 28 '13 at 15:04
add comment

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.