MathGroup Archive 2000

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

Search the Archive

Selecting cells

  • To: mathgroup at smc.vnet.net
  • Subject: [mg22976] Selecting cells
  • From: "Tom De Vries" <tdevries at shop.westworld.ca>
  • Date: Sat, 8 Apr 2000 14:44:45 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello all,

I had posted this message about a week ago but I guess I worded it badly,
since I didn't get a response.  I think what I am asking about is possible,
so I will try again.  Forgive the nagging!

Suppose I have a notebook that I can refer to as fred

The notebook is set up something like this

Section Heading
text
text
Subsection Heading
text
text
text

Section Heading
text
Subsection Heading
text
text

Section Heading
text
Subsection Heading
text

etc.

Each Subsection heading cell has a cell tag of "answer"
The following works fine, selecting all the subsection heading cells

NotebookFind  [fred, "answer", All, {CellTags}]

So, the following cells get selected in my notebook ,indicated here with an
asterisk


Section Heading
text
text
*Subsection Heading
text
text
text

Section Heading
text
*Subsection Heading
text
text

Section Heading
text
*Subsection Heading
text

Now, I would like to be able to extend the selection so it is as shown below
(again with selected cells indicated by an asterisk)

Section Heading
text
text
*Subsection Heading
*text
*text
*text

Section Heading
text
*Subsection Heading
*text
*text

Section Heading
text
*Subsection Heading
*text

I tried    SelectionMove[fred, All, CellGroup]  thinking it would select the
subsection cell group, but that did not work.

Does anyone have any ideas what I have done wrong, or how I might go about
doing this?

Thanks for any help you might provide,

Sincerely,
Tom De Vries
Edmonton, Alberta
Canada



  • Prev by Date: Re: making a column into a list
  • Next by Date: Re: Help please!
  • Previous by thread: Re: 'strange' simplification problems - why?
  • Next by thread: why so long?