How to include a Latex package for MATLAB Latex Interpreter to use?
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Aleksa Madzarevic
le 27 Mai 2022
Réponse apportée : Walter Roberson
le 27 Mai 2022
Hello,
I am new to MATLAB and I would like to be able to print Cyrillic text and Latex formulas in a plot title:
title('График зависности $\varphi(t)$','Interpreter', 'latex')
However, the following warning appears and the title doesn't print correctly:
String scalar or character vector must have valid interpreter syntax:
График зависности $\varphi(t)$
Is there an easy way to fix this problem? Usually, when using Latex I would just add \usepackage[OT2]{fontenc} to preamble and then the text that I type in Latin alphabet in .tex file would be displayed as Cyrillic in the .pdf, with each Cyrillic character having its Latin representation.
Thank you in advance. I am using MATLAB as a student.
0 commentaires
Réponse acceptée
Walter Roberson
le 27 Mai 2022
There is no known way to do this for the last several years, with the exception that it is potentially possible for Report Generator
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Characters and Strings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!