1

LaTeX-math-mode in AUCTeX is very convenient for shorcuts. For example, I define the following in my .emacs file:

(defconst LaTeX-math-list '(?f "frac")))

Then if I type `f the Emacs buffer displays \frac{} which saves a lot of typing.

My question is: is it possible to use multiple keys for shorcuts? I would like to type `ba so that the Emacs buffer displays

\begin{align}
  \label{eq:}
\end{align}

Is this possible using LaTeX-math-list?

Similarly I would like to use `bs so that Emacs displays

\begin{equation}
  \begin{split}
  \end{split}
  \label{eq:}
\end{equation}

1 Answer 1

0

I think you're better off using cdlatex as a minor mode within AUCTeX. Form the README:

OVERVIEW

CDLaTeX is a minor mode supporting mainly mathematical and scientific text development with LaTeX. CDLaTeX is really about speed. AUCTeX (the major mode I recommend for editing LaTeX files) does have a hook based system for inserting environments and macros - but while this is useful and general, it is sometimes slow to use. CDLaTeX tries to be quick, with very few and easy to remember keys, and intelligent on-the-fly help.

Check the features from README and install it from MELPA if you want to give it a roll.

1
  • Thanks for your suggestion. CDLaTeX is great :)
    – Vikram
    Commented Jul 10, 2021 at 11:44

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.