Importing EMF with latex characters into Microsoft Word

8 views (last 30 days)
Hi,
I am trying to import EMF's which I create in R2010B into a word document. The graphics of the figures look fine in word, except the x and y labels are coming out a bunch of random symbols.
I'm guessing the problem is more related to word than MATLAB, just hoping that some knows why it's doing it. The code I am using to create the figure labels is shown below.
Thanks,
Sam
ylabel('$$q^{\prime} = {\sigma}_1 - {\sigma}_3 \ (kPa)$$'...
,'interpreter','latex','fontsize',16,'FontName','Timesnewroman');
xlabel('$$p^{\prime} = \frac{\sigma_1+2\sigma_3}{3} \ (kPa)$$'...
,'interpreter','latex','fontsize',16,'FontName','Timesnewroman');

Accepted Answer

Walter Roberson
Walter Roberson on 24 Jun 2012
Does Word call its font 'Timesnewroman' ? Probably not. It probably knows the font as "Times New Roman". You might need to specify that as the FontName, and it might look wrong in MATLAB but import okay in Word.

More Answers (1)

Sandro
Sandro on 19 Apr 2016
It will be surely too late for answering to Sam harris, but it may be useful to someone other.
I had the same problem, and found it is related to Word calling the Matlab latex interpreter when rendering the emf object. If you open a Matlab session on the same PC, and use the latex interpreter in that session, then the emf picture will look OK in the Word file.
However, I wonder the reason for this behavior, I expected the emf file to embed anything necessary for its rendering.
  1 Comment
prak
prak on 8 Nov 2016
You solved an age-old quandary for me. Sometimes, word would read the characters properly, sometimes it won't. Thank you!
I wonder if there is any way for word to do this (interpret special characters in the .emf file) without having to do anything in MATLAB.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!