Questions tagged [clipboard]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6 votes
2 answers
1k views

File Path name copy&paste- single/double backslash problem

Shift+RightClick a file on windows explorer and select 'copy as path', then ctrl+v paste to mathematica notebook, then apply FileExistsQ : ex1) ...
imida k's user avatar
  • 4,285
0 votes
2 answers
54 views

Paste[] to same cell or CurrentClipboardContents[]?

I tried using Mathematica for watching my clipboard contents. Paste[] creates a new cell each time it is evaluated though. Is there a way to make ...
Cetin Sert's user avatar
4 votes
1 answer
371 views

Copy clipboard content to mathematica notebook - line break symbol changes

There are 3 kinds of line breaks \r \n \r\n For windows, \r\n is standard. Suppose that there is a file called document.txt, using \r or \r\n as line breaks. Suppose that I open document.txt with a ...
imida k's user avatar
  • 4,285
5 votes
2 answers
182 views

Image format change when doing direct Cut/Paste

I usually produce graphics with Mathematica and then use Keynote (I am on a Mac running the latest Big Sur OS) for post processing. Until version 12.0.0.0 I would directly highlight the graphics in ...
Daniele Binosi's user avatar
8 votes
4 answers
294 views

How do I make ClickToCopy copy some text rather than string?

Consider the following example: ClickToCopy["display text","file name"] When I click the display text I get ...
user13892's user avatar
  • 9,363
1 vote
1 answer
60 views

Formatting output for use in forums etc [duplicate]

If we take the (simple) example x = 1; y = 2; z = 3; x + y + z we get the (complete screen) result when copying into a more basic interface, such as a web forum ...
mf67's user avatar
  • 1,273
7 votes
3 answers
495 views

How to get the contents of clipboard in a variable?

If I copy something into the clipboard then use var=Paste[]; I get Null in the var and the ...
user13892's user avatar
  • 9,363
4 votes
1 answer
613 views

How to properly copy an image from Mathematica?

I want to copy an image in mathematica to use in another program. E.g: im = ExampleData[{"TestImage", "House"}] When I evaluate ...
MeMyselfI's user avatar
  • 1,116
6 votes
1 answer
749 views

Copy and Paste: what is copied to the clipboard?

Copy and Paste is so familiar and works so well that I never wondered what is really happening. My simple idea is that when I ...
Fred Simons's user avatar
  • 10.2k
7 votes
1 answer
747 views

How can I copy a figure to the clipboard in SVG?

I frequently include plots in my emails. The easiest and most reliable way I have found is to just capture a part of the screen using greenshot (Windows) and paste into the message. Microsoft ...
Gustavo Delfino's user avatar
4 votes
0 answers
70 views

Hidden Notebook inherits NotebookDynamicExpression?

Bug introduced in 8 or earlier and persisting through 11.3 The following behavior is stably reproduced with versions 8.0.4, 10.4.1, 11.0.1 and 11.1.1 on Windows 7 x64. Set the ...
Alexey Popkov's user avatar
2 votes
1 answer
209 views

How to get the image in the clipboard with a J/Link method?

The Paste will not give a return,just print the content of clipboard.It is hard to asign the result to a variable.I make a .NET method here to get the image in ...
yode's user avatar
  • 26.7k
3 votes
0 answers
155 views

How to send string to clipboard by wolframscript

Bug introduced in 11.0 and fixed in 11.1. This is my "t.txt" file ...
yode's user avatar
  • 26.7k
3 votes
1 answer
140 views

How to create .NET "System.Windows.Clipboard"?

I have followed the instructions for creating a blank .Net form and it works. ...
Edmund's user avatar
  • 42.2k
12 votes
0 answers
177 views

Code request: Make "copy formatted code" bulletproof

