Skip to main content
27 votes

List of symbols without built-in meaning

Updated to include both unary and binary operators One idea is to use the usage message of a symbol as a clue that it has a special display form, probably with no built-in meaning. For example: <...
Carl Woll's user avatar
  • 131k
24 votes
Accepted

Shorthand for map at level 2

Corrected to use SubscriptBox as Rojo showed and Kvothe commented, fixing binding. Rojo shows a way in Is it possible to define custom compound assignment ...
Mr.Wizard's user avatar
  • 272k
21 votes

Having the derivative be an operator

Update I've created a paclet. Install with: ...
Carl Woll's user avatar
  • 131k
19 votes

How can I tell Mathematica to interpret 0xffff as a hexadecimal number?

Update As pointed out by @Edmund, my initial answer didn't work with hex numbers starting with an integer. To fix that, I included an initial \[DiscretionaryHyphen]...
Carl Woll's user avatar
  • 131k
14 votes

Shorthand for map at level 2

I'm not aware of a simple one, but perhaps you could make your own? The following is not great because it requires you to enter CenterDot as Esc+.+Esc, and you can'...
march's user avatar
  • 23.7k
12 votes

How to use `in` for MemberQ

The big issue here is that is a system defined symbol and messing with it in this way can have all manner of unintended consequences. You don't know what is ...
Edmund's user avatar
  • 42.3k
12 votes
Accepted

Is it possible to write time derivatives with the dot notation?

I can't test robustness, because I don't know what your work flow is, but one can Format the expression: ...
march's user avatar
  • 23.7k
11 votes

List of symbols without built-in meaning

Here is an approach based on reading the Front End resource UnicodeCharacters.tr. This method finds some operators that do not presently appear in Carl Woll's list ...
Mr.Wizard's user avatar
  • 272k
10 votes

What are the differences between using MakeBoxes and Interpretation?

Assuming that you want to create a special display form for foo that can be used in all contexts, you should use neither of these solutions. Why? ...
Szabolcs's user avatar
  • 235k
10 votes

How can I tell Mathematica to interpret 0xffff as a hexadecimal number?

One approach is to the use that Notation Package's AddInputAlias function to setup an alias that will convert Esc 0x Esc to 16^^ ...
Edmund's user avatar
  • 42.3k
9 votes

How to use `in` for MemberQ

To avoid any conflict with the built-in symbol for \[Element], I would use the small element symbol, instead (this is a ...
Jens's user avatar
  • 97.4k
9 votes
Accepted

What are the differences between using MakeBoxes and Interpretation?

Point of conversion A large and perhaps key difference is that MakeBoxes (foo) only transforms the expression into the expanded ...
Mr.Wizard's user avatar
  • 272k
9 votes

How can I automatically replace [[ and ]] with the \[LeftDoubleBracket] and \[RightDoubleBracket] operators?

You can use CellEpilog to modify the contents of the cell upon evaluation: ...
Lukas Lang's user avatar
  • 34.1k
9 votes

How can I automatically replace [[ and ]] with the \[LeftDoubleBracket] and \[RightDoubleBracket] operators?

Here is a stylesheet solution modeled after Lucas' answer, except that I use CellEventActions to tie the transformation to a keyboard short cut: ...
Carl Woll's user avatar
  • 131k
9 votes
Accepted

Making ^ work as MatrixPower for matrices

One way to do it is to use Notation package. ...
Markhaim's user avatar
  • 878
8 votes

Seeking more verbose syntax, e.g. "Then" -> ","

This still requires some commata and also additional brackets, but it might be somewhat more legible. ...
Henrik Schumacher's user avatar
8 votes
Accepted

Defining new brackets

One way of doing this is to use $Preprint: First define the variables you want to print with double brackets. Then define a ...
Daniel Huber's user avatar
  • 52.6k
7 votes

<<Notation` raises warnings

It looks like they changed InputAliases from a list to an association, but this doesn't seem to be properly documented as far as I can tell. And clearly, they also ...
Lukas Lang's user avatar
  • 34.1k
6 votes

How to use subscript in pattern names?

As mentioned by Rojo in the answer above, xr_ can't be interpreted as desired even after Symbolize is used, but one doesn't need to write ...
xzczd's user avatar
  • 66.7k
6 votes
Accepted

What are current approaches for supporting Dirac notation for quantum mechanics?

So Mathematica will actually handle most of this formatting for us, so the question then is how do we want to handle setting the rules. Since Mathematica is a symbolic language I think it's best to ...
b3m2a1's user avatar
  • 46.9k
6 votes

Mathematica ExtraPackage

You can easily get the path to any installed package file using FindFile, for example: FindFile["Notation`"] ...
Alexey Popkov's user avatar
6 votes
Accepted

DumpSave and Notation package

Notice that DumpSave has attribute HoldRest which prevents evaluation of all but its first argument. The documentation of ...
Henrik Schumacher's user avatar
6 votes
Accepted

Variables with both super-subscripts on the same vertical axis

Use Subsuperscript: Subsuperscript[f, a, b] // Style[#, 20] & Keyboard shortcut (thanks: BobHanlon):
kglr's user avatar
  • 396k
6 votes
Accepted

Output of `Subsuperscript` in TeXForm?

The short answer is to change the default of the following internal variable to False: ...
Carl Woll's user avatar
  • 131k
5 votes
Accepted

Traditional notation option?

A simple solution would be to define the function \[CapitalPhi][m_, k_] := Cyclotomic[m, k] Then write your comparision as ...
Dr. Wolfgang Hintze's user avatar
5 votes
Accepted

Notation of multiplicative derivative

Use the Notation package. You first need to run Needs["Notation`"] which brings up a palette that you can use to enter ...
march's user avatar
  • 23.7k
5 votes

Traditional notation option?

Conversion to $\TeX$ internally uses TraditionalForm boxes. $C$ is already used there: Cyclotomic[m, 1] // TraditionalForm $...
jkuczm's user avatar
  • 15.1k
5 votes
Accepted

Adding Rule Solutions

So both points i want to address are already pointed out in the comments. First of all, overloading Plus is a really bad idea. Especially if you realize, that Plus already handles your first two ...
Julien Kluge's user avatar
  • 5,345
5 votes
Accepted

Using OverBarred variables

You want to replace a with Overbar[a], but only if it isn't already inside Overbar. So make ...
Jason B.'s user avatar
  • 68.7k
5 votes

How can I automatically replace [[ and ]] with the \[LeftDoubleBracket] and \[RightDoubleBracket] operators?

It's maybe not exactly what you want but you can always select the cell, expression, or part of it ( Ctrl-. is helpful for this ) and then do Ctrl-Shift-n to change the selection to Standard Form. ...
John Jowett's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible