Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5284

MakeExpression and color

From Arturas Acus <arturas.acus@tfai.vu.lt>
Newsgroups comp.soft-sys.math.mathematica
Subject MakeExpression and color
Date 2011-09-29 06:14 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j612bb$m5g$1@smc.vnet.net> (permalink)

Show all headers | View raw


Dear Group,

I am trying to "transfer" some useful information from its
representation color without success.

For example, if a vector (with MakeBoxes) is shown in red, then I want
it have a mark v["2D"], if in blue, then v["3D"]. 

Unfortunatelly MakeExpression immediatelly removes all StyleBoxes (the
documented feature) and I do not find any way to prevend this.
(Interestingly, that MakeExpresion do not have any holding atributes).

Can anybody think how to make style box information usefull?

My opinion is that mentioned MakeExpression feature is very restrictive
and do not allow user to code usefull information in color or shape.


MakeExpression[HoldPattern[SubscriptBox[RowBox[{StyleBox["\[LeftAngleBracket]",cr_], name_,StyleBox["\[RightAngleBracket]",cr_]}],grade_]],StandardForm]:=myobject[cr]


Sincerely, Arturas Acus


Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

MakeExpression and color Arturas Acus <arturas.acus@tfai.vu.lt> - 2011-09-29 06:14 +0000

csiph-web