Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to add a title to a cell and then collapse it?

917 views
Skip to first unread message

Aaron Fude

unread,
Jun 23, 2008, 2:52:28 AM6/23/08
to
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

Jean-Marc Gulliet

unread,
Jun 24, 2008, 3:26:55 AM6/24/08
to
Aaron Fude wrote:

Have you read and followed the document titled, "Notebooks as Documents"?

tutorial/NotebooksAsDocuments

http://reference.wolfram.com/mathematica/tutorial/NotebooksAsDocuments.html

Regards,
-- Jean-Marc

roby....@gmail.com

unread,
Jun 24, 2008, 3:30:22 AM6/24/08
to

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

Aaron Fude

unread,
Jun 24, 2008, 3:32:48 AM6/24/08
to
On Mon, Jun 23, 2008 at 6:21 AM, Jean-Marc Gulliet <
jeanmarc...@gmail.com> wrote:

> Have you read and followed the document titled, "Notebooks as Documents"?
>
> tutorial/NotebooksAsDocuments


Thanks. I am completely unable to figure it out. When I try to add a
subsection (Alt-Enter) it instead adds another section below and I am back
at square one. I am not able to produce a section with two or
omresubsections - one for title and one for the rest of the stuff.

Aaron Fude

unread,
Jun 24, 2008, 6:17:11 AM6/24/08
to

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?

Murray Eisenberg

unread,
Jun 25, 2008, 6:27:57 AM6/25/08
to
Alt-Enter??

Try moving below the Section cell. Then use Alt-5 to specify the
Subsection style and start typing the Subsection title, or whatever.
NOW if you type Alt-Enter, even before moving below that Subsection
cell, you'll create another Subsection cell.

Alt-Enter just creates another cell of exactly the same Style as the one
you're currently in.

Aaron Fude wrote:
> On Mon, Jun 23, 2008 at 6:21 AM, Jean-Marc Gulliet <
> jeanmarc...@gmail.com> wrote:
>
>> Aaron Fude wrote:
>>

>> Have you read and followed the document titled, "Notebooks as Documents"?
>>
>> tutorial/NotebooksAsDocuments
>
>
> Thanks. I am completely unable to figure it out. When I try to add a
> subsection (Alt-Enter) it instead adds another section below and I am back
> at square one. I am not able to produce a section with two or
> omresubsections - one for title and one for the rest of the stuff.
>
>> http://reference.wolfram.com/mathematica/tutorial/NotebooksAsDocuments.html
>>
>> Regards,
>> -- Jean-Marc
>>
>
>

--
Murray Eisenberg mur...@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

Aaron Fude

unread,
Jun 25, 2008, 6:29:03 AM6/25/08
to
Believe it or not, this is just not working for me. I'm fine creating
titles, sections, subsections, but I am not able to produce any kind of
hierarchy, such as combining a subsection with an input into a group then
putting two such groups inside a section.

I'm trying to have to following structure:

| TITLE
| __________________
| | | Section I
| | | Input section
| __________________
| | | Section II
| | | Input section
I would be very appreciate if I am able to figure this out!
On Tue, Jun 24, 2008 at 10:35 AM, Murray Eisenberg <mur...@math.umass.edu>
wrote:

> Alt-Enter??
>
> Try moving below the Section cell. Then use Alt-5 to specify the
> Subsection style and start typing the Subsection title, or whatever. NOW if
> you type Alt-Enter, even before moving below that Subsection cell, you'll
> create another Subsection cell.
>
> Alt-Enter just creates another cell of exactly the same Style as the one
> you're currently in.
>
> Aaron Fude wrote:
>
>> On Mon, Jun 23, 2008 at 6:21 AM, Jean-Marc Gulliet <
>> jeanmarc...@gmail.com> wrote:
>>
>> Aaron Fude wrote:
>>>

Murray Eisenberg

unread,
Jun 25, 2008, 6:29:25 AM6/25/08
to
Are you sure that the default value of Automatic is set for the Selected
Notebook, or Global, option CellGrouping?

magma

unread,
Jun 25, 2008, 6:33:11 AM6/25/08
to
On Jun 24, 12:17 pm, Aaron Fude <aaronf...@gmail.com> wrote:
> On Jun 24, 3:30 am, roby.no...@gmail.com wrote:
>
>
>
> 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).

Bill Rowe

unread,
Jun 26, 2008, 4:43:50 AM6/26/08
to
On 6/25/08 at 6:25 AM, aaro...@gmail.com (Aaron Fude) wrote:

>Believe it or not, this is just not working for me. I'm fine
>creating titles, sections, subsections, but I am not able to produce
>any kind of hierarchy, such as combining a subsection with an input
>into a group then putting two such groups inside a section.

>I'm trying to have to following structure:

>| TITLE
>| __________________
>| | | Section I
>| | | Input section
>| __________________
>| | | Section II
>| | | Input section

>I would be very appreciate if I am able to figure this out! On Tue,

This makes it clear what you want but not entirely clear what
you are starting from. I will assume you have something like:

__________________
| Section I
| | section 1 stuff
__________________
| Section II
| | section 2 stuff


If so, click in the area above Section 1 so you can create a new
cell above that section. Enter your title then select the cell
by clicking on the cell bracket to the right. Now go to the
menubar and select Format->Style->Title. That will change the
selected cell to a Title and all of the cells below will become
subcells to that cell.

0 new messages