auctex
[Top][All Lists]
Advanced

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

Re: \frametitle macro is not automatically indented in frame environment


From: Arash Esbati
Subject: Re: \frametitle macro is not automatically indented in frame environment in beamer
Date: Thu, 26 Aug 2021 13:51:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50

Thibaut Verron <thibaut.verron@gmail.com> writes:

> On 25/08/2021 16:52, Arash Esbati wrote:
>>
>> Hence, you have to turn that mode on in order to get the old
>> behaviour with something like this in your init file:
>>
>>      (add-hook 'LaTeX-mode-hook #'turn-on-auto-fill)
>
> With the side effect of enabling auto-fill.

True.

> If you don't want auto-fill, a less intrusive but somewhat more
> hazardous alternative could be:
>
> (add-hook 'LaTeX-mode-hook (lambda () (setq auto-fill-function 
> 'indent-according-to-mode)))

I agree, this option is ``somewhat more hazardous''.  I think I've fixed
this issue by adding (indent-according-to-mode) before inserting
\frametitle in beamer.el[1].

Comment welcome.

Best, Arash

Footnotes:
[1]  
http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=d77538b45831f0321767fdf79f91ba89090c0211



reply via email to

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