How to include a Latex package for MATLAB Latex Interpreter to use?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Aleksa Madzarevic
am 27 Mai 2022
Beantwortet: Walter Roberson
am 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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!