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.

Update

This looks now like it was a bug in Mathematica version 8, because everything works as expected - at least for this minimal example - in version 9. (As an aside, I couldn't seem to find the Creative stylesheets using the menu interface, although they're still installed at "/Applications/Mathematica.app/SystemFiles/FrontEnd/StyleSheets/Creative/" (on Mac OS X). Perhaps I accidentally did something to hide them...

I finally tracked down a weird problem I was having with Export and other image-related operations to the type of stylesheet I was using. Consider the same expression evaluated in three different notebooks:

ImageDimensions[Rasterize["Mathematica"]]

enter image description here

You can see that, with the fancier stylesheets, the graphics of the notebook have interacted with the graphics produced by the Mathematica expression.

Is there a work round for this?

Here's another example - exporting a video using the Creative/PrimaryColor stylesheet.

grafik = Manipulate[ 
  Graphics3D[{Blue, Cuboid[{0, 0, 0}, {1, 1, 1}]}, Boxed -> False, 
   SphericalRegion -> True, 
   ViewPoint -> {12 Cos[t],  12 Sin[t], 6 Sin[t]}],  {t, 0 , 2 Pi, 
   Pi/24}]
Export["/tmp/grafix.mov", grafik]

stylesheet problems 2

When the resulting movie is viewed in a movie player, you can see the orange outline and the original graphical frame:

stylesheet problems 3

share|improve this question
2  
Maybe someone here from WRI staff can comment if this bug is fixed in the development version? –  Rolf Mertig Sep 3 '12 at 12:50
    
This looks now like it was a bug in Mathematica version 8, because everything works as expected - at least for this minimal example - in version 9. (As an aside, I couldn't seem to find the Creative stylesheets using the menu interface, although they're still installed at "/Applications/Mathematica.app/SystemFiles/FrontEnd/StyleSheets/Creative/" (on Mac OS X). Perhaps I accidentally did something to hide them... –  cormullion Dec 17 '12 at 12:10
    
This question is useful for those still using v8 (I've had the above happen to me several times, although I've not been able to replicate it on demand). You can just make a short note at the top of your post saying that it has been fixed in version 9 (basically, your comment above). Perhaps also add the bugs tag and use a quote block to highlight it and differentiate it as a notice :) –  rm -rf Jan 11 '13 at 19:58
add comment

1 Answer

Here's a workaround for your first example. I don't know how robust it is, or if there are any nasty side effects.

Block[{StyleDefinitions},
 StyleDefinitions /: StyleDefinitions -> _ = StyleDefinitions -> "Default.nb";
 Rasterize["Mathematica"]]
share|improve this answer
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.