2

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).

7
  • @Drew are you able to get my question now? Mar 9, 2016 at 5:17
  • Try 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)?
    – Drew
    Mar 9, 2016 at 5:25
  • You should check the values of the variables LaTeX-math-list and LaTeX-math-default: in a LaTeX buffer issues the commands C-h v LaTeX-math-list RET and C-h v LaTeX-math-default RET. Paste the values of those variables in the question
    – giordano
    Mar 9, 2016 at 6:59
  • 1
    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. See the source file of cdlatex at github.com/cdominik/cdlatex which documents this. Mar 9, 2016 at 7:58
  • thank you all for the comments, it is working after cdlatex mode is turned off. @giordano I think I am not up to that level to understand your comment. Mar 9, 2016 at 11:58

1 Answer 1

1

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.

1

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.