PRODUCTS
Products Overview
Mathematica
Mathematica for Students
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Knowledge Base
Learning Center
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Notebooks and Documents
>
Clipboard Operations
>
CopyToClipboard
>
BUILT-IN MATHEMATICA SYMBOL
Paste
NotebookRead
See Also »
|
Clipboard Operations
External Operations
New in 8.0: Alphabetical Listing
More About »
CopyToClipboard
CopyToClipboard
[
expr
]
replaces the contents of the clipboard with
expr
.
MORE INFORMATION
The expression
expr
is evaluated and typeset before being copied to the clipboard. To copy a textual form, specify a string or
InputForm
[
expr
]
.
CopyToClipboard
[
Defer
[
expr
]]
copies the unevaluated form of
expr
.
CopyToClipboard
copies the contents of
as plain text.
The expression
expr
can be any expression, including those that represent notebooks or cells.
CopyToClipboard
supports typeset expressions, such as
StandardForm
and
TraditionalForm
.
When pasted in between cells, the results of
CopyToClipboard
will be at the highest fidelity. Style or formatting information may be lost when pasting into an existing cell or when pasting into an application other than
Mathematica
.
EXAMPLES
CLOSE ALL
Basic Examples
(4)
Copy a simple expression to the clipboard:
Use
Defer
to copy an unevaluated form of the expression:
Copy the
StandardForm
representation of an expression:
Copy the
InputForm
representation of an expression:
Copy a simple expression to the clipboard:
In[1]:=
Out[1]=
Use
Defer
to copy an unevaluated form of the expression:
In[1]:=
Out[1]=
Copy the
StandardForm
representation of an expression:
In[1]:=
Out[1]=
Copy the
InputForm
representation of an expression:
In[1]:=
In[2]:=
Scope
(2)
Copying a string copies the contents of the string:
Copy a graphic:
Generalizations & Extensions
(2)
A series of discrete cells can be copied by using
DocumentNotebook
:
Copied cells preserve any specified style information:
Applications
(2)
Create a button to copy the contents of an interface:
Pick a point and copy its coordinates:
Properties & Relations
(1)
Copying a cell expression preserves that expression exactly on the clipboard:
Possible Issues
(2)
Evaluation of expressions can have unexpected effects such as reordering the copied result:
All such effects can be prevented using
Defer
:
When
CopyToClipboard
receives a string with embedded typesetting, it is copied using :
SEE ALSO
Paste
NotebookRead
MORE ABOUT
Clipboard Operations
External Operations
New in 8.0: Alphabetical Listing
New in 8