Hi list,

is there a way to disable folding in (La)TeX mode in specific environments?
I'm using orgtbl-mode to create org tables and convert them automatically
to LaTeX tables. The org table is inside a comment environment, which I'd
like to keep unfolded. Not just the environment itself, also everything in
it.

To keep the environment from folding, I've defined a special comment
environment called orgtbl, which TeX-fold doesn't know about (so that is
fine). However, snippets of LaTeX code inside this environment are still
folded. That's annoying because the org table can have a format
specification that can contain strings like "\\emph{%s}". TeX-fold tries to
fold those but cannot find an argument, so displays the string "[Error: No
content found]".

Alternatively, is it possible to tell TeX-fold to simply not fold if it
can't find any content? Instead of displaying the above error message, I
mean? (That would be useful in other contexts as well, e.g. within
\newcommand definitions.)

TIA

Joost


-- 
Joost Kremers
Life has its moments

_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to