(Posted to StackExchange a week ago, with no response.)
With:
ToExpression[RowBox[{"c", ToBoxes[Plot[Sin[x], {x, -2, 2}]], "a"}]]
I get the three elements of the array, but with "a" and then "c" at the beginning. I would like to retain the order as I have input it.
I found that:
ToExpression[RowBox[{"c", "b", "a"}]]
reverses the order, but:
ToExpression[RowBox[{"\(", "c", "b", "a", "\)"}]]
retains the input order (and removes spaces in between).
However, applying this to my original snippet:
ToExpression[
RowBox[{"\(", "c", ToBoxes[Plot[Sin[x], {x, -2, 2}]], "a", "\)"}]]
it comes back with:
RowBox[{"c", "\"Private`zztop$3\"", "a"}]
(zztop??).
Please help me understand the restrictions here, as well as possible work-arounds.
Thank you.