# latex-environment

##### How to insert a LaTeX environment around a block of text in emacs?

I'm using emacs with cdlatex-mode to edit LaTeX files. I would like to know how to insert a LaTeX environment around a block of text that is already written so that the \begin{} goes before the selected text and the \end{} goes after the selected text. I've tried to use cdlatex-environment function but doing so erases the selected text.

2021-05-25 02:02:32    分类:问答    emacs   latex   latex-environment