In Mathematica, we can often get very special symbols by typing esc ... esc or \[...], such as the Wolf or Mathematica's logo. Is it possible to define new special symbols like those and then use them as \[Wolf]?


It depends on what you mean by a "special symbol".

If you just want an Esc ... Esc shortcut to insert some predetermined expression, you can use an input alias.

Any Unicode character in the basic multilingual plane can be entered by typing \:xxxx, where xxxx is its code point in hexadecimal. You can of course define a more memorable input alias for it.

If you really want something that behaves like a character but has a custom glyph, then the answer is "not really". You would have to find an unused code point in the Private Use Area and edit Mathematica's font files to add a glyph for that code point. Which means these notebooks would only display correctly on your machine.

| improve this answer | |
  • $\begingroup$ Thanks a lot. I wanted to create a brand new character, but I think I'll give up $\endgroup$ – Riccardo Cazzin Aug 26 '17 at 18:09
  • 1
    $\begingroup$ I'm alright with this; I'm not quite ready to see emojis in a Mathematica notebook just yet... $\endgroup$ – J. M.'s discontentment Aug 26 '17 at 22:09
  • $\begingroup$ @Itai May I ask you what encoding is used by the input form \xxx? For example, "\041" corresponds to the character "!" with code 33. $\endgroup$ – Alexey Popkov Aug 27 '17 at 3:37
  • $\begingroup$ @Itai Also please take a look at this . $\endgroup$ – Alexey Popkov Aug 27 '17 at 9:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.