Questions about cells and functionality related to cell structures, or the notebook cell hierachy which serves to organize the information in a Mathematica notebooks. This includes questions related to properties and options for cells that determine the overall look and behavior of the notebook.

learn more… | top users | synonyms (1)

5
votes
1answer
43 views

Run several input cells in parallel

I have a notebook with several input cells that produce data which is then plotted into separate graphs. Since I do not want to save the results, because it makes the file huge, I keep the ...
5
votes
1answer
68 views

How can I make an invisible Cell?

Notebooks have a Visible option, but Cell // Options doesn't mention any equivalent for ...
1
vote
1answer
21 views

Delete Cell Inside of Module

I want to print a dynamic output while some code is running and then automatically delete it when when the output is done. PrintTemporary is not quite what I am looking for -- I want the output to be ...
3
votes
1answer
41 views

Difference between Initialization Cell and Group

Is there a difference between setting a Cell or a Group of cells to be an ...
3
votes
1answer
47 views

Editing a docked cell created with a notebook

I use the following code to create a new notebook for presentation slides with a docked "banner" cell: ...
1
vote
0answers
50 views

How to export a notebook to google docs (without losing image quality)

I have a large notebook with many text cells some containing images and I need to import it to a google document that is editable. (so not pdf or html). So far no luck! Exporting to rich text format ...
4
votes
2answers
54 views

Dynamic Tooltips displaying cell contents

I'm working on a piece of code that would allow me to make tooltips displaying contents of another cell (EquationNumbered style). ...
1
vote
0answers
44 views

Frontend flickering [closed]

The front end is flickering on hyperlink mouse-over events: Is there any way to avoid this, or any option that could boost the front end's frame rate for mouse related dynamic events?
1
vote
1answer
71 views

How to find the last output cell of the group to which a certain cell belongs?

Simple question, but I cannot find an answer in the documentation. I have a CellObject handle of some cell in some notebook. This cell has "Subsubsection" style, ...
0
votes
2answers
36 views

Cell label not appearing for pasted image

When I paste an image into a notebook the cell has no label. In the Generalized Input Tutorial: https://reference.wolfram.com/language/tutorial/GeneralizedInput.html#52003380 they show pasted images ...
7
votes
4answers
188 views

Cell sizing and labeling for $\textit{MaTeX}$ equations

I am writing a book in the Wolfram CDF format and would like to improve upon the default equation typesetting of Mathematica. To this end I've loaded @Szabolcs' valuable MaTeX, which imports $\LaTeX$ ...
4
votes
2answers
86 views

Setting WholeCellGroupOpener [duplicate]

When I write WholeCellGroupOpener, Mathematica autocompletes it, but it doesn't recognize it (it stays blue instead of turning black). Example: ...
1
vote
1answer
38 views

Button to close cells

I want to have a button that closes cells with a specific tag. The following code does what I want: ...
1
vote
0answers
45 views

Shortcuts for Indentation in Text Cells?

Marking a cell's bracket and then using Alt-7 I can make it a Text cell using the formatting set forth in Default.nb or in a modification of it stored with the notebook itself (so called "private ...
5
votes
1answer
76 views

What are “\<” and “\>” delimiters in box expressions?

