Hi all,

please consider this .tex file where empheq.el is loaded:

--8<---------------cut here---------------start------------->8---
\documentclass{article}

\usepackage[overload]{empheq}

\begin{document}



\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
--8<---------------cut here---------------end--------------->8---

Now put point between \begin|\end{document} and hit 'C-c C-e align* RET
RET' and it looks like this:

--8<---------------cut here---------------start------------->8---
\documentclass{article}

\usepackage[overload]{empheq}

\begin{document}

  \begin{align*}
    
  \end{align*}

\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
--8<---------------cut here---------------end--------------->8---

Can someone please enlighten me why the environment is indented?  It
seems that `indent-according-to-mode' after

  (insert TeX-esc "begin" TeX-grop environment TeX-grcl)

inside `LaTeX-insert-environment' adds the indentation, but I don't
understand why.

TIA.  Best, Arash

Reply via email to