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)

15
votes
0answers
129 views

Any manual on cell grouping management?

Recently I come back to the problem of cell grouping and performed extensive search on this site and on MathGroup archive for information on how to use the possible values of the ...
3
votes
1answer
76 views

How to set width of exported pdf/eps

I want to export a cell's input (the text of the command) as pdf/eps. I have used Export["cell.pdf", cells[[1]]] It works fine, however, I would like to change ...
4
votes
0answers
35 views

Collapse cell groups when you close parent group?

I have a particularly long notebook. Here's what I'd like to do: to say in my stylesheet that upon closing certain types of cell-groups that all the cell-groups inside should close as well. That way ...
3
votes
1answer
51 views

Image background for cell?

I'd like to make code Cells have a specific background image. I know you can do this for Notebooks, but what about Cells? This simple test fails: ...
7
votes
1answer
103 views

How to convert arbitrary raw boxes directly into String?

This question is motivated by the recent question about searching inside of the NB files. According to the Documentation, ToString expects a high-level WL ...
2
votes
2answers
171 views

Save as PDF without cell numbers

I want to save a notebook file as PDF, but without cell numbers. For instance, take this document, then select “save as PDF” and the result is, How can I remove the cell numbers ...
1
vote
1answer
27 views

Default cell type in Slide Show

For slide show, the default cell style (when it is created) is Text. However, I would like to change that default style to Input...
15
votes
2answers
385 views

Shell Emulation inside Mathematica

I am trying to create a Mathematica/shell syntax hybrid. I would like the following command wget -qO- "http://google.com/space line break\"" $var to be ...
4
votes
1answer
51 views

Cell evaluation and parallel kernels

Is it possible to simply force Mathematica to evaluate one cell with let's say kernel A and another cell with kernel B etc. so that they can be evaluated in parallel? There is a similar answer here ...
7
votes
1answer
64 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
74 views

How can I make an invisible Cell?

Notebooks have a Visible option, but Cell // Options doesn't mention any equivalent for <...
2
votes
1answer
33 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 ...
4
votes
1answer
49 views

Difference between Initialization Cell and Group

Is there a difference between setting a Cell or a Group of cells to be an Initialization Cell...
3
votes
1answer
58 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
56 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
59 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
74 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
41 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
203 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
90 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
40 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
48 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
79 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
82 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
175 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
99 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, e....
5
votes
1answer
61 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
80 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 ...
6
votes
1answer
264 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
111 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
73 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
269 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
206 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
85 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
97 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
110 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
47 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
52 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
58 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?
2
votes
1answer
86 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
46 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
83 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
92 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
59 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
124 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 ...