How to include a Latex package for MATLAB Latex Interpreter to use?

6 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 27 de Mayo de 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

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by