From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: auctex+orgtbl: LaTeX-fill-environment problem: The comment environment. Date: Sat, 04 Mar 2017 13:25:04 +0000 Message-ID: <87zih118en.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: auctex-devel-bounces+gead-auctex-devel=m.gmane.org@gnu.org Sender: "auctex-devel" To: auctex-devel Cc: emacs-orgmode List-Id: emacs-orgmode.gnu.org Hi All This might be interesting for members of both mailing lists. I checked and removed my private filling function, but I still run into a problem. Please consider \documentclass[12pt]{article} \begin{document} \begin{enumerate} \item First we do % BEGIN RECEIVE ORGTBL ej8b \[ \begin{matrix} r & a & b & \alpha & \beta \\ 0.9709 & 10.6286 & 7.7619 & 0.0887 & -0.5448 \\ \end{matrix} \] % END RECEIVE ORGTBL ej8b \begin{comment} #+ORGTBL: SEND ej8b orgtbl-to-latex-matrix :splice nil :skip 0 | r | a | b | \alpha | \beta | | 0.9709 | 10.6286 | 7.7619 | 0.0887 | -0.5448 | \end{comment} \item the we do \end{enumerate} \end{document} This uses the cool orgtbl feature, which eases greatly to construction of tables, matrices and friends. (Comment for the auctex users) However when I run LaTeX-fill-environment I obtain \begin{enumerate} \item First we do % BEGIN RECEIVE ORGTBL ej8b \[ \begin{matrix} r & a & b & \alpha & \beta \\ 0.9709 & 10.6286 & 7.7619 & 0.0887 & -0.5448 \\ \end{matrix} \] % END RECEIVE ORGTBL ej8b \begin{comment} #+ORGTBL: SEND ej8b orgtbl-to-latex-matrix :splice nil :skip 0 | r | a | b | \alpha | \beta | | 0.9709 | 10.6286 | 7.7619 | 0.0887 | -0.5448 | \end{comment} \item the we do \end{enumerate} \end{document} Which is bad since it destroys the orgtbl syntax. Anybody can confirm that and even suggestion a workaround? Thanks Uwe Brauer