I am very new to Emacs using AUCTeX + the minor mode CDLaTeX to type math documents. According to what I read in Auctex reference card the keybinding `^
should give me \hat
but this is giving \uparrow
instead, please help me to understand. Also please tell me how to get \hat{.}
(.
represents the cursor).
1 Answer
From my comment:
By default auctex
should give \hat{.}
from that keybinding. However, cdlatex
changes a number of bindings and its way to enter such an accent is via '^
after the content you wish to put in the braces, e.g.
a'^
gives \hat{a}
. Examples such as ab'^
also work giving \hat{ab}
.
See the source file of cdlatex
at http://github.com/cdominik/cdlatex which documents this.
C-h k ^
, to at least tell us what that key is bound to. You can also search the Auctex and cdlatex code for that command, to see where it might be bound to that key. Do you see the problem if you only use one of the two (Auctex and cdlatex)?LaTeX-math-list
andLaTeX-math-default
: in a LaTeX buffer issues the commandsC-h v LaTeX-math-list RET
andC-h v LaTeX-math-default RET
. Paste the values of those variables in the question\hat{.}
from that keybinding. However,cdlatex
changes a number of bindings and its way to enter such an accent is via'^
after the content you wish to put in the braces. See the source file ofcdlatex
at github.com/cdominik/cdlatex which documents this.