2
votes
1answer
33 views

Why TeXForm[] do not display to notebook if followed by OutputForm[] in same cell?

Can someone please explain to me the logic of this: In one cell, when writing ...
1
vote
2answers
70 views

Overwrite contents of a cell

I am trying to figure out a way to change the contents of a cell that has previously been evaluated in my notebook. To do this, I'd like to overwrite the cell. I've seen questions like How to pipe ...
1
vote
1answer
97 views

Open parent cell groups of selected cell

I wrote a small script for a palette, which allows me to highlight a specific cell in a notebook by using SelectionMove[mycell, All, Cell]. The cell is selected as ...
1
vote
2answers
69 views

Cell with no form using NotebookWrite

Is there a way to create a cell with no form? Usually a cell is either an input cell or an output cell, for example if you do NotebookWrite[InputNotebook, "test"] ...
0
votes
1answer
23 views

Inserting a closed section

Is there a way to insert a closed section? I know in .m files if you do (* ::Section::Closed:: *) and open the .m file using system editor, a closed section will be ...
1
vote
1answer
50 views

how to make cells independent with each other in notebook

If we open DocumentationCenter and then run code, we will find that the Cells are independent from each other. For example: ...
1
vote
1answer
42 views

expression contained across multiple cells

Is it possible to span one expression across multiple cells? E.g. long if statement or function evaluation. I looked in documentation and searched forum/google and could not find.
14
votes
2answers
306 views

refer to result of cell above current cell?

% allows to refer to the result of the preceding calculation (preceding in time) but this seems not necessarily to be the cell just above a given cell. How can ...
0
votes
1answer
70 views

Modifying a column with a button within the column

I want a column with textcells and a button to add an extra textcell: ...
0
votes
1answer
23 views

Is it possible to modify the options for a particular cell from another cell? [duplicate]

I was wondering if I can toggle the "CellOpen" state from a cell (or bunch of cells) from another cell. i.e. I am imagining having a manipulate command along the lines of: ...
4
votes
0answers
67 views

Rearrange cells without cut-paste

When working in a Mathematica notebook, I often want to reorder cells. Most of the time, I am adding cells at the bottom of the notebook, until I realize it may be better to insert this calculation at ...
11
votes
3answers
187 views

How to collect expressions from cells created by Print?

I have a notebook where evaluation of a certain cell produced hundreds of adjacent output cells using Print. I need to create a list containing all expressions from ...
2
votes
1answer
42 views

Is it possible to merge cells excluding results with one click?

Now when I merge two cells with right-click "Merge Cells", they merge with the results included, while I only want the commands merged. Can I make it a one-click button? Now I have to delete the ...
2
votes
1answer
39 views

Options CellLabel not showing

I'm back with the labels and tags questions! Here is my code: mb = CreateDocument[Null, ShowCellTags -> True]; In the new document, I create a new cell, add ...
2
votes
1answer
49 views

Label cell goes away with SelectionEvaluate

When a given cell has a label (given with the CellLabel->"label" option of the cell), then this label disappears after calling SelectionEvaluate[ nb ] when the ...
5
votes
1answer
101 views

Maintaining stylesheet information in Cell[]

I am working on formatting a cell for a slideshow presentation format such that a graphics object occupies the left half of the cell and bullets or other items occupy the right. The ancient ...
2
votes
0answers
84 views

Counter assignments [duplicate]

I'm trying to create a specific outline format to match some course materials I am required to submit in a particular way. I know how to create auto-numbered cells using ...
8
votes
2answers
126 views

Alternative to NotebookLocate or NotebookFind

In Mathematica 8.0 and older, there are two ways to select cells based on cell tags. NotebookLocate["CellTag"]; NotebookGet[EvaluationNotebook[]] and ...
6
votes
1answer
152 views

How to evaluate an input cell automatically after evaluating the previous one

Is there any way to automatically evaluate an input cell after evaluating the previous one without the need to press ENTER?
3
votes
1answer
74 views

Want actual cell data from CellEvaluationFunction

Let's say I print a cell like so. CellPrint@Cell[ BoxData[" "], "Input", Evaluatable -> True, CellEvaluationFunction -> Function[Print[#];] ] Now I ...
2
votes
1answer
90 views

WholeCellGroupOpener and Hyperlinks

My problem is: I would like to activate WholeCellGroupOpener on a cell containing hyperlinks. But when I do that, the hyperlinks are no longer active. Is there a way to change the order of the two, so ...
10
votes
2answers
262 views

how to make cursor jump automatically to next input cell after evaluating previous one?

When making separate cells in order to make separate computations to better see the result of each one before going to the next cell to do the next computation (which is a good way of doing things), ...
6
votes
1answer
128 views

Replace content of selected cells, each getting different new content

Let's say I select 2 different cells and then attempt to replace their content using NotebookWrite inside a button. How might I replace each cell's content ...
2
votes
1answer
54 views

Prevent Cell Deletion

How might I be able to prevent a Cell form being deleted when you press the Delete key? Maybe there is a way to display some type of ...