auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] how to disable indentation for tabular-like environment


From: Denis Bitouzé
Subject: Re: [AUCTeX] how to disable indentation for tabular-like environment
Date: Fri, 16 Dec 2016 15:34:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Le 16/12/16 à 15h25, Mosè Giordano a écrit :

> 2016-12-16 15:17 GMT+01:00 Denis Bitouzé <address@hidden>:
>> But what's the point with `\\|foo'? AFAICS:
>>
>>   ┌────
>>   │ (setq LaTeX-document-regexp "myenv")
>>   └────
>>
>> does the trick as well.
>
>     \(a\|b\)
>
> matches "a" or "b" (but in the variable you don't need to put the
> outer parentheses, and you have to double escape the backslash), you
> have to include both "document" and "myenv" in order to indent both in
> the same way.  With your setting I'm not sure the "document"
> environment will be indented correctly.

I see. So you meant `myenv' instead of `foo', don't you?

Anyway, regarding your explanation, I couldn't see the point with the
`\' before `\|myenv' in:

  ┌────
  │ (setq LaTeX-document-regexp "document\\|myenv")
  └────
-- 
Denis



reply via email to

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