Combining different font styles while using latex interpretor
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ashesh Sharma
le 5 Déc 2022
Commenté : Ashesh Sharma
le 6 Déc 2022
Hi, I am preparing some figures for a journal paper. For this I need to combine two different font styles for my axis labels and legends. For the variables, I need math mode, but for the text I need to be out of math mode using the arial font. So how may I go about modofying the below font such that the math mode is retained while the text part reverts to a different font type, e.g. Arial ?
xlabel ('$u_y$, CES', 'Interpreter','latex') =
I want ->
CES
0 commentaires
Réponse acceptée
Walter Roberson
le 6 Déc 2022
Unfortunately, MATLAB does not permit including the amsfont package, or any other font package. The only font control you get with MATLAB's latex is things like \textrm
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Interactive Control and Callbacks 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!