1,990 reputation
942
bio website
location
age 29
visits member for 2 years, 3 months
seen 1 hour ago

As time goes on, I grow more disillusioned with quantum field theory.


Oct
26
awarded  Enthusiast
Oct
24
comment To UpSet or not to UpSet when using MakeBoxes
@LeonidShifrin see my comment above to Rojo
Oct
24
comment To UpSet or not to UpSet when using MakeBoxes
@Rojo It turns out I can format things like $f^2(x,y)$ by using MakeBoxes[Power[myfuncF[a_, b_], n_], TraditionalForm] := RowBox[{SuperscriptBox["f", ToBoxes[n]], "(", Sequence @@ Riffle[Map[ToBoxes, {a, b}], ","], ")"}], which I cannot do using UpSet (since myfuncF would be too deep).
Oct
24
accepted Nested list of patterns in SyntaxInformation “ArgumentsPattern”
Oct
23
accepted Fast functional method for multiplying duplication numbers in a large list
Oct
23
asked Nested list of patterns in SyntaxInformation “ArgumentsPattern”
Oct
23
asked Fast functional method for multiplying duplication numbers in a large list
Oct
23
accepted Zoom settings other than 50% 75% 100%,
Oct
22
asked Zoom settings other than 50% 75% 100%,
Oct
22
accepted Removing spurious parenthesis in `TraditionalForm`
Oct
21
asked Removing spurious parenthesis in `TraditionalForm`
Oct
20
accepted Catching error in middle of evaluation of compiled function
Oct
19
asked To UpSet or not to UpSet when using MakeBoxes
Oct
19
comment How to re-parse (or re-map) character '.' to user-defined function
There's one other problem: the CenterDot character has too much space on either side. If the font designer had kept the spacing the same as that of the ordinary Dot, I think I would have opted for your alternative.
Oct
18
comment How to re-parse (or re-map) character '.' to user-defined function
Nice alternative, +1, But esc-dot-esc is two too many key-strokes for me
Oct
18
accepted How to re-parse (or re-map) character '.' to user-defined function
Oct
16
comment How to re-parse (or re-map) character '.' to user-defined function
@mfvonh This looks like what I need! But there are few issues: Inputing x.y^2 leads to some problems with rendering the boxes. Do you know how to fix it? Also. Dot[x,y] leads to x.y. But I'd like Dot not to get changed to . . Do you know how to stop this behavior? Thanks!
Oct
15
comment How to re-parse (or re-map) character '.' to user-defined function
Next, I tried to format the output of myDot. Following the link at the end of your answer, I came up with MakeBoxes[myDot[arg1__, arg2__], _] ^:= InterpretationBox[RowBox[{arg1, ".", arg2}], myDot[arg1, arg2]]. The problem with this is that (1) myDot[a,b] leads to Global'a.Global'b. How do I get rid of the Global context? and (2) myDot[a,b^2] leads to error message "An unknown box name (Power) was sent as the BoxForm for the expression. Check the format rules for the expression." Do you know how I can allow more complicated structures inside RowBox?
Oct
15
comment How to re-parse (or re-map) character '.' to user-defined function
Hmm... now that I think about it, the answer is actually no; it is not necessary, and probably wiser to always map . to myDot. The original reason for requiring that the arguments be symbolic is that if the objects on both sides of . had head List, then it should proceed to operate as built-in Dot on the two lists. But I realize this can be confusing to the users, and users would anyway fall back on explicit use of Dot to sum the products of list elements.
Oct
15
awarded  Tumbleweed