With the GeneralUtilities`PrintDefinitions functions comes a usable code formatting engine. On this site, most of the time we share code. I believe it would be ...
halirutan's user avatar
  • 113k
7 votes
2 answers
352 views

How to make a get image by a NETObject

This more then a .net question but I'm in Mathematica using.Suppose I want to get a image from my clipboard,so I make a function ...
yode's user avatar
  • 26.7k
1 vote
0 answers
106 views

Weird Copy Paste Behavior

Since 11 I've been seeing this weird copying and pasting behavior for cell groups. Here's an example where I copied and pasted a cell group below: Is there any way to change this back to the usual ...
M.R.'s user avatar
  • 31.4k
1 vote
2 answers
688 views

Printing an array such that the values can be copied and pasted to a Excel Row

Given an array I would like to print it in Mathematica such that the values can be simply copied and pasted into an Excel's row. What is the best approach for this? ...
Saqib Ali's user avatar
  • 275
11 votes
2 answers
593 views

How to copy formatted numbers as MathML without quotation marks?

I have the following code: a = 6.08717*10^6; b = a/3; c = a*1.5; d = a^2; matrix={{a, b, c, d},{b, c, d, a},{c, d, a, b},{d, a, b, c}}; matrix // EngineeringForm ...
LCarvalho's user avatar
  • 9,233
11 votes
1 answer
139 views

CopyToClipboard freezes FrontEnd

Bug introduced in 8.0 and persisting through 12.0 or later CopyToClipboard is new in 8.0. This is freezing the FrontEnd: ...
M.R.'s user avatar
  • 31.4k
5 votes
1 answer
135 views

Setting output width for CopyToClipboard

Suppose I have a long string and I copy it to the clipboard: ...
JimB's user avatar
  • 41.5k
8 votes
3 answers
259 views

Unmodified Clipboard content

How do I get unmodified text content from the clipboard? If you copy the following into the clipboard and use ClipboardNotebook[] ...
William's user avatar
  • 7,595
4 votes
0 answers
231 views

No Way to paste a Picture from Clipboard under Linux?

As far as I remember, on a Windows PC in the old days of Mathematica 4 I could paste an image from the clipboard by just pressing Ctl-V. This seems to be no longer available on my Linux PC. If I try ...
Adalbert Hanßen's user avatar
9 votes
1 answer
408 views

How can I get Mathematica to support the clipboard?

For several decades, the clipboard feature supported by all mainstream operating systems has functioned as a method of exchange between applications (not just within them), by serving as a kind of ...
orome's user avatar
  • 12.8k
1 vote
0 answers
146 views

In a tool for a programmatic drawing let us capture a locator position into a clipboard [closed]

This code allows one to fast draw a technical sketch. I simplified it to extreme. It contains a disk (instead of your real sketch) and a line pointing to a place in the sketch, which you want to ...
Alexei Boulbitch's user avatar
12 votes
1 answer
402 views

How to Copy formatted code without backslashes added?

By default code copied from the FrontEnd is formatted with backslashes added at the ends of lines. For example, evaluating in a Notebook Range[40] and copying ...
Alexey Popkov's user avatar
10 votes
1 answer
1k views

Understanding `Paste` and how to get a string from the Clipboard to use with `ImportString`

Trying to work on this question I got distracted by my first naive attempt of copying the data and then typing dat = ImportString[Paste[], "Table"] ...
rhermans's user avatar
  • 36.5k
3 votes
1 answer
136 views

Assign clipboard object in mathematica when print screen is pressed (windows)

Mathematica runs behind, while another window is selected. When I press print screen, I want mathematica too detect this and call a function with the picture as argument. ...
Coolwater's user avatar
  • 20.2k
1 vote
1 answer
487 views

How to copy an image given as a GraphicsBox expression to the clipboard?

I have a GraphicsBox expression encoding an image. I need to copy this image to the clipboard so that it can be inserted in a Microsoft Word document. When I invoke ...
Tommy J.'s user avatar
6 votes
1 answer
762 views

How to convert an image to a compressed string representation equivalent to one copied to clipboard by `CopyToClipboard[image]`?

In my recent question I asked How to embed an image into a string? The suggested solution was ...
Vladimir Reshetnikov's user avatar
25 votes
3 answers
2k views

Clipboard with transparency

After reading this question I have determined that Rasterize[Graphics[Circle[]], "Image", Background -> None] allows you to do ...
William's user avatar
  • 7,595
5 votes
2 answers
522 views

Pasting external PDF vector graphics without losing ability to export them

Update: Problem persists in version 10.2 on Mac OS X 10.9.5 As in previous versions, Mathematica 9 on Mac OS X (10.7.5 here) still has a problem with pasted PDF ...
Jens's user avatar
  • 97.2k
12 votes
3 answers
2k views

Exporting data from Excel into Mathematica using clipboard

I know that it's possible to import Excel data into Mathematica using the Import command, as we can see in this post. But sometimes I need just to do some fast ...
Murta's user avatar
  • 26.2k
34 votes
6 answers
11k views

Cut and paste data from a spreadsheet

I have a set of data points in two columns in a spreadsheet (OpenOffice Calc): I would like to get these into Mathematica in this format: ...
Lucy Brennan's user avatar
14 votes
1 answer
2k views

Copying an image from the clipboard, modifying it and returning it to the clipboard

I have a Mathematica script to help me copy images from PDFs and then make the (presumably white or nearly white) background transparent. Typically, I am looking at the PDF in Adobe Acrobat and I ...
Henry B's user avatar
  • 447
67 votes
10 answers
5k views

How to "Copy as Unicode" from a Notebook?

I spent some time manually editing a post replacing Mathematica ASCII \[Alpha] with Unicode α. I did this by laboriously ...
Mr.Wizard's user avatar
  • 271k