MathGroup Archive 2014

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Copying Text From CDFs

  • To: mathgroup at smc.vnet.net
  • Subject: [mg132667] Re: Copying Text From CDFs
  • From: John Fultz <jfultz at wolfram.com>
  • Date: Fri, 2 May 2014 02:18:36 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <20140405054834.4CDCA6A54@smc.vnet.net> <C1EB04D4-34E8-415D-946E-C98B66E5F9D0@wolfram.com> <FA641834-CB05-48E0-B796-A6D0A9DA30A9@videotron.ca>

The TextClipboardType setting has to be on the entire cell.  As I said, 
Print cells have it by default.  You could set it locally on the Output 
style if you wished (using Format->Edit Style Definitions to change the 
Output style).

As for the copying of plots, I'm afraid there's not a lot about the 
situation that can be done in v9, aside from deliberately invoking a 
Copy As item.  The next release will behave better on this front, 
though.

John Fultz
jfultz at wolfram.com
User Interface Group
Wolfram Research, Inc.



On Apr 29, 2014, at 9:11 AM, Gregory Lypny <gregory.lypny at videotron.ca> wrote:

> Sorry to be so dense about this, John, but Copy as Plain Text does not appear in the Edit menu of CDFs run on the Wolfram player app on Macs. Don't know if it does on Windows. Is there a way to edit the stylesheet so that it includes TextClipboardType->"PlainText"? Likewise for plots. I cannot copy a plot from a CDF and paste it into another document. I end up with the underlying code.
>
> Any advice would be most appreciated,
>
> Gregory
>
>
> On Sat, Apr 5, 2014, at 10:18 AM, John Fultz <jfultz at wolfram.com> wrote:
>
>> Copy as Plain Text will copy the output of Grid as tab-delimited entries.  If you use Print[] to print the output, then the regular Copy menu command will use Copy as Plain Text by default on the contents.  This is controlled by the setting of the TextClipboardType option on the "Print" style.  That option is documented in the v9 documentation.
>>
>> John Fultz
>> jfultz at wolfram.com
>> User Interface Group
>> Wolfram Research, Inc.
>>
>>
>>
>> On Apr 5, 2014, at 12:48 AM, Gregory Lypny <gregory.lypny at videotron.ca> wrote:
>>
>>> Hi everyone,
>>>
>>> When I create CDFs for my students, I usually include some small tables with data and various bits of information. These tables are always built using Grid, and they appear in output cells or a Manipulate. The trouble is, the text in the tables cannot be copied and then pasted into a word processor or spreadsheet because it comes with all the Mathematica code, braces, etc. Is there something I can do so that text can be copied as tab- or comma-delimited so that it can be used elsewhere?
>>>
>>> Gregory
>>>
>>
>




  • Prev by Date: Plotting Data By State
  • Next by Date: How to avoid repeated recalculation of the same function
  • Previous by thread: Re: Plotting Data By State
  • Next by thread: Re: Copying Text From CDFs