Importing EMF with latex characters into Microsoft Word

6 ビュー (過去 30 日間)
Sam harris
Sam harris 2012 年 6 月 24 日
コメント済み: prak 2016 年 11 月 8 日
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 Center および File ExchangeLanguage Support についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by