New answers tagged

0 votes

Making NotebookFind independent of cursor position

You must move the selection before doing the NotebookFind. With the example from the help: ...
user avatar
  • 24.3k
1 vote

A bug in copy&paste of plain text

As pointed out by @ihojnicki in the comments, this behavior is most likely caused by using an external clipboard history tool. For some reason Mathematica is unable to work with these tools, and you ...
user avatar
  • 62.7k
3 votes

Deploy and Deployed

[Note: I assumed CellPrint was necessary, which was wrong. I did not realize that ExpressionCell as output becomes an ...
user avatar
  • 213k
8 votes

How to remember evaluation across sessions?

Strategy: Use memoization and then save the relevant definition in a file at the end of your session. Next session you can recover the "memoized" definition. Memoization Look at memoization ...
user avatar
  • 28.9k
5 votes

What is the unit for WindowSize

They are in Points, as documented here.
user avatar
  • 2,261
3 votes

Drag and Drop an Attached Cell

This works. Instead of attaching the graphic using dynamic Graphics Inset, I attached it directly to the notebook using the Attached Cell. To move the attached cell around the notebook I used event ...
user avatar
  • 4,549
1 vote

Text cell numbering

The 'labels' for input and output are generated upon evaluation by the kernel and are not notebook specific. I do not think that this is what OP is after with text cells (I might be wrong). I would ...
user avatar
  • 2,240
4 votes

Change style of the above cell

You can do it this way : Cell to be transformed : I want to change this cell (*the cell that I want to change cell-style*) Cell to transform the previous cell : <...
user avatar
  • 16.9k
3 votes
Accepted

Change style of the above cell

First we move the selection to the previous cell: SelectionMove[EvaluationCell[], Previous, Cell]; We now read the selected cell, change its style e.g. to "...
user avatar
  • 24.3k

Top 50 recent answers are included