For Programmers: Free Programming Magazines  


Home > Archive > Mathematica > July 2007 > Re: Re: Embedded Style Sheets









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Re: Embedded Style Sheets
Murray Eisenberg

2007-07-25, 4:28 am

OK, that clarifies things -- although the procedure is unbelievably
complicated (WRI please take note!).

That you have to quit Mathematica lest all subsequently opened notebooks
had that same newly created style sheet is a bummer.

John Browne wrote:
> Apologies for the lack of clarity. I'll try again. I think it will be
> clearer with a specific example. This is for Version 6 of course.
> However I must emphasize that I am a real novice in this area
> (otherwise I wouldn't have asked the original question!) Caveat
> Emptor! I am really looking forward to John Fultz's promised Help
> Browser tutorial(s) on these matters.
>
> CREATE YOUR OWN STYLESHEET
> 1 Open a new notebook. Call it New.nb
> 2 Choose Format : Edit Stylesheet ...
> The stylesheet notebook for New.nb appears titled "Private Style
> Definitions for New.nb". There is one cell entitled "Inheriting base
> definitions from stylesheet "Default.nb"".
> 3 Click on the "Default.nb" link.
> The Default.nb stylesheet opens.
> 4 Make a copy of this stylesheet, saving it as MySS.nb.
> 5 Open the Option Inspector and set the upper left menu to "MySS.nb".
> 6 Choose Notebook Options : File Options. Then tick Editable and
> Saveable.
> You will now note that the stylesheet title changes to "MySS.nb style
> definitions".
> This is your new stylesheet. Note that it inherits its base
> definitions form Core.nb.
> 7 Edit the cell style definitions as you wish to incorporate your
> own styles. Save.
>
> EMBEDDING YOUR OWN STYLESHEET
> 1 Open a notebook in which you want to embed MySS.nb, say MyNB.nb
> 2 Choose Format : Edit Stylesheet ...
> A notebook "Style Definitions for MyNB.nb" opens with title "Private
> Style Definitions for MyNB.nb"
> 3 Delete all the cells in "Style Definitions for MyNB.nb"
> 4 Open MySS.nb, copy all the cells, and paste them into "Style
> Definitions for MyNB.nb"
> 5 Save MyNB.nb and you're done.
>
> (A possible point of confusion: Directly after following through this
> process (on a Mac), I found that any new notebook opened by
> Mathematica had MySS.nb as stylesheet. I had to quit Mathematica to
> stop this behaviour).
>
> John
>
>
> On 24/07/2007, at 12:22 AM, Murray Eisenberg wrote:
>
>
>


--
Murray Eisenberg murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com