Paste

Paste[expr]
pastes expr at the current insertion point in the input notebook.

Paste[notebook, expr]
pastes expr to the specified notebook.

Paste[]
pastes the contents of the system clipboard in the input notebook.

Details and OptionsDetails and Options

  • The expression expr is evaluated and typeset before being pasted to the clipboard. To paste a textual form, specify a string or InputForm[expr].
  • Paste[Defer[expr]] pastes the unevaluated form of expr.
  • Paste["string"] pastes the contents of as plain text.
  • The expression expr can be any expression, including those that represent notebooks or cells.
  • Paste supports typeset expressions, such as StandardForm and TraditionalForm.
  • Results are pasted wherever the selection is at the instant that Paste is evaluated.
  • If content is selected when Paste evaluates, it will be fully replaced by the paste action.
  • If the pasted content includes a selection placeholder, then the selected content will be substituted for the placeholder.
  • Selection placeholders are represented by the character or \[SelectionPlaceholder].
  • The result of Paste will be at the highest fidelity when pasted between cells. When pasting into an existing cell, some style and formatting information may be lost or merged with the existing styles.
  • The following options can be given:
  • AutoScrollTruewhether to scroll the notebook to the pasted material
    PlaceholderReplaceTruewhether to replace a selection placeholder with the selected contents

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Paste an expression:

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

Paste a string:

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

Paste a graphic:

In[4]:=
Click for copyable input
Out[4]=

Paste the contents of the clipboard:

In[1]:=
Click for copyable input
Out[1]=
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »