TeXmacs in mathematical mode, parentheses are automatically padded by default. This also results in the input of the Dirac braket symbol when it may not be the result you want. After testing, the following input methods can be used to enter
(The following _ indicates where the cursor is, tab is the TAB key, Leftarrow represents the left direction key)
Symbol: $ \left|b\right\rangle $
Input order:
1. Input | Get | _ |
2. Enter B to get |b _ |
3. Input > Tabtabtabtabtab get $ \left|b\right\rangle $
Symbol: $\left\langle a\right|$
Input order:
1. Input < Tabtabtabtabtab Get < _ >
2. Input a Get <a_>
3. Input | Get $\left\langle a\right|$
Symbol: $ \left\langle a| B \right\rangle $
Input order:
1. Input < Tabtabtabtabtab Get < _ >
2. Input AB Get < AB _ >
3. Input Leftarrow Get < a _ B >
4. Input | Get < A | _ | B >
5. Enter Tab to get < a | _ B >
6. (optional) Enter tab to adjust the middle | The size
Symbol: $ \left\langle a| H |b \right\rangle$
Input order:
1. Input < Tabtabtabtabtab Get < _ >
2. Input AB get < Ab_ >
3. Input Leftarrow get < A_b >
4. Input | Get < A | _ | B >
5. Enter H to get < a | H_ | B >
The above input method seems complex, but the actual input time has its intrinsic logic, does not need to remember at all.
There can be other better and more convenient input methods, you are welcome to point out.
Enter Dirac braket symbol in TeXmacs