MathGroup Archive 2003

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

Search the Archive

Re: Cell grouping rules

  • To: mathgroup at
  • Subject: [mg40208] Re: Cell grouping rules
  • From: rolf at (Rolf Mertig)
  • Date: Tue, 25 Mar 2003 14:51:20 -0500 (EST)
  • References: <b5p01s$7q9$>
  • Sender: owner-wri-mathgroup at

Oliver Friedrich <oliver.friedrich at> wrote in message news:<b5p01s$7q9$1 at>...
> Hallo,
> I have a cell containing an expression. Evaluating this produces some 
> graphical output for an animation. After evaluation my cell grouping is 
> (expression,graphic,graphic,...). But I want to have it like (expression)
> (graphic,graphic,...). So the expression and the output are not grouped 
> together.
> I found out, that there are options dealing with grouping cells, but how is  
> it working exactly. There's an option called "CellGroupingRules" which 
> points to something like a style ("GraphicsGrouping,...). Where are these 
> styles defined and how can I define my own ones.
> Thank you
> Oliver Friedrich
You could either change the option default
of the StyleData["Input"] in the Default.nb "stylesheet", or, since
this is not really
portable, you could do (for not too big notebooks):
$Pre = (SelectionMove[EvaluationNotebook[], All, Notebook]; 
   NotebookGet[EvaluationNotebook[]] /. Cell[a_, "Input", b___] :> 
     Cell[a, "Input", 
              Sequence @@ 
                  CellGroupingRules -> "NormalGrouping"]]]; #) &;

or, you modify my posting
which is also kind of a grouping.

Hopefully a future version of Mathematica will have complete dynamic
style property manipulation through the kernel, maybe with  "session
beans" like in Java.

Rolf Mertig
Mertig Consulting

  • Prev by Date: RE: proper way to manipulate lists?
  • Next by Date: Re: proper way to manipulate lists?
  • Previous by thread: Cell grouping rules
  • Next by thread: Ellipse Drawing