Importing EMF with latex characters into Microsoft Word

6 次查看(过去 30 天)
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');

采纳的回答

Walter Roberson
Walter Roberson 2012-6-24
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.

更多回答(1 个)

Sandro
Sandro 2016-4-19
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 个评论
prak
prak 2016-11-8
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Language Support 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by