MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

New to MATLAB?

# Thread Subject: unreadable axis labels using latex interpreter when copying figures to powerpoint

Subject: unreadable axis labels using latex interpreter when copying figures to powerpoint

From: Maureen

### Maureen (view profile)

Date: 13 Apr, 2010 19:30:26

Message: 1 of 4

Hello-
I am trying to quickly copy figures from Matlab (R2007b) to MS Powerpoint using saveppt2.m (which, I think, copies a windows enhanced metafile to the clipboard and then pastes into Powerpoint).

When I use the default text interpreter (TeX) for axis labels, everything is fine. But when I want overlines and other fancy text labeling unsupported by TeX (I'm using LaTeX text interpreter), the axis labels look like the 'wingdings' font and are unreadable.
I'd like to copy and paste figures from Matlab to Powerpoint rather than printing figures to files and importing them (tediously) into Powerpoint.

Maybe the problem is Powerpoint doesn't support the LaTeX font. Has anyone ran into this problem? Any ideas are greatly appreciated!

-Maureen

Subject: unreadable axis labels using latex interpreter when copying figures to powerpoint

From: Andres

### Andres (view profile)

Date: 13 Apr, 2010 21:48:04

Message: 2 of 4

"Maureen " <mokunz.removehere@berkeley.edu> wrote in message <hq2goi$5va$1@fred.mathworks.com>...
> Hello-
> I am trying to quickly copy figures from Matlab (R2007b) to MS Powerpoint using saveppt2.m (which, I think, copies a windows enhanced metafile to the clipboard and then pastes into Powerpoint).
>
> When I use the default text interpreter (TeX) for axis labels, everything is fine. But when I want overlines and other fancy text labeling unsupported by TeX (I'm using LaTeX text interpreter), the axis labels look like the 'wingdings' font and are unreadable.
> I'd like to copy and paste figures from Matlab to Powerpoint rather than printing figures to files and importing them (tediously) into Powerpoint.
>
> Maybe the problem is Powerpoint doesn't support the LaTeX font. Has anyone ran into this problem? Any ideas are greatly appreciated!
>
> -Maureen

Yes, I can confirm this problem with vector graphics containing latex symbols.
http://www.mathworks.de/matlabcentral/fileexchange/18457-matlab-controls-and-writes-powerpoint
helped me to automate importing large numbers of image files into powerpoint, so if raster graphics are ok for you as well, that could be a workaround.

Subject: unreadable axis labels using latex interpreter when copying figures to powerpoint

From: us

### us (view profile)

Date: 13 Apr, 2010 22:25:07

Message: 3 of 4

"Maureen " <mokunz.removehere@berkeley.edu> wrote in message <hq2goi$5va$1@fred.mathworks.com>...
> Hello-
> I am trying to quickly copy figures from Matlab (R2007b) to MS Powerpoint using saveppt2.m (which, I think, copies a windows enhanced metafile to the clipboard and then pastes into Powerpoint).
>
> When I use the default text interpreter (TeX) for axis labels, everything is fine. But when I want overlines and other fancy text labeling unsupported by TeX (I'm using LaTeX text interpreter), the axis labels look like the 'wingdings' font and are unreadable.
> I'd like to copy and paste figures from Matlab to Powerpoint rather than printing figures to files and importing them (tediously) into Powerpoint.
>
> Maybe the problem is Powerpoint doesn't support the LaTeX font. Has anyone ran into this problem? Any ideas are greatly appreciated!
>
> -Maureen

one of the few solutions is outlined below
- r2010a, probably works with older ver as well...

s=[
'$$\pi *\left[ \begin{array}{l}',... '12 \\ ',... '12 \\ ',... '\end{array} \right]\mathop{{\int\!\!\!\!\!\int}\',... 'mkern-21mu \bigcirc}\limits_{12} ',... '{\sum\limits_i^2 {r\sqrt {12} } }$$'
];
text(.1,.5,s,'interpreter','latex','fontsize',18);
axis off;
% open a ppt session
print -dmeta -r600;
% in ppt:
% insert as enhanced metafile
% it IS quite nice...

us

Subject: unreadable axis labels using latex interpreter when copying figures to powerpoint

From: Jedediah Frey

### Jedediah Frey (view profile)

Date: 4 Jun, 2010 19:30:34

Message: 4 of 4

Checkout the updated version of saveppt2. It gives an option to copy the plot as a bitmap, which means it should look exactly like it does in Matlab as it will in PowerPoint.

Plots will look a bit different because they're actually 'pictures' now instead of the Metafile, the PowerPoint presentations will probably be a bit bigger as well.

http://www.mathworks.com/matlabcentral/fileexchange/19322-saveppt2