MathGroup Archive 2009

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

Search the Archive

Re: Re: Modifying Default Stylesheet?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg103445] Re: [mg103417] Re: Modifying Default Stylesheet?
  • From: "David Park" <djmpark at comcast.net>
  • Date: Mon, 21 Sep 2009 19:28:00 -0400 (EDT)
  • References: <1673653.1253354161252.JavaMail.root@n11> <h94vkf$ngt$1@smc.vnet.net> <9961972.1253529339163.JavaMail.root@n11>

It's not that difficult.

1) You probably don't want to proliferate private style sheets. 
2) If a notebook uses a style sheet that has been deleted or moved out of
the style sheet paths then it will balk and use default styles.
3) You can update and perfect a style sheet all you want and old notebooks
that use it will adapt to it.
4) If you send a notebook to someone else who doesn't have the style sheet
you will have to embed it into the notebook - or send them the style sheet.

I don't use the Install button because, frankly, I don't know precisely what
it does. But John Fultz is the authority on this, not I, and perhaps that is
the preferred way. I have two places to keep style sheets. One is in my
private SystemFiles and the other place is in application files. They are
both on the standard Mathematica path for finding style sheets. So I just
put them there, edit them when necessary and save them with SaveAs. I never
have any trouble.


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  



From: AES [mailto:siegman at stanford.edu] 

In article <h94vkf$ngt$1 at smc.vnet.net>,
 "David Park" <djmpark at comcast.net> wrote:

> 1) Open a notebook with the Default style sheet.
> 
> 2) Use Menu -> Format -> Edit Style Sheet... and edit it.
> 
> 3) Save the new style sheet under a NEW name using SaveAs (and if you
modify
> it in the future you still have to use SaveAs and not just Save.) Save it
in
> your private ($UserBaseDirectory)
> Mathematica/SystemFiles/FrontEnd/StyleSheets folder.
> 
> 4) It should now appear in your Menu -> Format ->  StyleSheet menu
listing.


David, thanks -- but still lots of questions:

1)  There's an "Install" button in the Stylesheet editing window, and 
also a File >> Install >> Stylesheet command in the front end File menu 
(on my Mac V7 anyway). b

Both of these look like they do the same thing, namely, auto-install the 
(maybe edited) style associated with some selected notebook as a new, 
named stylesheet (SS).  

You don't mention either of these.  What are they all about?

2)  Suppose I follow your steps 1) and 2) above (which I generally know 
how to do).  

Can I then save the edited result as a temporary notebook (somewhere, 
under some name), and then install it as a _replacement_ for my existing 
Default SS?  -- meaning that once I've done this, NO new name will 
appear in the Menu -> Format ->  StyleSheet menu listing; and all my 
previous AND new working notebooks will now open with this new, modified 
Default style?

(This is what I'd really like to do.)

3)  Suppose I follow your directions 1) thru 4) above literally and save 
my first modified SS with the name, say, MyDefault1, so that this new 
name now appears in the Menu -> Format ->  StyleSheet menu listing; and 
I also make this my default SS per your steps 5) thru 8) below

Then, after I use this as my default SS for a while, I decide I want to 
make some further mods to MyDefault1.  So, do I now I have to start with 
MyDeFault1; follow steps 1) thru 8); and thereby create a new default SS 
named MyDeFault2 SS?  (which I'll have to apply retroactively to all my 
earlier notebooks, the first time I re-open them.)_

You see where this is going . . . 

Thanks again.  


==================================
> To make this your default new notebook style sheet:
> 
> 5) Use the Options Inspector, Shift-Ctrl-O.
> 6) Set "Show option values" to "Global Preferences".
> 7) Go to Global Options -> File Locations.
> 8) Click the far right box on DefaultStyleDefinitions. Browse to your new
> style sheet and open it.
> 
> You can reset to the Default style sheet for new notebooks by clicking the
> green X on the left.
> 
> And you can switch a particular notebook back to the Default style sheet
by
> using Menu -> Format -> StyleSheet.
> 
> 
> David Park
> djmpark at comcast.net
> http://home.comcast.net/~djmpark/  
> 
> 
> From: AES [mailto:siegman at stanford.edu] 
> 
> I'd like to modify the default stylesheet that will be used for all my 
> routine Mathematica work, and that will become the default or initial 
> stylesheet for all new notebooks that I create.
> 
> (This is in version 7 for Mac, and the modifications will be generally 
> minor changes in text formats and appearance.  I'll probably want to 
> make additional mods to some of these from time to time.)
> 
> My basic question is, can I do this by editing the "Default" stylesheet 
> that is at the top of the list that appears when you select the Format 
> >> Stylesheet menu command?  (I'd prefer to do this, for simplicity.) 
> 
> Or should I do it by creating and installing a new "MyStylesheet" that 
> will show up added to the bottom of that list?
> 
> More specifically:
> 
> 1)  If I modify the Default stylesheet, will those changes "stick" 
> through future upgrades, at least in the v7.0, v7.1, v7.2 ...  hierarchy?
> 
> And will changes in Default cascade down through all the Article, Book, 
> etc stylesheets that appear below Default in that list?  Or do all of 
> those, including Default, inherit separately from some level that's  
> above Default?
> 
> And if I make or add mods to Default, what is the Install process that I 
> need then go through each time?
> 
> 2)  If I instead create and install a new "MyStylesheet", how do I make 
> it be the default stylesheet for all newly created notebooks?




  • Prev by Date: Re: NSolve vs. N[Solve ]
  • Next by Date: Using Mathematica 5.2 and 7.01 with separate settings
  • Previous by thread: Re: Modifying Default Stylesheet?
  • Next by thread: Re: defined