MathGroup Archive 2011

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

Search the Archive

Re: Execute on notebook creation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg117168] Re: Execute on notebook creation
  • From: David Annetts <david.annetts at iinet.net.au>
  • Date: Thu, 10 Mar 2011 16:00:56 -0500 (EST)

Hi Achilleas,

It probably is possible from the menu, but I create new notebooks with 
pre-docked cells using a palette.  I'd rather not play with this stuff.

Essentially, it's a call to CreateDocument[] in which you can do pretty 
much what you want.

D.

On 10/03/2011 19:06, Achilleas Lazarides wrote:
> Hi,
>
> I'd like to be able to have newly created notebooks have a specific set
> of docked cells. That is, if I select File->New->Notebook, I would like
> the resulting notebook to have those docked cells.
>
> Currently, I have a palette with a set of buttons for tools I wrote and
> use often, and one of them takes the current notebook and adds those
> docked cells.
>
> Is there some way of having this occur automatically? eg, is there a way
> to execute a given piece of code on creating a new notebook (so I could
> run SetOptions[SelectedNotebook[],DockedCells->{blah}] automatically
> every time)?
>
> Thanks in advance.
>


  • Prev by Date: Re: Algebraic substitution with PolynomialReduce
  • Next by Date: Option Inspector Implementation
  • Previous by thread: Execute on notebook creation
  • Next by thread: Re: Execute on notebook creation