Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cells]

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.

2
votes
1answer
34 views

Modify CellLabel of Print cell in stylesheet

I would like to modify the style of Print in a Mathematica notebook. Locally, I can do so by toggling on Show Cell Expression of ...
2
votes
1answer
57 views

How to Text justify that includes StringSplit and MapAt in it?

I am preparing a practical class of physics in which I need to justify the following text that is very extensive. But when I use StringSplit or ...
5
votes
2answers
91 views

Set notebook sections one level up

Suppose I have a notebook filled with many chapters, sections, subsections, subsubsections and so on. Instead of changing the style of each of them manually, is there a clever way to set all or part ...
2
votes
0answers
39 views

Evaluate notebook without opening cell groups

I have a notebook with grouped cells, where the input cells are hidden and only output cells open. Is it possible in an easy way to evaluate the whole notebook and preventing opening all groups, ...
2
votes
1answer
35 views

How to select Input|Output Cell Groups in the Notebook?

I am trying to convert a Cell expression to an image. I created a new notebook and copied the cells that need to be rendered. ...
2
votes
1answer
48 views

Automatic space after comma in Code cell style

"Input" cell style automatically inserts a space after each comma, with natural exceptions such as when quotation marks are open. ...
0
votes
0answers
41 views

The expression can't be used as part specification error

Mathematica newbie here! Could you help with the following error: Any help would be appreciated!
0
votes
0answers
23 views

Programmatically change cell style [duplicate]

I have been trying unsuccessfully to programmatically change a cell style in order to change it to a text-style cell as I just want to put some text in it that should not be evaluated: ...
1
vote
1answer
68 views

need help with remembering a name of a function

I have an output cell and want to see the input that led to that output. How do I tell Mathematica to display that input?
4
votes
1answer
54 views

Strange behavior of Print, Do, and merged output cells

The command Do[Print[i], {i, 1, 3}] does what you expect: creates 3 output lines of 1, 2 and ...
10
votes
1answer
157 views
+200

MousePosition in AttachedCell?

I can't figure out why the following stops working when "WindowAbsolute" is replaced with "Graphics"? ...
3
votes
0answers
32 views

How to make custom attached menubars? [duplicate]

I would like to understand how to build an attached menubar. For example, Image has the following bar - an attached cell that arises when clicked on: ...
2
votes
1answer
50 views

shorcut key of Cell->Cell Properties->Open

Is there a shortcut key to control the Open property of cell? Thanks!
4
votes
1answer
38 views

Navigate to cell in a notebook

Assume the following notebook of Rubi rules ...
3
votes
2answers
57 views

How to assign a tag to a cell

I want to assign each cell in my current notebook a tag so that I can rerun cells with specific tags later in the notebook (Using a method similar to this answer). My questions are How do I assign ...
5
votes
1answer
89 views

Why Text Cells converted with Alt-7 have different fonts

So I am writing a report in Mathematica and experiencing a problem. First I create an input cell. Then write some text into it. Afterwards convert it to text cell with Alt-7. As a result some cells ...
3
votes
2answers
172 views

Finding sums of magic square cells (The “magic square” of the Sagrada Familia)

Update Finally got the background origin of this. And a more comprehensive article is here. This has has a total of 310 combinations that add up to 33. And this IS more interesting way of ...
1
vote
1answer
55 views

How to creat a pyramid like grid? [duplicate]

I'd like to create some pyramid that looks like this, The numbers/cells are easy to do ...
2
votes
0answers
39 views

How to remove “⍰” from parent cells with collapsed child cells in MMA 11.3?

I like to work with notebooks and collapse cells containing computations. This gives me a manuscript-like feel for the notebook, and I like the aesthetics of it. MMA 11.3 introduced a new "feature" ...
2
votes
0answers
66 views

Sequentially displaying bullet comments in a Mathematica presentation

Playing around with the 11.3 presenter tools today. I have generated a presentation entitled "Polynomials". 10 slides with Title and 9 sections. My goal was to create a presentation with 5 slides. ...
7
votes
1answer
207 views

Is there a way to obtain the time when an input was executed in a notebook?

I have a notebook with lots of In[n] in my current session. The notebook has been open for over three days. I would like to get the timestamps for when certain old ...
1
vote
1answer
40 views

Add cell dingbat to cell, to display using DisplayForm

I'm programically constructing a palette, and trying to add items/cells to the palette with a dingbat. The cells themselves have a style of "Item" which should ...
3
votes
1answer
47 views

How to add a Button on a slideshow that on click get me to the specific slides on the slideshow

How can I add buttons on a slide that on click takes me to specific slides on the slideshow?
13
votes
1answer
324 views

ShowGroupOpener's behavior change in 11.3

Among many settings for a fresh installation I have CurrentValue[$FrontEnd, ShowGroupOpener] = True in order to have sections openers always visible. It does ...
8
votes
2answers
74 views

Use new cellgroup opener button for closing too?

Is there some way to keep the (new in v11.3) cell group opener button: So I can use it to close the group? Such a feature/hack would be nice as it takes me more effort to find the exact tiny ...
2
votes
1answer
72 views

How do I reset Mathematica's DisplayFormulaNumbered cell style numbering?

Since I am writing many equations, in various chapters, I need a way to reset numbering in this cell style. The following shows what I need: x + y = 15 (1) x - z = ...
1
vote
1answer
62 views

