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
4
votes
0answers
41 views

Function for identifying wasteful cells (e.g. needless large graphics) - does this exist already?

I noticed that I have a bad habit of saving notebooks with huge graphics in them and it's starting to impact storage and load times a little much. I figured I could make a routine to point out the few ...
0
votes
0answers
32 views

How to display CellObjects as Cells in PopupWindow

I am attempting to use a celltag ("temp") to display an entire cell in a PopupWindow. To see what I am attempting to do, open a new notebook and evaluate the following: ...
2
votes
0answers
75 views

Realtime background blur

Is it possible to have partially transparent cells (attached or docked) with live background blur? Something like this: Here's what I've tried: ...
0
votes
0answers
54 views

Cell frame bugged?

I used to always have cell frames on as a general option, but then they became bugged for me a little while back, maybe with 12.0 or 12.1. When you have any expression that extends horizontally past ...
1
vote
0answers
24 views

how to navigate to the cell where a user-custom function is defined?

For a large notebook involving many custom functions, I often feel helpless in locating their definitions: there seems to lack an easy to locate the definition of a function. On the contrary, for ...
2
votes
1answer
42 views

CellPrint with grouping the original generating code

I'm creating a large number of cells within a document programmatically, for example: ...
0
votes
0answers
24 views

How to change default cell style of WSL files?

In *.wsl files when I create a new input cell as usual it creates a Code cell as can be seen by inspecting the underlying code: This is how ...
0
votes
0answers
26 views

Automate `select cell` and `evaluate selected cell`

Manually I can select a set of cells (or one grouped cell) and click evaluate cell My questions Is it possible to start this job ...
0
votes
1answer
57 views

Setting automatic dividers when merging groups

Imagine I have my code split into multiple sections, like so Suppose I now select all cells and merge them, getting Is it possible to automatic set a divider between the different code sections? I'm ...
1
vote
1answer
49 views

Deleting all outputs on Notebook close

Is is possible to set up a Mathematica notebook so that all outputs are automatically deleted when the notebook is closed? I was trying to look for some function like ...
3
votes
1answer
88 views

Write commands in a texteditor as a low-level notebook expression

I want to write a notebook file by myself. I use a text editor (such as Vim) to do that, for the purpose of having full control of my code I am writing, and to really understand what is in my .nb file ...
3
votes
0answers
43 views

Show group opener on Notebook startup

When I re-open a previously saved notebook in which a group of cells is expanded, the group opener sign does not appear. See, for example However when I collapse using the right-side group tracks and ...
3
votes
0answers
36 views

How to create a "DisplayFormulaNumbered" cell inside a "Text" cell

Is it possible to put a "DisplayFormulaNumbered" cell (containing just an equation) inside a larger outside cell (a "Text" cell with a thin frame)? See pic below for my desired ...
1
vote
1answer
33 views

Stylesheet that assigns CellIDs as CellTags

For a given notebook, I can turn on CellIDs by opening the notebook's stylesheet and adding the following code: ...
6
votes
1answer
130 views

How insert into Text cell chevron symbols used for Inline GroupOpener icons?

If in OptionInspector I select option "Inline" for Cell Options > Display Options > ShowGroupOpener for section-like cells, then when such a group is closed it shows an icon that is a ...
4
votes
1answer
73 views

Set a background color for several adjacent cells and "page"

I'm using a book style sheet but this question applies to the standard notebook interface as well. I'm writing a sequence of cells in different styles (text, equation, figure, figure caption, ...) in ...
0
votes
1answer
28 views

How to change style/content of cell that is programmatically generated, using a checkbox?

I am programmatically generating some cells that have a checkbox along with some text. The following code creates a button which when clicked, creates such cells. ...
1
vote
1answer
50 views

Check if two cells are identifcal

Is it possible to check whether two cells in a Mathematica notebook have exactly the same code? I'm comparing two bits of code that might be the same, but rather than eye-checking, I wonder if there ...
3
votes
0answers
61 views

Create "Python Code" cells using custom executable

In https://mathematica.stackexchange.com/a/155815/45020 it is explained how to run cells using a custom virtual environment. How can I quickly create a cell that is evaluated using this environment. ...
2
votes
1answer
34 views

How to generate Code cell including newlines

I want to programmatically create a "Code" style cell with commands separated by ; and a new line (from some list). ...
0
votes
1answer
34 views

Save data directly in a cell

How can I save a custom list of data in this style? I would like to save a large imported file in a cell without reading it again.
1
vote
1answer
44 views

How to hide a cell with multiple output?

i'm working on a presentation using a Mathematica notebook. I'd like to hide the code i wrote. I found this answer and red this guide. After 7 years from that first answer that hacky method is still ...
4
votes
1answer
68 views

How to preserve the Checkbox value after closing the notebook

I am trying to create a to-do list style for the stylesheet. The goal is to have a CellDingbat that is a check box. And after pressing enter, a new cell with a ...
2
votes
2answers
90 views

How to create an item list with a checkbox bullet head

Is there a way to replace the red dot bullet head in the Item style cell with a Checkbox[]? And when I press the "Enter&...
0
votes
0answers
34 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 ...
3
votes
1answer
42 views

Palette to copy and paste cell reference number

I have the following palette: ...
2
votes
2answers
75 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
22 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
16 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
65 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+...
11
votes
1answer
378 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
55 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
70 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
43 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
85 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
62 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
45 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 ...
4
votes
1answer
92 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
26 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
47 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
39 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
41 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
23 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
227 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
90 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
361 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
47 views

Mouse wheel scrolling doesn't work in Pane inside ExpressionCell

Essentially what the title says - Consider the following example: ...
0
votes
0answers
74 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
208 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)

1
2 3 4 5
8