Tag Info

New answers tagged


This doesn't seem to work on Mac You can check with $PreRead = Echo (or Print in case of V<10.3) that +1 returns RowBox[{+,1}] in FrontEnd and "+1" in Kernel. So the solution is to use: $PreRead = StringReplace[#, StartOfString ~~ op : "*" | "+" | "-" | "/" :> "%" <> op] &


My definition of $Pre does not work as intended. I will edit later. See also edits of this answer. I originally intended a solution similar to that in Kuba's answer. I got confused because $PreRead does not do anything for me in a kernel window, which also seems to be the case for the OP, but not for Kuba. The kernel does not deal with boxes. In the front ...

Top 50 recent answers are included