Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

How can I copy a string with a bunch of *Box expressions without it blowing up into the raw expression?

text = Integrate::usage
(* Nice looking String *)

(* String *)

After copying the output and pasting it into an input cell it looks like

 "\!\(\*RowBox[{\"Integrate\", \"[\", RowBox[{StyleBox[\"f\", ....

Same thing happens when evaluating in place, so how can I do this without retyping the entire expression?

share|improve this question
Try CellPrint[Cell[BoxData[Integrate::usage], "Input"]] then you can mark it with " " and such string behaviour is what you need. But I'm struggling with doing this automatically... ;p – Kuba Nov 7 '13 at 19:39
@Kuba Good enough for my needs, thanks :) – ssch Nov 7 '13 at 19:48
Another possibility is Copy as->Plaint text (Ctrl+Shift+c). Or copy without the first and the last characters. – ybeltukov Nov 7 '13 at 21:03
@ybeltukov Copy without first and last works great thanks! Plain text copy strips some formatting though. – ssch Nov 7 '13 at 21:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.