Latex Support to publish in html format

조회 수: 20(최근 30일)
Alessio Nava
Alessio Nava 2013년 9월 28일
댓글: Kerem Karatas 2014년 5월 22일
The following Latex code does not get recognised by Matlab when trying to publish in html:
The problem is undoubtedly the double integral; I get the following error: "Unable to interpret Latex string".
Could please someone help me? Why doesn't Matlab recognise this Latex command? It is perfectly fine with:
Thanks in advance.

채택된 답변

Oleg Komarov
Oleg Komarov 2013년 9월 28일
편집: Oleg Komarov 2013년 9월 28일
Two workarounds:
1) Use \int\int with negative spaces in between \!\!
text(.5,.5,'$\int\!\!\int_{E} f\left(x,y\right) dxdy$','interpreter','latex')
2) Or integrate your .html with MathJax. Here's the technical solution that explains how: How can I use MathJax to render the LaTeX math in the published output in MATLAB 7.10 (R2010a)?
  댓글 수: 6
Kerem Karatas
Kerem Karatas 2014년 5월 22일
The issue still persists. I would love to find a workaround so that I can force it to display using MathJax. Also I believe the ability to display inline Latex using Mathjax is much more important.

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

추가 답변(2개)

Youssef  Khmou
Youssef Khmou 2013년 9월 28일
The right and left parenthesis are maybe not recognized , try directly this command :
>>text(0.5,0.5,'\int_{E}f ( x,y ) dx dy')
  댓글 수: 2
Youssef  Khmou
Youssef Khmou 2013년 9월 28일
waiting for an answer, so far you can try :
>>text(x,y,'the expression', 'interpreter','latex');

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

Daniel Shub
Daniel Shub 2013년 9월 28일
\iint and \mathbb are defined by the AMS packages. Hereford they are not available. There are a number of hack solutions that I have posted, but it is probably best to avoid using anything that is not defined in the LaTeX kernel and article class (note that size commands are not available).
  댓글 수: 2
Daniel Shub
Daniel Shub 2013년 9월 28일
편집: Daniel Shub 2013년 9월 28일
I gave an answer a while back on, but I am telling you the work arounds are hacks. I would just stick with base LaTeX and not use macros that depend on packages.

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


Community Treasure Hunt

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

Start Hunting!

Translated by