Reputation: 117
I have a mathematica output which I want to copy to clipboard:
While pasting this as string on notepad I get the following:
\!\(
TagBox[
StyleBox[
RowBox[{"List", "[",
RowBox[{
RowBox[{"List", "[",
RowBox[{"0", ",", "x", ",", "1", ",", "0"}], "]"}], ",",
RowBox[{"List", "[",
RowBox[{"1", ",", "x", ",", "1", ",", "x"}], "]"}], ",",
RowBox[{"List", "[",
RowBox[{"5", ",", "x", ",", "1", ",",
RowBox[{"Times", "[",
RowBox[{"5", ",", "x"}], "]"}]}], "]"}], ",",
RowBox[{"List", "[",
RowBox[{
RowBox[{"-", "2"}], ",", "x", ",", "1", ",",
RowBox[{"Times", "[",
RowBox[{
RowBox[{"-", "1"}], ",", "2"}], "]"}]}], "]"}], ",", "Pi"}], "]"}],
",", "x", ",", "1", ",",
RowBox[{"Times", "[",
RowBox[{
RowBox[{"Power", "[",
RowBox[{
RowBox[{"Plus", "[",
RowBox[{"16", ",",
RowBox[{"Times", "[",
RowBox[{
RowBox[{"-", "1"}], ",",
RowBox[{"Power", "[",
RowBox[{"E", ",", "2"}], "]"}]}], "]"}]}], "]"}], ",",
RowBox[{"Rational", "[",
RowBox[{
RowBox[{"-", "1"}], ",", "2"}], "]"}]}], "]"}], ",", "Pi", ",", "x"}],
"]"}]}], "]"}]}], "]"}],
ShowSpecialCharacters->False,
ShowStringCharacters->True,
NumberMarks->True],
FullForm]\)
How to paste the code as raw string without Rowbox
and other irrelevant strings?
Upvotes: 1
Views: 355
Reputation: 117
By right clicking on right side of the cell, we can copy the output in the form required.
Upvotes: 0
Reputation: 3977
The Mathematica function
CopyToClipboard[1+x]
will put 1+x into your clipboard and not include any of the RowBox.
Upvotes: 1