emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] auctex+orgtbl: LaTeX-fill-environment problem: The comment environme


From: Uwe Brauer
Subject: [O] auctex+orgtbl: LaTeX-fill-environment problem: The comment environment.
Date: Sat, 04 Mar 2017 13:25:04 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

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 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]