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.

Filter by
Sorted by
Tagged with
0
votes
0answers
26 views

Inserted counterbox link resets to zero when clicked

So let's say I have the following simple notebook: In the third cell, the "(1)" is a counterbox that was inserted with menu function Insert/Automatic Numbering.... The full expression for ...
2
votes
1answer
39 views

Palette to copy and paste cell reference number

I have the following palette: ...
2
votes
2answers
74 views

Quickly invoking a certain set of commands

Say I want to be able, in an arbitrary notebook, to quickly invoke a cell containing the commands NotebookFileName[] DateString[] What are good ways to get to be ...
0
votes
0answers
18 views

All formatting lost from a working notebook

I had a working notebook with title and normal cells. I opened and all cells were merged to a normal (InputformDisplay type) cell, all titles and text cells are lost, that is, they became the same ...
0
votes
0answers
15 views

How to reverse or restore the order of my cells in Wolfram Mathematica Cloud?

I was completing my assignment and I have no idea what I clicked but all the cells got reversed that is the 1st one on the last and the last is the first cell in my file. I want to restore it back. I ...
0
votes
1answer
54 views

Mathematica 12.1 is treating all my cells as raw texts by default

I was once using Mathematica 11 it all works fine - when I create new Notebook (.nb) input like 1+1 and press shift+...
9
votes
1answer
239 views

LyX-like LaTeX in Mathematica Text Cells

Lately I've been learning more about the Wolfram Language, and I've become particularly enamored with the stated goals of the Mathematica notebook interface. I've used Mathematica exclusively as a &...
2
votes
2answers
44 views

Can a Style inherit CellMargins depending how it is grouped?

This is a cross-post from https://community.wolfram.com/groups/-/m/t/2107710?p_p_auth=JoAd1Xpi and is similar to How to inherit indentation in cell groups? I'd like to have the Styles Item, Subitem, ...
0
votes
1answer
32 views

Nested groups of cells

I want to accomplish two things: Be able to minimize long function definitions and other blocks of code. To this end, I grouped each such block with a Text-style title that I can double-click to open ...
3
votes
1answer
38 views

How to make boxes independent from those cell-formatting options?

In a cell whose LanguageCategory option is "Input", boxes will be syntax-highlighted. Is there any way to diasble such ...
2
votes
0answers
80 views

Is there any way to change the box-formatting behavior thoroughly?

Background The box-formmating behavior is affected by the downvalues of the symbol MakeBoxes. But the formatting behavior is not exactly ...
5
votes
1answer
52 views

Make docked cells scale with zoom

Is there any way to make your docked cell contents scale with the notebook magnification?
1
vote
0answers
38 views

How to turn off cell brackets programmatically? [closed]

From the documentation, it appears that executing SetOptions[EvaluationNotebook[], ShowCellBracket -> False]; in the current notebook, should immediately hide ...
3
votes
1answer
61 views

Is there a way to construct more/deeper layer of subsection?

We know in a notebook there are Sections, Subsections and Subsubsections. I wonder is there a way to construct something like Subsubsubsection and Subsubsubsub...subsection? I ask this because when I ...
0
votes
0answers
24 views

Broken sub-/super-/overscripts after reopening file

I'm entering something like $a_1$ by using Ctrl -. After I reopen the file, instead of a nice subscript, every instance of $a_1$ now reads ...
1
vote
1answer
37 views

Is there a way to disable or enable text wrapping in cells?

I am trying to generate "Program" cells but my issue is unlike "Code" cells, "Program" cells ...
2
votes
0answers
32 views

How to configure cells **not** to evaluate via “Evaluate Notebook”

Is there a way to configure certain cells/sections not to evaluate under "Evaluate Notebook," while still being able to "manually" evaluate them with Shift+Enter? I have a large notebook with ...
0
votes
0answers
37 views

How can I ensure initialization cells are evaluated in order of definition?

I have a cell: Unprotect[Plus]; followed by a cell: Plus[label[t1_, l1_], label[t2_, l1_]] := label[t1 + t2, l1] If I ...
1
vote
0answers
22 views

Style options to make initialization cells appear like regular cells?

I find the discontinuous grey rectangles around those cells to be distracting. Any way I can make them look like regular cells?
4
votes
2answers
128 views

How to run all cells above current one? [duplicate]

In Jupyter notebook, there is a Run All Above (a certain cell) option. Is there something like Run All Above in Mathematica?
3
votes
1answer
23 views

NotebookImporting sections from documention notebook?

How can I use NotebookImport for grabbing "ExampleSection" cells? ...
5
votes
1answer
68 views

Color of the evaluating cell brackets

What is the option to use in a stylesheet that controls the color of the brackets for cells in the evaluation queue?
4
votes
2answers
196 views

Typesetting LaTeX in a text cell

I recently started trying to use stylesheets and different cell types to organize and explain my logic. Often I try to type equations into my text cells to explain what I'm doing, but this can be ...
0
votes
0answers
39 views

Mouse wheel scrolling doesn't work in Pane inside ExpressionCell

Essentially what the title says - Consider the following example: ...
0
votes
0answers
72 views

How can I programmatically extract the text content from a Notebook's cell definition? [duplicate]

Given the Notebook cell definition below from the Wolfram Function Repository as an example: ...
7
votes
2answers
125 views

How to mix text and formulas in a single cell in the Wolfram Cloud Notebook?

