The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
0answers
75 views

How to expand and collapse multiple cells inside a frame while keeping all in a single frame

I am trying to create a framed cell around cells that collapse and expand. Mr. Wizard's answer below almost does it, however, when the cells are collapsed I lose the lower frame border. I'd like to ...
5
votes
1answer
199 views

How to construct a tree from a notebook?

Given the notebook itself we can think of it as a tree graph: the root vertex is the empty notebook itself, the headers of cell groups are vertices, and all other cells as leaf vertices. I'd like to ...
3
votes
0answers
40 views

How to inherit indentation in cell groups?

In my notebook the text cells "stick out" like this: Instead, I'd like the to be left aligned (plus some margin) with the cell they are grouped under... How can I achieve this from the stylesheet? ...
2
votes
1answer
47 views

How to programatically remove an option for all cells?

I'm trying to remove the CellGroupingRules options in every cell in a notebook. Eventually I opened the Notebook in a text ...
5
votes
1answer
81 views

How to make a cell highlight on mouse down?

When a cell has WholeCellGroupOpener set to True, it becomes a clickable button that toggles its cell group open and closed. How can I make the cell change color ...
6
votes
2answers
145 views

How to group cell type A under cell type B?

My notebook's groupings for "Subsection" and "SubitemNumbered" are broken: And by broken, I mean I wanted it to automatically group like this which I did manually (with lots of control+shift+g) ...
0
votes
1answer
78 views

How to implement specific cell grouping behavior?

Here's the situation in my Mathematica notebook: I'd like the bottom cell to be grouped with the cells above it. Here are those same cells toggled into code: ...
5
votes
1answer
101 views

Continuous background color of adjacent cells

I'm trying to make continuous blocks of cells so that their background colors are the same, but without breaks of white space between them. E.g. After some recent digging, I found the option "Show ...
1
vote
1answer
61 views

Table of sections with CellPrint

I am trying to produce a table of sections with each section containing a DynamicModule. My two questions are: (1) How do I produce grouped sections that are folded ...
3
votes
0answers
61 views

How can I programmatically ungroup cells [closed]

I have a series of ~500 notebook files (created by a colleague), which somehow have had their cell groups modified from the default (perhaps accidentally by said colleague). In order to extract the ...
0
votes
0answers
18 views

Creating Group Open/Close Button [duplicate]

So I have a mathematica file with calculations and explanations seperated by groups into different sections. I want to know how I can add that open/close traingle button for Each group. This is the ...
0
votes
1answer
42 views

Do ShowGroupOpener and TitleGrouping suffice to control cell grouping?

[ Running Mathematica 9.0.1.0 under Ms Win XP Ver 5.1.2600 ] Here I group toghter ;-) some relate questions about cell grouping, because I presume that they all pertain to the same cell options (or ...
2
votes
0answers
132 views

Button to run a group of cells

I'm not sure how to create a minimal working example since I don't know how to post code that appears as cells but hopefully my question is simple enough that it won't be necessary. My apologies all ...
2
votes
1answer
96 views

Print notebook with all cells opened

I have a long Mathematica notebook where some cells on multiple levels are closed for clarity. When I export the notebook as a PDF via Print or ...
2
votes
1answer
124 views

Open parent cell groups of selected cell

I wrote a small script for a palette, which allows me to highlight a specific cell in a notebook by using SelectionMove[mycell, All, Cell]. The cell is selected as ...
2
votes
1answer
43 views

Inserting a closed section

Is there a way to insert a closed section? I know in .m files if you do (* ::Section::Closed:: *) and open the .m file using system editor, a closed section will be ...
5
votes
1answer
109 views

Is it possible to Print into a collapsable CellGroup?

During rather long computation I have intermediate steps Printed with useful information which should be collected for possible use in future inside of the ...
3
votes
2answers
156 views

How to make the GroupOpeners visible in the SlideShow regime?

I am preparing a presentation on Mathematica and realized that though I made the GroupOpeners visible in the working regime (through the OptionInspector), they are invisible in the regime of the ...
4
votes
1answer
149 views

How to copy groups of cells with NotebookWrite?

I'm trying to use: NotebookWrite[nb, NotebookRead[EvaluationNotebook[]]; to copy cells from the EvaluationNotebook[] to a new ...
2
votes
1answer
138 views

WholeCellGroupOpener and Hyperlinks

My problem is: I would like to activate WholeCellGroupOpener on a cell containing hyperlinks. But when I do that, the hyperlinks are no longer active. Is there a way to change the order of the two, so ...
1
vote
1answer
107 views

Evaluation of notebook from chosen cell to end

There is option to evaluate the complete notebook but I wanted to know if its possible to evaluate notebook from some desired cell to end or some other desired cell following?
1
vote
2answers
306 views

How to delete the current group-cell using the keyboard?

Related to Delete the current notebook cell using the keyboard. Difference is that here I want to delete the whole group of cells, including the original Input cell and all Print, Output, Message etc. ...
8
votes
1answer
126 views

How can I get the style of selected cells?

How can I get the style such as Input, Text, Code, etc., of a selected cell? If a group of cells is selected, how can I get styles of all the cells in the group?
4
votes
2answers
262 views

Updating the format style of input cells from an older/'pre-styled' notebook

I have been given a large notebook that was created in mathematica 6. It contains a structure of sections and subsections and the input text is formatted in an unusual (possibly just old) style (see ...
3
votes
1answer
134 views

Contexts after Cell Grouping

I'm trying to separate my document into cell groups, each with their own context (much like the style of code isolation described by the answer here: Localizing variables within a Manipulate), but the ...
7
votes
1answer
203 views

how to select all cells with specific property such as the ones that are closed

I have to close many cells each time before I export a notebook to HTML since I do not want to display many code cells and other cells. I select each cell one by one, and do ...
1
vote
1answer
135 views

“Hiding” cells until the first cell is evaluated

This question is based on my earlier question about randomizing labs for students in my computer lab courses. There a perfectly good solution was posted; however, because of privilege problems, I ...
11
votes
1answer
1k views

Running an initialization cell on Mathematica start up [duplicate]

I am writing a bash script to run a bunch of Mathematica .nb files serially. So I thought I'd convert my Mathematica cells into ...
9
votes
1answer
435 views

Making cells group

After reading rcollyer's post I'm still not able to understand how grouping rules work. Here is a problem I'm facing. What I want is to create a new title, section and subsection styles. I want the ...
10
votes
1answer
330 views

SubTitle and SubSubTitle do not group by default

For some reason, the SubTitle and SubSubTitle cell formats do not group automatically on my machine any more, and I cannot ...
21
votes
2answers
527 views

Context unique to each group at a specified level

Are there any new tools in v10 that might be applicable to this problem? Recent versions of Mathematica provide the option of having a unique $Context for each ...