5
$\begingroup$

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 Mathematica, copy it (Cmd+C) and then paste it (Cmd+V) directly in Keynote; this would produce a perfect vector copy of the image which I could work on (looks to me a PDF). However in version 12.2.0.0 this does not work anymore: as I try to paste the image in Keynote I get a message saying that "The image type is not supported on this device".

Of course I could always export the figure to PDF and then import it in Keynote (there are however issues in 12.2.0.0 when exporting, which perhaps make for another question), but it is a much less practical work-flow.

So, I was wondering if any of you knows if this change in the figures' format stored in the Clipboard was intended/planned or it is a side effect/bug.

EDIT 1: Inspecting the clipboard content it looks like Mathematica 12.2.0.0 paste graphics in SVG format (which however appears as plain text in the clipboard) whereas Mathematica 12.0.0.0 is using TIFF (which is correctly interpreted as an image). Not sure there is a Mathematica option that allows to control the default format for images put in the clipboard.

$\endgroup$
1
  • 1
    $\begingroup$ Use CopyToClipboard[Rasterize[...]]. You can also increase the RasterSize option to increase the quality of the image. $\endgroup$
    – Ben Izd
    Feb 23 at 12:05
4
$\begingroup$

It is a known bug. Unfortunately, there is no way to change the current behavior.

$\endgroup$
1
$\begingroup$

I had the same issue but I found a solution (Mathematica v. 12.1.0 with Keynote 7.1) .

In Mathematica you can go to the menu bar and select

"Edit -> Copy as... -> PDF".

Works well and does not rasterize.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.