Is there a way to hide input cells, that have no output?

I can easily hide output cells, or hide the input cell if it produces output (just double click the side bracket for both). My Question is how can I hide input cells that have no output? Examples ...
2
votes
1answer
50 views

CellGroup[] in current Notebook

I have used the Option Inspector to set CellGrouping to Manual for the current, selected Notebook. Nonetheless, the following ...
7
votes
2answers
624 views

Delete all output in notebooks

I want to delete in all notebooks in a certain root directory all output cells as well as all other output generated during evaluation (e.g. from print and other) and afterwards save the cleaned ...
1
vote
0answers
59 views

How to get the CellID of a cell

I can count how many cells there are in a notebook up to and including the one whose ID i need, and then evaluate Cells[EvaluationNotebook[]][[number, 1]]. How to ...
2
votes
2answers
118 views

How to highlight the cells that satisfies the condition?

MemberQ[IntegerDigits [#], 3] & /@ Range[100] Grid[ArrayReshape[Range[100], {10, 10}], Frame -> All] I want to get a 10 by 10 grid, that highlights all ...
0
votes
1answer
156 views

Cell splitting in mathematica

I have multiple lines in a cell in mathematica created by pressing enter like: In[12]:= 1 + 2 3 + 4 5 + 6 Out[12]= 3 Out[13]= 7 Out[14]= 11 I want to separate ...
1
vote
1answer
73 views

How to overlay a label and a cell frame?

How to put a label on a cell frame or align cell frame label with parent's cell frame? Like that: I did it but the solution is ugly not very responsive. I will post it unless better solutions appear....
2
votes
0answers
55 views

Working with CellOjbects [closed]

Suppose I have a text cell that contains the word "cat". I can store this cell as a cell object into a variable called x. How do I print x so that it appears as the original cell? Essentially I am ...
8
votes
1answer
84 views

What is wrong with White Background for a DockedCell?

Bug introduced in V10.4 or earlier and persists through V11.3 ...
2
votes
2answers
144 views

Stop notebook from auto-scrolling upon printing

I've long been peeved that the front end scrolls automatically during evaluations, and I've finally sat down to pin down the exact behavior. It seems that the front end auto-scrolls whenever printing ...
1
vote
0answers
34 views

Change GroupOpener in OptionsInspector or Stylesheet?

The accepted answer in How to change the appearance of a Cell GroupOpener? gives programmatic methods for changing the shape, color, or other appearance of a cell ...
1
vote
0answers
73 views

How to center a graphic inside a framed cell without using another cell

Below is a gif of the situation I am having. First, notice I am working inside a framed cell. Within this cell I placed two graphics. The first (on top) is left aligned. The second, is centered. ...
0
votes
0answers
47 views

Fold/unfold all groups at given level via keyboard shortcut

The combination ctrl+' can be used to fold/unfold a selected group. Is there a way to fold/unfold all cells at a given nesting level, and possibly also to fold/...
5
votes
1answer
136 views

Extracting notebook history programmatically

I know there is a way to open Notebook history dialogbox using Cell > Notebook History, but since there can be a lot of history the dialog box can run very slowly with lags. Is there a way to get a ...
3
votes
1answer
77 views

Select list of cell objects without showing each selection

I've got a list of cells I want to select, but I'd like to do this without the selection cursor moving over each. Is there a way I can do this?
4
votes
2answers
110 views

How to programmatically clear the contents of a set of selected, non-contiguous notebook cells?

I'm writing some code that programmatically modifies the contents of the notebook it's running in. My code uses NotebookLocate to select all the cells in the ...
0
votes
3answers
84 views

How to hide “input” while using ButtonBar?

I used a ButtonBar. When I click a button (in Output) it unhide all my hidden code (Input). How to overcome this issue? UPD: requested example Input: ...
0
votes
1answer
33 views

Is there a way to use CellPrint on dataset objects?

I am trying to assign a cell tag onto my cell with contents in the form of a dataset. However, I am receiving the following error: The wrong number of arguments (12) was given to a box ("BoxData") ...
2
votes
1answer
51 views

How to print a collapsed cell group?

I would like to print a group of cells exactly like what I get from this: ...
0
votes
1answer
83 views

How to delete a Cell with a particular Tag in Mathematica 8?

If I have a Cell with a particular tag CellTag->"MyCell", I could delete it in Mathematica 9 or later with ...
2
votes
1answer
85 views

Cell @ CellGroupData[… in Cells family

Bug introduced in V10.4 or earlier and persisting through V11.3 Background This question originates from two already posted questions updated with further doubts I've faced. I deleted one and merged ...
4
votes
1answer
82 views

Hiding inputs with specific function [duplicate]

I believe this question could be a duplication, but I did some searches with the term "hide the input cell", but none answered me. Only inputs with this function. I have several input cells using the ...
5
votes
1answer
85 views

Why is “Evaluatable” unchecked by default in cell option but cell still execute?

In my Mathematica, all my cells have the option "Evaluatable" unchecked by default Thus, if I want to prevent some cells to be executed, it is not possible because Evaluatable is already unchecked (...
1
vote
1answer
55 views

Cells[] ignoring multiple style cells

Bug introduced in V9 and fixed in V11 Same story as in NotebookImport ignoring multiple style cells, ...