auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] How to fold #+ORGTBL: lines


From: Tassilo Horn
Subject: Re: [AUCTeX] How to fold #+ORGTBL: lines
Date: Thu, 27 Feb 2014 18:23:51 +0100
User-agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux)

Thorsten Grothe <address@hidden> writes:

Hi Thorsten,

first of all, I don't use folding so I'm no expert there.

> I'm working a lot with orgtbl's in my latex documents. 
> I would like to know if it's possible make some folding rules for
> lines like this to beautify my code and make it more readable..
>
> The lines look like this
>
> #+ORGTBL: SEND sec-6 orgtbl-to-latex :skip 3 :splice t :lend
> "\\\\\\cmidrule(lr){4-4}\\\cmidrule(lr){5-5}\\\cmidrule(lr){6-6}\\\cmidrule(lr){7-7}"
>   :hline
> "%%"

Are those lines in comments or something?

> Does anyone have an idea?

A quick look seemed to indicate that folding works only for math,
macros, and environments.  How about defining your own orgtbl
environment and then wrapping those orgtbl lines with it.  Then you can
define folding for your orgtbl environment in `TeX-fold-env-spec-list'
or `LaTeX-fold-env-spec-list'.

Just an idea,
Tassilo




reply via email to

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