The Basic Math Assistant palette does not show a keyboard shortcut for RightTeeArrow. Is there some hidden key combination that results in the output? (Just hoping to be able to avoid having to reach for the mouse and move over.)
Answer
If you want to do purely typesetting, you could use the similar symbol for Function:
EscfnEsc
$\mapsto$
The caveat is that this symbol has a pre-defined meaning, as you can see by entering
TraditionalForm[Function[x,f[x]]]
$x \mapsto f(x)$
If you enter the symbol only in equation cells that aren't meant to be evaluated, it doesn't matter that this pre-defined interpretation exists.
Edit: making shortcuts, the user-friendly way
If you want to be able to quickly make your own shortcuts for symbols or functions, it's also worth keeping in mind that there exists a package for that precise purpose: the Notation package.
Although I personally also use the method in Mr. Wizard's answer (see e.g. here) to make shortcuts that are easy for others to copy (like on this site), still I would recommend looking into the Notation package for your own personal use (if you don't want to memorize the manual steps).
Just type this:
Needs["Notation`"]
EscaddiaEsc
AddInputAlias["$\square$" ->$\square$]
This is the template that appears after typing the built-in shortcut. Now enter the desired abbreviation rta (or whatever you like) in the first square, and the character $\mapsto$ (\[RightTeeArrow]) in the second square.
And you're done.
Comments
Post a Comment