Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5284 > unrolled thread
| Started by | Arturas Acus <arturas.acus@tfai.vu.lt> |
|---|---|
| First post | 2011-09-29 06:14 +0000 |
| Last post | 2011-09-29 06:14 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
MakeExpression and color Arturas Acus <arturas.acus@tfai.vu.lt> - 2011-09-29 06:14 +0000
| From | Arturas Acus <arturas.acus@tfai.vu.lt> |
|---|---|
| Date | 2011-09-29 06:14 +0000 |
| Subject | MakeExpression and color |
| Message-ID | <j612bb$m5g$1@smc.vnet.net> |
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 top | Article view | comp.soft-sys.math.mathematica
csiph-web