2

I'm trying to copy Mathematica figures into word, but when I do, I get tons of extra white-space for some reason. Either standard ctrl-c - ctrl-p or "copy graphic" does this.

I understand that I could export the figure as a graphic, open the png file, and copy it from there into my word document, but I feel like there must be a better way to do this. It's possible this is not a Mathematica issue, but I've only noticed this type of thing when copying pictures from Mathematica. Can anyone help?

extra whitespace from *Mathematica*

This problem occurs for me given even the most basic plot (e.g. Plot[x,{x,-1,1}]). I'm using Mathematica 10.2 Student Edition and the Word 2016 Preview. The Word 2016 preview might seem suspect, but I'm pretty sure I was having the exact same problem before with word 2013.

Partial Solution: I have no idea what the problem is with my system, but using Copy as Bitmap fixed this issue for me.

It still happens with Copy as Metafile.

rhermans
  • 36,518
  • 4
  • 57
  • 149
aquirdturtle
  • 200
  • 4
  • 1
  • 1
    I can not reproduce the extra white spaces using a simple Plot. You might add some code that creates a simplified Plot that can reproduce the behavior you observed. – Karsten7 Sep 27 '15 at 08:04
  • Greetings! Make the most of Mma.SE and take the [tour] now. Help us to help you, write an excellent question. Edit if improvable, show due diligence, give brief context, include minimum working examples of code and data in formatted form. As you receive give back, vote and answer questions, keep the site useful, be kind, correct mistakes and share what you have learned. – rhermans Sep 27 '15 at 08:07
  • 2
    I can NOT reproduce your problem. Office 2007, Windows 7SP1 64bit. Tried Copy as Bitmap and Copy as Metafile. You should give more information about yous system and formatted code. – rhermans Sep 27 '15 at 08:10
  • This problem occurs for me given even the most basic plot (e.g. Plot[x,{x,-1,1}]). I'm using Mathematica 10.2 Student Edition and the Word 2016 Preview. The word 2016 preview might seem suspect, but I'm pretty sure I was having the exact same problem before with word 2013. – aquirdturtle Sep 27 '15 at 08:14
  • @rhermans forgive my ignorance, but how do you copy as bitmap or as metafile in mathematica? – aquirdturtle Sep 27 '15 at 08:15
  • 1
    Edit > Copy As...> Last two options, look here: http://i.stack.imgur.com/F2CHO.png – rhermans Sep 27 '15 at 08:18
  • 1
    I cannot reproduce the problem with Mathematica 10.2 and Word 2003 on Win7 x64. – Alexey Popkov Sep 27 '15 at 08:18
  • @rhermans I still have no idea what my overall problem is and why it only seems to effect me, but "Copy as Bitmap" fixed the problem for me. Thanks! – aquirdturtle Sep 27 '15 at 08:20
  • Have you tried pasting into some other software? You should [Edit] and update your question withe the new information. Please confirm that it does still happen if Copy as Metafile. – rhermans Sep 27 '15 at 08:21
  • It still happens with copy as metafile. – aquirdturtle Sep 27 '15 at 08:26
  • I cannot confirm. With Mathematica 10.2 and Office 2016 I get http://i.stack.imgur.com/y3IDG.gif –  Sep 27 '15 at 08:37
  • Maybe it is an OS-related issue? Which OS do you use? – Alexey Popkov Sep 27 '15 at 08:51
  • Also are you using x86 or x64 version of MS Office? – Alexey Popkov Sep 27 '15 at 08:57
  • @Alexey Popkov I am on Windows 10, Mathematica 10.2 and Office 2016. I have no problems in copying (ctl C) and pasting (ctl V) figures from Mathematica to Word 2016. The only thing I have to do is to justify the figure with a right mouseclick (text position and size). –  Sep 27 '15 at 09:11
  • My laptop is a x86 and MS Office is x32. –  Sep 27 '15 at 09:15
  • @aquirdturtle Which is your OS and of which bit depth your MS Office 2016 (x86 or x64)? – Alexey Popkov Sep 27 '15 at 11:19
  • Windows 10 does copying differently than previous OSes, and often doesn't play well with weird copy formats like images from Mathematica. Bitmap should work still, but I doubt this will be fixed with updates. – laudiacay Sep 28 '15 at 16:00
  • Because no one else reported reproducing the problem, I thought I'd comment that I'm having the very same white-space problem with regular 'Copy Graphic'. The problem seemed to appear out of nowhere--except that it did appear after I first used Raster. yup = Graphics[ Raster[ImageData[yu, DataReversed -> True], {{Sqrt[Pi/2] - 0.07, -0.12}, {Sqrt[Pi/2] + 0.07, -0.05}}], Frame -> False] Using Edit/Copy as/Bitmap does give a proper copy. – Scott Barnett Mar 02 '19 at 18:44

0 Answers0