12
$\begingroup$

After installing Mathematica 12.3 (and now with 12.3.1) in Windows 10, the default automatic replacements like "->", ">=", "!=", etc. stop working.

Options[SelectedNotebook[], InputAutoReplacements]

Returns

{InputAutoReplacements -> {}}

Edit: Apparently the new behavior is that the characters aren't replaced, but are rendered differently (when the cursor in not there).

So my problem then is that this new functionality is not working for me. -> is rendered as ->, >= is rendered as >=, etc.

In my system

CurrentValue[AutoOperatorRenderings]

returns

Inherited

And

Options[SelectedNotebook[], AutoOperatorRenderings]

returns

{AutoOperatorRenderings -> {}}

$\endgroup$
3
  • $\begingroup$ Are you sure you want the old behaviour back? See mathematica.stackexchange.com/questions/246400/… for further discussion. $\endgroup$
    – mikado
    Jul 14, 2021 at 19:07
  • 2
    $\begingroup$ Are you using a custom stylesheet for your notebook? Also, can you try to reset all your preferences as described here? (Be sure to rename the directory instead of deleting it, so you can easily revert the change) $\endgroup$
    – Lukas Lang
    Jul 14, 2021 at 20:00
  • $\begingroup$ @LukasLang Reseting the preferences worked. Thank you! $\endgroup$
    – jjagmath
    Jul 14, 2021 at 21:58

1 Answer 1

16
$\begingroup$

The functionality of InputAutoReplacements has been replaced by the (much nicer in my opinion) AutoOperatorRenderings functionality:

enter image description here

Notice how the operators are instantly replaced by their nicely-displayed variants, but the can still be easily edited.

On a fresh install of 12.3, the relevant setting contains these substitutions:

CurrentValue[AutoOperatorRenderings]
(* <|
  "|->"->"\[Function]",
  "->"->"\[Rule]",
  ":>"->"\[RuleDelayed]",
  "<="->"\[LessEqual]",
  ">="->"\[GreaterEqual]",
  "!="->"\[NotEqual]",
  "=="->"\[Equal]",
  "<->"->"\[TwoWayRule]",
  "[["->"\[LeftDoubleBracket]",
  "]]"->"\[RightDoubleBracket]",
  "<|"->"\[LeftAssociation]",
  "|>"->"\[RightAssociation]"
|> *)

enter image description here

If the result is something else on your system, you can try to reset your preferences as described here. (Be sure to rename the directory instead of deleting it, then you can easily go back if it doesn't work)

$\endgroup$
8
  • 1
    $\begingroup$ Ok. I also think that this new functionality would be better... if it worked. So the problem is that this new behavior is not working for me. -> renders like ->, not like an arrow that change back when I put the cursor there. $\endgroup$
    – jjagmath
    Jul 14, 2021 at 19:37
  • 1
    $\begingroup$ @jjagmath Does CurrentValue[AutoOperatorRenderings] return the same thing for you as shown in my answer? $\endgroup$
    – Lukas Lang
    Jul 14, 2021 at 19:51
  • 1
    $\begingroup$ No, see my updated question. $\endgroup$
    – jjagmath
    Jul 14, 2021 at 19:53
  • 2
    $\begingroup$ @Lukas Lang it is fantastic that you show what the output is for CurrentValue[AutoOperatorRenderings]! Can you, please, make this into an easily copy-and-paste-able format? It would be of great value to anyone that encounters these troubles. $\endgroup$ Jul 14, 2021 at 21:41
  • 1
    $\begingroup$ @CATrevillian I have included a version that should be copy-and-paste-able $\endgroup$
    – Lukas Lang
    Jul 14, 2021 at 21:59

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.