Latex Support to publish in html format
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Alessio Nava
il 28 Set 2013
Commentato: Kerem Karatas
il 22 Mag 2014
The following Latex code does not get recognised by Matlab when trying to publish in html:
\iint_{E}f\left(x,y\right)dxdy
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:
\int_{E}f\left(x,y\right)dx
Thanks in advance.
Alessio
0 Commenti
Risposta accettata
Oleg Komarov
il 28 Set 2013
Modificato: Oleg Komarov
il 28 Set 2013
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 Commenti
Kerem Karatas
il 22 Mag 2014
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.
Più risposte (2)
Youssef Khmou
il 28 Set 2013
Alessio
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 Commenti
Youssef Khmou
il 28 Set 2013
waiting for an answer, so far you can try :
>>text(x,y,'the expression', 'interpreter','latex');
......
Daniel Shub
il 28 Set 2013
This is in essence a duplicate of http://www.mathworks.co.uk/matlabcentral/answers/86824-which-latex-characters-does-2013a-support-warning-unable-to-interpret-latex-string
\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 Commenti
Daniel Shub
il 28 Set 2013
Modificato: Daniel Shub
il 28 Set 2013
I gave an answer a while back on TeX.se http://tex.stackexchange.com/a/98803/10038, 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.
Vedere anche
Categorie
Scopri di più su Environment and Settings in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!