NotebookApply

NotebookApply[notebook,data]

writes data into a notebook at the current selection, replacing the first selection placeholder in data by the current selection, and then setting the current selection to be just after the data written.

NotebookApply[cell,data]

writes data into a notebook in place of the specified cell.

NotebookApply[notebook,data,sel]

writes data into a notebook and then sets the current selection to be as specified by sel.

Details and Options

Examples

open allclose all

Basic Examples  (1)

Create a notebook and select the first x:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input

Apply a template to make the x the base of a superscript structure:

In[3]:=
Click for copyable input

Apply a template and select all of the data written:

In[4]:=
Click for copyable input

Options  (2)

See Also

NotebookWrite  NotebookRead  SelectionMove  PasteButton

Tutorials

Introduced in 1996
(3.0)
| Updated in 2012
(9.0)