MathGroup Archive 2009

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

Search the Archive

Re: Stylesheets

  • To: mathgroup at
  • Subject: [mg96699] Re: Stylesheets
  • From: dbreiss at
  • Date: Sat, 21 Feb 2009 19:39:01 -0500 (EST)
  • References: <gnm1nl$hg7$>

if nb is the NotebookObject of the notebook that you want to embed
these style definitions in then execute

SetOptions[nb, StyleDefinitions->Notebook[{...}]  ]

will do the trick.


On Feb 20, 5:47 am, Simon <simonjty... at> wrote:
> Hi,
> I've written some cascaded style sheets for some of my notes.
> If I want to distribute the notebooks to someone else I have two
> options:
> 1.  Give them my set of style sheets and have them 'install' them...
> 2.  Put the style definitions into the notebook.
> Now option 1 is not always so easy to explain to people.
> The only way I know to do option 2 is to open up the notebook as
> text... eg in a text editor and replace the term StyleDefinitions->"MySty=
le.nb" with StyleDefinitions->Notebook[{...}]  where the ... is
> all of the StyleData objects contained in "MyStyle.nb".
> Admittedly, this is just a simple copy-paste action,  but it seems
> rather inelegant  (and tiresome if you have to do it too often).
> Finally to my question:
> Is there an equivalent frontend procedure?
> Cheers,
> Simon

  • Prev by Date: Re: Dynamic Module with Trigger
  • Next by Date: Re: Stylesheets
  • Previous by thread: Stylesheets
  • Next by thread: Re: Stylesheets