How to mix text and formulas in a single cell in the Wolfram Cloud Notebook? The shortcuts Ctrl+( and Ctrl+( don't work (they probably are intercepted by the browser)
0
votes
1answer
55 views

Retrieving a list of tagged output cells and a list of variables from various Notebooks into a new Notebook

The table below provides the information needed to formulate my question: how can I gather a selected number of tagged output cells and variables in a new notebook? I have two notebooks ...
0
votes
0answers
68 views

Obtaining the results of tagged cells in a notebook from another notebook

My objective is to read the results of several tagged cells in a notebook NB1 from another notebook NB2. Following the ...
1
vote
0answers
77 views

Create new cell that is not part of any group of cells (not grouped)

I'd like to create a new cell that is not grouped with the previous cell The documentation on creating a new cell says this: To Create a New Cell: Move the pointer in the notebook window until it ...
1
vote
0answers
35 views

How to add the cell style popup menu to my customized toolbar

I use a customized toolbar in all of my notebooks: I would like to add the cell style popup menu that is part of the built-in formatting toolbar to my own toolbar. A code snippit for my toolbar is ...
0
votes
1answer
79 views

How to restore broken Automatic cell grouping behavior?

By default output cells are grouped with the input cell from which they are generated (note the nested cell brackets on the right): Sometimes it is desirable to group manually input cell with ...
1
vote
2answers
77 views

Delete pre-existing output under EvaluationCell[] from CellProlog

We know that there is an efficient way to delete all output from the EvaluationNotebook[]: ...
8
votes
1answer
257 views

How to open a Python interpreter input cell?

Something weird just happened to me: I mis-typed a keyboard shortcut, hitting the wrong keys, and a new notebook opened up with a Python prompt! Just for grins, I tried entering some simple Python ...
5
votes
1answer
113 views

Is there a (simple!) way to convert all initialization cells of a document to normal cells?

I like to work with initialization cells. During the different stages of development of my notebooks, I however often need to change those. If they are scattered throughout the notebook, it is ...
1
vote
2answers
85 views

How to export a cell in Messages console to PDF?

Using V12 on windows. This is the problem. I am calling an external function (Rubi in this case, but it could be anything), which ends up printing a cell (image) to the Console. I simply want to ...
3
votes
1answer
110 views

How to export the cell above to pdf using the Export[] command (not using GUI)

Sorry if this was asked before. I googled and could not find anything. Many times I need to export a cell to a PDF. It is always the cell above. Currently I do this using the GUI, by selecting the ...
9
votes
1answer
126 views

Notebook with version-dependent cells

I want to make a notebook with the following special feature: some of its cells show up only when the notebook is opened in for instance versions 11 and 12, but are hidden if the notebook is opened in ...
1
vote
1answer
42 views

How to create inline math with CellPrint within Text cell?

I can create a text cell with text like this: CellPrint@Cell[ "this is a function call: f[x,y]", "Text" ] This produces: this is a function call: f[x,...
2
votes
1answer
71 views

Hiding an evaluated cell as the evaluation completes - Self-hiding

I use expressions to create "control panels" to set dynamic variables to control the evaluation of other expressions in a large notebook. For example: I would like the expressions that create these ...
5
votes
4answers
309 views

Mathematica 12 Frontend for Mac: cell grouping messed up upon copy/paste

Bug introduced in 12.0 or earlier and persisting through 12.1 or later I am not sure whether this has been addressed somewhere already, I couldn't find any comment. I suffer from an annoying bug: when ...
0
votes
0answers
68 views

Run a loop without merging the cells

I have to run a loop of a certain variable than spans through the entire notebook. However the notebook has already been divided into different sections; merging these sections will be a pain and ...
4
votes
1answer
447 views

Can a Mathematica notebook be programmed to work as a LaTeX editor? [duplicate]

A short example code will show that the answer to this question is yes. The example code (which I give in my answer) is for a simple LaTeX editor that is almost a drop-in replacement for TeXworks. ...
9
votes
1answer
269 views

Show timing of every output

I know I can follow Wolfram's guide and enable "ShowTiming" to show the timing of the previous command at the bottom of the window. Additionally, I can enable <...
6
votes
1answer
177 views

Given a cell in a Voronoi diagram, which point did it come from? [duplicate]

Given a set of points pts = Table[{RandomReal[], RandomReal[]}, {i, 1, 10}]; and their Voronoi diagram ...
1
vote
1answer
60 views

Adjusting cell hierarchy?

I'm very much a beginner in Mathematica, so first of all sorry to waste you time with my problem. To learn the cell-structuring of a project I'm working on using the different format types available. ...
0
votes
2answers
108 views

How does one use option CellGroupingRules?

It seems that Manual Cell Grouping is broken in 12.0.0.0 (at least in Linux). If one pastes a cell, then any cell bracketing gets "chopped" at the paste position. This bug affects a large project of ...
7
votes
1answer
85 views

New input cell style with a custom evaluator

I'm interested to implement a custom input style which would appear (mostly?) like a normal "Input" Cell, but which would ...
1
vote
2answers
55 views

How to read the data from output cells?

I have results of some calculation as a number of output cells in the saved .nb file. Since these results are obtained before (not during this run of Mathematica), I cannot use % to access previous ...
3
votes
1answer
48 views

Using an image as a CellDingbat

I'm writing code that generates a report notebook using a defined style. I would like to display an image (a logo) in the title cell along with the title itself. How can this be done? Example: ...
4
votes
2answers
182 views

How do I add into a text cell a reference to a numbered function?

I have a document with lots of numbered equations in their own cells (which I numbered through Format->Style->DisplayFormulaNumbered). I also have lots of ...

1
2 3 4 5
7