2016-12-16 15:34 GMT+01:00 Denis Bitouzé :
> I see. So you meant `myenv' instead of `foo', don't you?
Yes, I didn't look back to the name of the environment ;-)
> Anyway, regarding your explanation, I couldn't see the point with the
> `\' before `\|myenv' in:
>
> ┌
>
Le 16/12/16 à 15h25, Mosè Giordano a écrit :
> 2016-12-16 15:17 GMT+01:00 Denis Bitouzé :
>> But what's the point with `\\|foo'? AFAICS:
>>
>> ┌
>> │ (setq LaTeX-document-regexp "myenv")
>> └
>>
>> does the trick as well.
>
> \(a\|b\)
>
> matches "a" or "b"
2016-12-16 15:17 GMT+01:00 Denis Bitouzé :
> 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
Le 16/12/16 à 15h09, Mosè Giordano a écrit :
>> Regexp? Sigh... why life is to complicated?! ;)
>
> I don't know why it was conceived as a regexp rather than as a list of
> environment names (a regexp can be then built automatically).
Good news! :)
>> Anyway, I couldn't find any reference
2016-12-16 15:00 GMT+01:00 Denis Bitouzé :
> Hi Mosè,
>
> Le 16/12/16 à 14h38, Mosè Giordano a écrit :
>
>> 2016-12-16 8:17 GMT+01:00 Denis Bitouzé :
>>
>>> I'd like to achieve for `myenv' environment the same behavior as the
>>> `document' environment.
Hi Mosè,
Le 16/12/16 à 14h38, Mosè Giordano a écrit :
> 2016-12-16 8:17 GMT+01:00 Denis Bitouzé :
>
>> I'd like to achieve for `myenv' environment the same behavior as the
>> `document' environment. For instance, with the following content:
>>
>> ┌
>> │
Le 16/12/16 à 14h27, Tamas Papp a écrit :
> An alternative approach is use-package, eg
>
> (use-package latex
> :config (add-to-list 'LaTeX-indent-environment-list
>'("myenv" current-indentation)))
>
> See https://github.com/jwiegley/use-package
Interesting package I'll
Hi Denis,
2016-12-16 8:17 GMT+01:00 Denis Bitouzé :
> I'd like to achieve for `myenv' environment the same behavior as the
> `document' environment. For instance, with the following content:
>
> ┌
> │ \documentclass{article}
> │ \begin{document}
> │ Foo.
> │
On Thu, Dec 15 2016, Mosè Giordano wrote:
> 2016-12-15 18:37 GMT+01:00 Denis Bitouzé :
>> Could you please elaborate the trick? I added:
>>
>> ┌
>> │ (add-to-list 'LaTeX-indent-environment-list '("myenv"
>> current-indentation))
>> └
>>
>> to my `.emacs' but
Le 15/12/16 à 22h22, Mosè Giordano a écrit :
> 2016-12-15 20:27 GMT+01:00 Denis Bitouzé :
>> Maybe I didn't understand what `current-indentation' is supposed to do
>> but with the following:
>>
>> ┌
>> │ \begin{myenv}
>> │ \begin{frame}
>> │ Foo.
>> │
Le 15/12/16 à 19h56, Mosè Giordano a écrit :
> Hi Denis,
Hi Mosè,
> When you use `add-to-list' is almost always a good idea to wrap it in
> a `with-eval-after-load' (or `eval-after-load' in older Emacsens),
> unless you know when the variable is defined in your init file:
Okay, I've written
Hi Denis,
2016-12-15 18:37 GMT+01:00 Denis Bitouzé :
> Could you please elaborate the trick? I added:
>
> ┌
> │ (add-to-list 'LaTeX-indent-environment-list '("myenv"
> current-indentation))
> └
>
> to my `.emacs' but the got the error:
>
> ┌
> │ Warning
Le 21/05/16 à 20h36, Mosè Giordano a écrit :
> 2016-05-21 16:52 GMT+02:00 François Patte
> :
>> And AucTex continues to indent longtable environment as it did
>> previously ie: an unreadable source file as soon as you have a table
>> with very long rows
>
2016-05-21 16:52 GMT+02:00 François Patte :
> And AucTex continues to indent longtable environment as it did
> previously ie: an unreadable source file as soon as you have a table
> with very long rows
The problem was that file styles overrode custom
Le 21/05/2016 15:12, Mosè Giordano a écrit :
> Hi François,
>
> 2016-05-20 11:43 GMT+02:00 François Patte
> :
>> Bonjour,
>>
>> I would like to stop automatic indentation in tabular-like environment
>> (tabular, longtable...)
>>
>> I followed this:
>>
Hi François,
2016-05-20 11:43 GMT+02:00 François Patte :
> Bonjour,
>
> I would like to stop automatic indentation in tabular-like environment
> (tabular, longtable...)
>
> I followed this:
>
16 matches
Mail list logo