Importing EMF with latex characters into Microsoft Word
8 views (last 30 days)
Show older comments
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');
0 Comments
Accepted Answer
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.
0 Comments
More Answers (1)
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
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.
See Also
Categories
Find more on Call Python from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!