auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] exclude begin{comment} (optionally) from LaTeX-fill-regio


From: Uwe Brauer
Subject: [AUCTeX-devel] exclude begin{comment} (optionally) from LaTeX-fill-region and friends
Date: Sat, 04 Jun 2016 08:40:00 +0000
User-agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.1.50 (gnu/linux)

Hi

Since some time I am using orgtbl-mode, a minor mode from the org package,
which greatly simplifies the constructions of latex tables, even in a
latex buffer.

The idea is that the org table construct is wrapped into a
comment environment, like this.

\begin{comment}
#+ORGTBL: SEND data2 orgtbl-to-latex  :lend "\\\\ \\hline"
| / | <> | <> | <> | <> | <> | <> | <> | <> | <> | <> |
|---+----+----+----+----+----+----+----+----+----+----|
|   | A  |  6 |  8 |  8 |  9 |  9 |  6 |  7 |  8 |  9 |
|   | B  |  7 |  6 |  7 |  7 |  6 |  8 |  6 |  8 |  8 |
\end{comment}

And then is «send» as latex source code into some place of the buffer.


The only problem is when I run LaTeX-fill-region and friends
because is results in a useless (for orgtbl-mode) construct like this

\begin{comment}
  #+ORGTBL: SEND data2 orgtbl-to-latex :lend "\\\\ \\hline" | / | <> |
  <> | <> | <> | <> | <> | <> | <> | <> | <> |
  |---+----+----+----+----+----+----+----+----+----+----| | | A | 6 |
  8 | 8 | 9 | 9 | 6 | 7 | 8 | 9 | | | B | 7 | 6 | 7 | 7 | 6 | 8 | 6 |
  8 | 8 |
\end{comment}


So the question is this: could (optionally)  \begin{comment} be  exclude
from LaTeX-fill-region and friends?

thanks

Uwe Brauer 



reply via email to

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