Subject: [mg89972] Re: How to add a title to a cell and then collapse it?

From: magma <maderri2 at gmail.com>

Date: Wed, 25 Jun 2008 06:29:39 -0400 (EDT)

References: <g3nh7c$db$1@smc.vnet.net> <g3q7qe$ap7$1@smc.vnet.net>

On Jun 24, 12:17 pm, Aaron Fude <aaronf... at gmail.com> wrote:
> On Jun 24, 3:30 am, roby.no... at gmail.com wrote:
>
>
>
> > On 23 Jun., 08:52, Aaron Fude <aaronf... at gmail.com> wrote:
>
> > > Hi,
>
> > > I can't figure out how to add a title to a cell and then collapse it.
>
> > > I start a new notebook and then start working in the In-Out mode, but
> > > then I want to be able to take my blocks, give them a title and
> > > collapse them. How does one do it? Nothing worked when I tried to
> > > follow documentation.
>
> > > Thanks in advance!
>
> > > Aaron
>
> > Hi Aaron,
>
> > input to cells, one with the title and one with the body.
> > select both brackets on the right display side belonging to your
> > cells, group them together pressing <CTRL><SHIFT><>G>, doubleclick on
> > the inner cell bracket which should stay visible, the other one will
> > hide.
>
> > regards robert
>
> Thanks Robert. Now here is what doesn't work for me. When I combine
> two sets of cells like that into "Sections" and then try
> <CTRL><SHIFT>G to combines the two "Sections" into a "Chapter", I
> instead get one "Section" with four cells. Is that the intednded
> behavior?
First: I suggest you select your nb and click on menu Window -> Show
toolbar
so you can see/set clearly the style of a cell.
Second: if you wish to collect the sections under a higher cell, you
must first create the cell (above the 2 sections).
This cell should have a higher hierarchy , say subsubtitle or higher
(look in the drop down menu that you got with the first step.
So : click above the 2 sections, select the style from the drop down
menu and create a higher cell.
Now you can use ctrl-G selecting the higher cell and the 2 sections.
I also find useful most of the time to select Cell -> Grouping ->
Automatic Grouping from the main menu bar.
In this way the Grouping is done by Mathematica for you (a higher cell will
group with the lower ones below).