Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Convert unparseable expression to boxes' topicStudent Support Forum > General > Archives > "Convert unparseable expression to boxes"

Next Comment >Help | Reply To Topic
Author Comment/Response
Matija Pretnar
02/22/03 03:14am

Hi!

Is it possible to create a function, that would convert any input that it recieves, even unparseable, to boxes?
For example
ConvertToBoxes[(x_1, x_2, ..., x_n)] would evaluate to
RowBox[{"(",
RowBox[{
SubscriptBox["x", "1"], ",",
SubscriptBox["x", "2"], ",", "\[Ellipsis]", ",",
SubscriptBox["x", "n"]}], ")"}]

If I use just ToBoxes[(x_1, x_2, ..., x_n)] I get an error, no matter what Hold, HoldForm, HoldComplete etc. I use.

Matija


URL: ,

Subject (listing for 'Convert unparseable expression to boxes')
Author Date Posted
Convert unparseable expression to boxes Matija Pretnar 02/22/03 03:14am
Re: Convert unparseable expression to boxes Forum Modera... 03/31/03 11:08am
Next Comment >Help | Reply To Topic