If I enter a string (say, "abc") in a cell, and then switch to box representation (Shift+Ctrl+E or menu item ...
5
votes
1answer
68 views

hotkey to mark the current cell and make it a text cell

In order to write to a Text cell, you usually just start typing. Then you find out that you are writing in an Input cell. Then you want to convert the current cell to a Text cell. In order to to this ...
1
vote
1answer
52 views

Temporary/popup Output Progress Boxes

In recent versions of Mathematica, a number of functions have the feature that, while they are thinking (or, for example, loading data from Mathematica servers), they pop-up a little light-blue box ...
2
votes
1answer
76 views

How to use an ExpressionCell to display e.g. an Input cell inside a generated output?

It's not that I can't live with that but I don't understand why e.g: ExpressionCell[ Defer @ Style["string", Red], "Input"] is not showing quote marks? This ...
14
votes
1answer
162 views

How to make a dynamic nested menu?

There is no dynamic controller that can represent a hierarchical menu structure: ActionMenu can only handle flat action lists. Thanks to Kuba, we know a lot about ...
5
votes
1answer
94 views

Close or Open, not OpenClose CellGroups for specific CellStyle

I am aware of the question Close programmatically all cell groups in Mathematica but I am trying to find out how to close only one kind of Cells in a notebook, ...
5
votes
1answer
59 views

Exclude cells for cdf deployment

I have a demonstration notebook with a code development chapter and a demonstration chapter with a manipulate environment, like this depicted minimal example I know how to export a cdf but is there ...
2
votes
0answers
77 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
233 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 ...
8
votes
2answers
103 views

Seeking for method to speedup and get more flexable control Notebook History

When doing calculations in notebook, I modify the code a lot, and there are several versions of similar codes in the same notebook. But I found myself easily forgot which version is the newest, and I ...
2
votes
0answers
68 views

Docked Cell that scrolls?

I use two finger movement on my trackpad for scrolling a notebook page up and down. Is it possible to make a docked cells that scrolls to the left and right using a two finger movement on the ...
7
votes
2answers
268 views

Add semicolon at the end of code line programmatically

Suppose we have several lines of code in a cell: a b; Module[{}, c d] e How can we wrap them in a CompoundExpression i.e. ...
9
votes
1answer
201 views

What is FrontEnd`AttachedCell?

Perhaps it's not accessible from the front end, but what is this so-called attached cell? ...
5
votes
1answer
72 views

Toggle close all input cells in a notebook, keeping output cells open

For presentations, can all input cells in a notebook be toggled open/closed, while keeping output cells open? Either through menu or palette. Probably would not work well programmatically. Related ...
3
votes
2answers
92 views

CDF format - disable cell selection?

Is there any way/option in order to make Cells not selectable in exported CDF files? I know how to hide the cells until you go with the mouse over them on the ...
5
votes
2answers
108 views

Retrieving normal looking Mathematica input from a cell expression

After a bad saving, I had problems with my Mathematica notebook. I have expressions in this form: ...
1
vote
0answers
42 views

Notebook cell properties: Count cell number. Count edited cells [closed]

I have a Mathematica notebook with more than 20 cells, including some closed. How can I programmatically count the exact number of cells? How can I know how many of them have not been edited?
1
vote
1answer
48 views

How do I dynamically update “name” of Action Menu?

I have created an action menu that allows you to change the style of a cell. It works. However, I would like it to dynamically update the action menu "name". I can't get the name to refresh. ...
0
votes
2answers
56 views

Notebook output in single place

I find that cell output below each cell terrible for organizational purposes. Is there another way to display the output of each cell?
1
vote
0answers
38 views

Referencing cells after reopening a saved notebook

I'm looking for a way to reference certain cells when opening a saved notebook. That is, assume I ran some commands in a notebook, got some output, saved the notebook, then reopened it in a new kernel ...
2
votes
2answers
78 views

How create hyperlink with number of an automatically numbered cell?

In my stylesheet I have a particular style of cell, Exercise, that has a corresponding counter object. In a notebook with that stylesheet, there are several Exercise cells in each of which I've ...
0
votes
1answer
26 views

How can I update the contents of or overwite a cell contained inside another cell?

Suppose I have a notebook consisting of these cells: Cell G, containing a grid Cell I, containing a program that produces a graphic and places it in a cell Cell E, a cell which successfully receives ...
3
votes
0answers
43 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? ...
8
votes
0answers
76 views

What is a full list of cell styling options and sub-options?

I'm trying to customize a style sheet and have hit a few speed bumps and walls. Firstly, I can't see how to do a few specific things, like to set the color of the cell's left side label: Or how to ...
1
vote
1answer
91 views

NewLine Inconsistency

Copy and paste the following two lines into Mathematica. 1 \[Alpha] \[NewLine] 2 f[ 1 \[Alpha] \[NewLine] 2] The first posts ...
0
votes
1answer
58 views

Global variables [closed]

I have a workbook I am writing, there are 2 cells in it and then each cell is divided into sub cells. At the top of the first cell i made a bunch of variable assignments such as length=10, x=6, d=4, ...
7
votes
1answer
122 views

How to add a caption below a cell?

How can I change my stylesheet definition for a cell to optionally add a caption below? For example, I would like to add a caption to my "Program" cells shown here: like this (but with the option ...
5
votes
1answer
122 views

How to close all tagged input cells without closing their output cells?

I have tagged certain Input cells I want to be closed during a presentation. I close them as follows: ...
2
votes
1answer
48 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 ...
6
votes
2answers
152 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) ...
4
votes
2answers
97 views

Syntax highlighting in text cells

I want to write some documentation for a notebook using text cells. Now, I can select parts of the text within such a text cell and set its style to "Input". This does change its font, but there is no ...
0
votes
1answer
102 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: ...
4
votes
1answer
342 views

How can I remove I a horizontal line I inserted into my notebook?

Inserted a horizontal line with Right click > Insert > Thin Horizontal Line. Cannot see a way to remove such a line. Help!
1
vote
0answers
29 views

Distribute Definitions to different Evaluator

I would like to pass on a definition from one Kernel to the other. With that I mean manually configured Kernels. In this case, I do not want to use the inbuilt Parallelization options, in order to ...
7
votes
1answer
156 views

How to programmatically mark and then select a subset of input cells?

I'm developing a package that needs to exert significant control over a notebook while a user interacts with it. One specific thing that it needs to do, programmatically, is to select a specific ...
10
votes
1answer
262 views

How to change the font color of a variable in whole input cell

I want to track the occurrence of a particular variable in a code. So the idea is to change its color. Usually I do it in a crude way - convert the code into text and then use ...