Advertisement
simonjtyler

DarkOrangeFormalSymbols

Aug 14th, 2011
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. (* Code for displaying all 52 formal symbols in a dark orange font *)
  2. (* Generalized from: *)
  3. (* http://reference.wolfram.com/mathematica/tutorial/LettersAndLetterLikeForms.html#173509264 *)
  4.  
  5. azAZ = CharacterRange["a", "z"]~Join~CharacterRange["A", "Z"];
  6. $azAZ = CharacterRange["\[FormalA]", "\[FormalZ]"]~Join~
  7. CharacterRange["\[FormalCapitalA]", "\[FormalCapitalZ]"];
  8.  
  9. Do[With[{$x = Symbol[$azAZ[[i]]], x = azAZ[[i]]},
  10. MakeBoxes[$x, _] := TagBox[x, $x &, AutoDelete -> True,
  11. BaseStyle -> {FontColor -> Darker@Orange,
  12. ShowSyntaxStyles -> False}]], {i, 52}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement