Prev: Defining UpValues
Next: Change Default Button Method
From: David Park on 5 Jul 2010 21:13 Here is a simple Grid construction with Dividers. Grid[Array[0 &, {3, 5}], Dividers -> {{True, True, False, False, False, True}, {True, True, False, True}}] Now I would like to copy and paste a sub-matrix from the output. Let's say I select and copy the 2 row, 4 column block on the lower right. (But we could copy any sub-matrix irrespective of the Dividers.) When I paste it into the notebook, it is still a GridBox structure and it still shows dividers. And the dividers are now wrong. However, when the copied item is evaluated, the result is a simple matrix, which is just what I want. My only objection is the appearance of the pasted material. Is there some method such that the Dividers might be striped before the copied material is pasted, or that the pasted material would be a simple List structure, instead of a GridBox, in the first place? David Park djmpark(a)comcast.net <http://home.comcast.net/~djmpark> http://home.comcast.net/~djmpark/
From: David Park on 5 Jul 2010 21:14 I missed the simple answer, which is to CopyAs Input Text. David Park djmpark(a)comcast.net http://home.comcast.net/~djmpark/ From: David Park [mailto:djmpark(a)comcast.net] Here is a simple Grid construction with Dividers. Grid[Array[0 &, {3, 5}], Dividers -> {{True, True, False, False, False, True}, {True, True, False, True}}] Now I would like to copy and paste a sub-matrix from the output. Let's say I select and copy the 2 row, 4 column block on the lower right. (But we could copy any sub-matrix irrespective of the Dividers.) When I paste it into the notebook, it is still a GridBox structure and it still shows dividers. And the dividers are now wrong. However, when the copied item is evaluated, the result is a simple matrix, which is just what I want. My only objection is the appearance of the pasted material. Is there some method such that the Dividers might be striped before the copied material is pasted, or that the pasted material would be a simple List structure, instead of a GridBox, in the first place? David Park djmpark(a)comcast.net http://home.comcast.net/~djmpark/
From: Helen Read on 6 Jul 2010 05:02 On 7/5/2010 9:13 PM, David Park wrote: > Here is a simple Grid construction with Dividers. > > > > Grid[Array[0&, {3, 5}], > > Dividers -> {{True, True, False, False, False, True}, {True, True, > > False, True}}] > > > > Now I would like to copy and paste a sub-matrix from the output. Let's say I > select and copy the 2 row, 4 column block on the lower right. (But we could > copy any sub-matrix irrespective of the Dividers.) When I paste it into the > notebook, it is still a GridBox structure and it still shows dividers. And > the dividers are now wrong. However, when the copied item is evaluated, the > result is a simple matrix, which is just what I want. My only objection is > the appearance of the pasted material. > > > > Is there some method such that the Dividers might be striped before the > copied material is pasted, or that the pasted material would be a simple > List structure, instead of a GridBox, in the first place? CopyAs InputText -- Helen Read University of Vermont
|
Pages: 1 Prev: Defining UpValues Next: Change Default Button Method |