Importing EMF with latex characters into Microsoft Word

6 visualizaciones (últimos 30 días)
Sam harris
Sam harris el 24 de Jun. de 2012
Comentada: prak el 8 de Nov. de 2016
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');

Respuesta aceptada

Walter Roberson
Walter Roberson el 24 de Jun. de 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.

Más respuestas (1)

Sandro
Sandro el 19 de Abr. de 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 comentario
prak
prak el 8 de Nov. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Language Support en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by