0
$\begingroup$

I have a styled and a normal string and I want to join them. However, it seems that the styled object doesn't have the structure of a string and so they cannot be joined. I can do it with Print but I don't want to because I am preparing rather complicated output. See the example below.

enter image description here

Is there a work around?

$\endgroup$
3
  • 2
    $\begingroup$ Use ToString[... , StandardForm]. $\endgroup$
    – Kuba
    Dec 28 '17 at 19:20
  • $\begingroup$ it worked! Thanks! Can you explain why it works in the StandardForm? $\endgroup$
    – Veliko
    Dec 28 '17 at 19:25
  • $\begingroup$ Because this is the form where 2D syntax/coloring etc work. Check the last answer in the linked topic. $\endgroup$
    – Kuba
    Dec 28 '17 at 19:28