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

MathGroup Archive 2006

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

Search the Archive

RE: Need good reference for writing Stylesheets

  • To: mathgroup at smc.vnet.net
  • Subject: [mg68814] RE: [mg68794] Need good reference for writing Stylesheets
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sat, 19 Aug 2006 00:41:35 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Terry,

The book "The Beginner's Guide To Mathematica" by Jerry Glynn & Theodore
Gray has a short chapter 'What exactly are styles, style sheets, and style
environments?'.

Basically, bring up a new blank notebook. Use Menu -> Format -> Edit Style
Sheet and then 'Edit Shared Style Sheet'. But then immediately use SaveAs to
save under your new style sheet name and not modify the existing Default
style. I think it should be saved in your private
Mathematica\SystemFiles\FrontEnd\StyleSheets folder so Mathematica will find
it and list it in the StyleSheets menu.

Then if you examine the style sheet it will almost be self-explanatory. You
can select the various cell types and either bring up the underlying
expression (Shift-Ctrl-E) and edit them, or use the Format Menu.

If you want to add new cell styles you can copy and paste one of the
existing ones and then change its name and edit it.

The one tricky thing is if you want to add new cell types. You should add
these later in the style sheet, in what might not seem the logical order, so
that they won't change the standard order of the 'hot keys'. Mathematica
automatically adds hot keys (Alt-1, Alt-2, etc.) in the order it encounters
the cells. It is very bad form to change these because if a user is used to
using them he doesn't want to switch to an entirely new set with a new style
sheet.

I put up a style sheet at my web site that adds a number of new cell types,
changes the style of cells, and adds GroupOpenCloseIcons to the various
section headings. It is more to my taste of a useful style sheet. You could
look at that as an example.

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/

From: TerryH [mailto:tharter at attglobal.net]
To: mathgroup at smc.vnet.net


Hi All,
   I was wondering if there is a good reference for writing/constructing
a new style sheet.  Thanks to all who reply.
.....Terry



  • Prev by Date: Re: Re: distance function
  • Next by Date: Re: NonlinearFit + Sums
  • Previous by thread: Need good reference for writing Stylesheets
  • Next by thread: Re: Need good reference for writing Stylesheets