uihtml does not render LaTeX equation
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have uihtml component in App Designer which points to html documentation.
The line:
<p>My inline math code <span class="math notranslate nohighlight">\(A_\text{c} = (\pi/4) d^2\)</span>.</p>
is rendered properly in web browser as inline equation
but in uihtml component it does nothing.
How to fix that?
2 comentarios
Ramtej
el 20 de Mzo. de 2024
By default HTML does not support embedded Latex. You need to use external tools like "MathML" or display engine like "MathJax" to render Latex equations.
Respuestas (1)
Ishaan Mehta
el 3 de Sept. de 2024
Hi Pawel,
I understand that you wish to add mathematical equations as text on the user interface of an MLAPP application.
You can render LaTeX code by using the "Label" component with its "Interpreter" option set to "latex", as in the image below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1765439/image.png)
This MathWorks documentation page provides more information on the "interpreter" optoin and the supported TeX markup.
Control label appearance: https://www.mathworks.com/help/matlab/ref/matlab.ui.control.label-properties.html#:~:text=Interpreter%20%E2%80%94%20Label%20text%20interpreter
Hope this helps!
Ver también
Categorías
Más información sobre Migrate GUIDE Apps 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!