6
$\begingroup$

In Mathematica, there already exists a keyboard entry for 3-dot "Therefore", which provides great convenience for input as shown below.

enter image description here

However, I find it a little odd that for its counterpart, namely the 3-dot "Because", there seems no keyboard entry available as shown below.

enter image description here

So what puzzles me is, how I can self-define a keyboard entry for 3-dot "Because"?

$\endgroup$

1 Answer 1

9
$\begingroup$

You can use InputAliases to define an alias, like SetOptions[EvaluationNotebook[], InputAliases -> {"be" -> "\[Because]"}].

This will create the alias escbeesc in the current notebook.

Note: in older versions of Mathematica, setting InputAliases in this way caused other aliases to get removed, requiring workarounds like the one outlined here. It doesn't appear to function this way anymore, in 12.3 at least.

$\endgroup$
3
  • 1
    $\begingroup$ Thanks Carl, for your helpful suggestion, which did solve the problem to some degree. However, since I usually edit several notebooks in a particular sequence during a session, only setting the keyboard alias to the current opened notebook is a bit inconvenient as I need to set it for each notebook I open all over again during the same session. To satisfy my need completely, I modified the "EvaluationNotebook[]" in your coding to "$FrontEndSession" and it works perfectly ever since. $\endgroup$
    – AlbertLew
    Commented Nov 20, 2021 at 13:32
  • $\begingroup$ Great, glad to help! $\endgroup$
    – Carl Lange
    Commented Nov 20, 2021 at 13:37
  • $\begingroup$ To thank you for your revelatory insight, I have accepted your answer. Have a nice day! $\endgroup$
    – AlbertLew
    Commented Nov 20, 2021 at 13:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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