Use LaTeX accents with tex insert method

Emacs Asked on December 6, 2020

With this answer I learned how to insert math symbols with latex syntax directly into my buffer.

What I can’t figure out is how to make accents insert properly. I want hat{beta} to insert beta hat ( β̂ ), preferably with circumflex directly on top.

One Answer

M-x describe-input-method RET tex RET will tell you the (somewhat depressing) news: lots of letters can be "hatted" but they are Latin letters only. Input methods are limited in the kind of transformation they do. There is no "hatted beta" Unicode symbol either, so the only way to do it is by writing your notes in LaTeX (or Org mode using LaTex) and produce PDF: then you can write $hat{beta}$.

If you write in Org mode (with LaTeX), you can turn on automatic preview of LaTeX fragments and see the hatted beta as an image overlay in the emacs buffer. Or you can use AucTex and its preview feature.

More details about the Org mode/LaTeX preview method can be found in this answer. More details about AucTex and its LaTeX preview feature can be found in the AucTeX/Preview LaTeX manuals.

Correct answer by NickD on December 6, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP