Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2319

Re: How to select all cells in a notebook with specific property?

From John Fultz <jfultz@wolfram.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to select all cells in a notebook with specific property?
Date 2011-05-12 11:26 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iqgg4u$f0h$1@smc.vnet.net> (permalink)

Show all headers | View raw


On Thu, 12 May 2011 04:34:12 -0400 (EDT), Nasser M. Abbasi wrote:
> Hello;
>
> Sometimes I change some cells in a notebook to closed
> (i.e. cell->Cell property->) and then deselect the Open
> property.
>
> I find this useful, when final report is done, and I do
> not need to print some cells.
>
> But when I go back and want to make some edits, I find
> I have to go select all those cells again using the
> mouse, one by one, so I can change the property again
> to open so I can see the content. The cells can be
> in different locations in the notebook.
>
> Is there a way to tell Mathematica to select all cells
> that are say closed, so that I do not have to keep
> doing this manual step each time? It gets tiring
> if there are many cells whose property I want
> to flip.   Like Cell->SelectAll-> or such.
>
> I am using V 8.0.01
>
> thanks
> --Nasser

A somewhat obscure but effective work-saving method for what you want to do:

* Select all cells.
* Open the option inspector with scope set to "selection".
* Find the CellOpen option (or whichever is the option you used).
* Click to the left of the option.  You'll see an X appear.
* Click again, on the X.

This procedure will effectively clear any custom settings of the option value
for all selected cells.  So if you've set the option on some cells where you
don't want the value reset, you'll have to make sure those are not selected.

Sincerely,

John Fultz
jfultz@wolfram.com
User Interface Group
Wolfram Research, Inc.

Back to comp.soft-sys.math.mathematica | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: How to select all cells in a notebook with specific property? John Fultz <jfultz@wolfram.com> - 2011-05-12 11:26 +0000
  Re: How to select all cells in a notebook with specific property? "Nasser M. Abbasi" <nma@12000.org> - 2011-05-13 10:28 +0000
    Re: How to select all cells in a notebook with specific property? Albert Retey <awnl@gmx-topmail.de> - 2011-05-14 07:15 +0000

csiph-web