emacs - org-cdlatex template expansion does not work the second time -


i have extended org-cdlatex-mode expand pmatrix environment using pma keyword (config below). works first time want insert pmatrix, not second time within same math environment.

consider following example:

\begin{align} pma \end{align} 

if press tab key cursor after pma, wanted expansion

\begin{align} \begin{pmatrix}  \end{pmatrix} \end{align} 

however, if want insert second pmatrix environment, not work:

\begin{align} \begin{pmatrix}   x & y \end{pmatrix} = pma \end{align} 

pressing tab key @ end of pma line moves cursor forward end of next line.

can explain why , suggest fix?


emacs version 24.4.1, org mode 8.2.10.
edit: same behaviour org mode 9.0.9.
edit #2: same behaviour default template expansions, e.g. fr.

content of minimal .emacs:

 (add-hook 'org-mode-hook 'turn-on-org-cdlatex)  (setq cdlatex-env-alist       '(("pmatrix" "\\begin{pmatrix}\n?\n\\end{pmatrix}" nil)))  (setq cdlatex-command-alist       '(("pma" "insert pmatrix env" "" cdlatex-environment ("pmatrix") nil t))) 


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -