Is it possible to collapse all cell groups in the current notebook? I tried
nb = SelectedNotebook[];
SelectionMove[nb, Before, CellGroup]
FrontEndTokenExecute["OpenCloseGroup"]
but nothing changes.
|
Is it possible to collapse all cell groups in the current notebook? I tried
but nothing changes. |
|||
|
|
Try:
Or:
The token may be found in Tokens Related to the Cell Menu in the help browser. This specific operation may be found under the Scope section of the |
|||||||||||
|
|
You could use
although it only works if the notebook starts with a cell group, and not with a lone cell. (The menu item behaves the same way.) If you know there are
|
|||
|