MATLAB Answers

Different Colors On Single Line With LaTeX Interpreter

25 views (last 30 days)
Ephraim Bryski
Ephraim Bryski on 21 Jul 2020
Commented: madhan ravi on 21 Jul 2020
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!


Sign in to comment.

Answers (1)

madhan ravi
madhan ravi on 21 Jul 2020


Show 1 older comment
Ephraim Bryski
Ephraim Bryski on 21 Jul 2020
For an example, with LaTeX I would write FN=MQ/I as:
Without LaTeX, I know I could use slashes for division for example, but this could get messy, especially with a bunch of different equations.

Sign in to comment.




Community Treasure Hunt

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

Start Hunting!