MATLAB Answers

Different Colors On Single Line With LaTeX Interpreter

48 ビュー (過去 30 日間)
Ephraim Bryski
Ephraim Bryski 2020 年 7 月 21 日
コメント済み: madhan ravi 2020 年 7 月 21 日
Hi. I'm using the text function with the LaTeX interpreter and I want to use different colors on a single line. As far as I can tell this isn't possible. However, I was wondering if there was either some way to do it which I couldn't find or some workaround (right now my workaround is just using multiple text functions for a single line and manually adjusting the position but it's pretty clunky). (I also know it can be done with TeX interpreter but since it can't do things like create fractions and the style is kind of ugly for equations I wouldn't want to use it). Thanks!

採用された回答

madhan ravi
madhan ravi 2020 年 7 月 21 日
text(.1,.1,'^{{\color{red}Red}}/_{{\color{blue}Blue}}{\color{green}Green}')
  4 件のコメント
madhan ravi
madhan ravi 2020 年 7 月 21 日
So I SUPPOSE your way is the only way.

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by