The picture I load is my target:
This is my code in mathematica
StringTemplate["``Ratio is ``,``Ratio is ``,``Ratio is ``,"][
Sequence @@
Flatten@Transpose[{{Style["red", Red, Bold],
Style["green", Green, Bold], Style["blue", Blue, Bold]}, {0.1,
0.2, 0.3}}]]
But the result is
What's problem in my code?Can Anybody give some advice?
InsertionFunction -> (ToString[#, TraditionalForm] &)
$\endgroup$Row
. $\endgroup$InsertionFunction -> (ToString[Style@@#, TraditionalForm] &)
, then you can omit theStyle
from each list item. $\endgroup$