Tell me more ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have a stylesheet that works as expected in Mathematica 8. It does not work as expected in Mathematica 9.

In the stylesheet I have set FontColor to RGBColor[0.501961, 0, 0] for ItemParagraph. DisplayFormula and InlineFormula have FontColor set to Automatic (I've also tried Inherited).

When I press ctrl+( to start a formula from within an ItemParagraph the color is the same as for my Text cell (black). The FontColor option for Text is Automatic.

Interesting behavior. When I type esc+intt+esc the font color is RGBColor[0.501961, 0, 0] and it creates an inline formula region (or is it displayformula?). When I type ctrl+/ it creates an inline formula region but the color is black.

I have both Mathematica 8 and Mathematica 9 installed and the behavior does not exist on Mathematica 8.

share|improve this question
I don't have 9 installed but there has been some discussions about the default stylesheet changing in 9. I'd guess that this change is the source of the problem. – Mike Honeychurch Dec 18 '12 at 1:00
That's certainly possibly the reason for the behavior. Any ideas on what I would change in the Defaul.nb? – YequalsX Dec 18 '12 at 1:02
Unfortunately no because I do not know what changes were made to the default style in 9. However you could try making your style sheet inherit from Default_8.nb instead of Default.nb. I believe -- stand corrected -- that in 9 Default_8.nb is the V8 default stylesheet. – Mike Honeychurch Dec 18 '12 at 1:05
fyi, to change to V8 style sheet in V9, please see mathematica.stackexchange.com/questions/15918/… – Nasser Dec 18 '12 at 2:38
I can't reproduce the behavior you described in V9. The color of the InlineFormula in an ItemParagraph cell is the same with the stylesheet setting (RGBColor[0.501961, 0, 0]). – Silvia Dec 19 '12 at 3:28
show 1 more comment

1 Answer

up vote 2 down vote accepted

In Mathematica 8 Default.nb has the FontColor option in DisplayFormula set to Automatic. In Mathematica 9 this is set to GrayLevel[0.2]. I have not figured out a way to change this to Automatic but this is the reason for the strange behavior.

share|improve this answer
(+1) Does this work: CurrentValue[{StyleDefinitions, "DisplayFormula", "FontColor"}] = Automatic? – kguler Dec 18 '12 at 7:26
No. In the local definitions for FontColor for DisplayFormula I can set it to the color I want but this is over ridden by Default.nb. My stylesheet inherits from Default.nb. This appears to be a bug in Mathematica 9. – YequalsX Dec 18 '12 at 15:45

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.