How to add Latex packages for the latex interpreter / how to print the euro symbol with the latex interpreter ?

조회 수: 14 (최근 30일)

Hi,

Is there a way to have the euro symbol (€) displayed on the label or title of one figure, when this string is created using the latex interpreter?

In latex, displaying € requires to add some specific package, for instance

\usepackage{eurosym}

and then, for instance in math mode, the symbol can be displayed using $\textrm{\euro}$ (at this point, I do not care about the specific font, sherif, etc.)

However, when trying the same for a figure label in matlab, for example

ylabel('$$z_{2}^{j} [\textrm{\euro}]$$','interpreter','latex','fontsize',12)

it does not work because matlab does not know of the 'eurosym' package. I looked around but could not find a simple way to include a package. Is there a simple way to do this? Alternatively, is there a simple way to get the € symbol displayed with the latex interpreter ?

I am using MATLAB R2014b on a Windows 7 computer.

Thanks in advance for your help,

Olivier

채택된 답변

Walter Roberson
Walter Roberson 2015년 8월 6일
  댓글 수: 3
Mike Garrity
Mike Garrity 2015년 8월 7일
I'm afraid that the LaTeX interpreter is the one remaining part of the graphics system which doesn't yet support Unicode characters.
OlivierMegel
OlivierMegel 2015년 8월 21일
OK thanks for this answer, at least I know that there is nothing I can do (except waiting for a new MATLAB version)!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by