Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

12
  • 4
    $\begingroup$ Strings don't have subscripts in them, so if you have something that looks like a string with a subscript that is just the front end displaying the string nicely but not showing the actual contents of the string. Try ToString[<<your string here>>, InputForm] to see what it really looks like. $\endgroup$ Commented Apr 2, 2024 at 20:33
  • 1
    $\begingroup$ @JasonB. It seems the "Uniconize" button in the iconized string is mis-parsing the string. The uniconized string has a syntax error. $\endgroup$ Commented Apr 2, 2024 at 20:39
  • 1
    $\begingroup$ I guess I should point out that the outputs of uniconizing and MakeBoxes are different. So I don't think it's a MakeBoxes problem. Maybe. $\endgroup$ Commented Apr 2, 2024 at 20:49
  • 1
    $\begingroup$ @JasonB. It's Mathematica that tells me there is a syntax error. No thought required: i.sstatic.net/QtfgZ.png -- A look at the box structure (Show Expression) shows it has a different structure than the input string: i.sstatic.net/2rkIx.png $\endgroup$ Commented Apr 3, 2024 at 1:49
  • 2
    $\begingroup$ The problem is that the un-iconized output is a string, not an expression. "\"\\!\\(\\*SubscriptBox[\\(a\\), \\(b\\)]\\)\"" // ToExpression will evaluate the expression. $\endgroup$ Commented Apr 3, 2024 at 8:05