Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Fwd: Style sheets in 6.0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76405] Fwd: [mg76305] Style sheets in 6.0
  • From: "Lev Bishop" <lev.bishop+mathgroup at gmail.com>
  • Date: Mon, 21 May 2007 06:07:34 -0400 (EDT)
  • References: <200705190842.EAA21185@smc.vnet.net>

On 5/19/07, David Park wrote:
> Mathematica 6.0, from what I've seen so far, was done with a lot of style.
> The folks at WRI deserve great credit, not only for the major features such
> as dynamic interaction and graphics but also in many of the smaller changes.
>
> An example is the great functionality of Grid over the old GridBox.
>
> But one exception is style sheets. There is minimal documentation and what
> there is appears to be incorrect.
>
> I could find no way to modify an old 5.2 style sheet so the new syntax
> coloring feature worked.
> Adding ShowAutoStyles->True and ShowSyntaxStyles->True to Input cells did
> not work.

There are also options of the form:
"HighlightSyntaxErrors"->True
"HighlightGlobalSymbols"->True
and so on, which then activate:
"SyntaxErrorStyle"->{FontColor->RGBColor[...]}
"CommentStyle"->{FontColor->...}

Do you have those set for the cells in question?

> Nor can I understand how to create a new style sheet from scratch, or as a
> modification of the Default.nb style.
> When I brought up the Default.nb notebook and saved it under a new name, I
> could not edit the styles.

Heh. You need to change the stylesheet used by your copyofdefault.nb
from  StyleSheetFormatting while you edit it.
That stylesheet sets Editable->False.

To make that clear, this is the stylesheet that is being used while
you edit the other stylesheet.

> Also, when I started with a new notebook in the Default style and tried to
> edit the style sheet I was not given the choice of bringing up the shared
> style sheet, editing it, and saving it under a new name. There was no choice
> menu. It appears that all I could do was import a private style sheet to the
> notebook.

No, what you do instead is say to edit the stylesheet. Then you click
on the "Inheriting  base definitions from..." cell, which opens up the
parent stylesheet. Then you can "save as" that stylesheet as a private
copy. Or even save it over the original stylesheet if you want to make
your change permanently. (Again, the StyleSheetFormatting stylesheet
sets Savable->False, so you won't do that by accident).

Lev


  • Prev by Date: Re: Re: Re: 6.0 not seeing style sheets in $InstallationDirectory/SystemFiles/FrontEnd/StyleSheets
  • Next by Date: Re: Mathematica 6 review [first impressions]
  • Previous by thread: Style sheets in 6.0
  • Next by thread: Re: Style sheets in 6.0