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: Thibaut Verron
Subject: Re: \frametitle macro is not automatically indented in frame environment in beamer
Date: Wed, 25 Aug 2021 17:00:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 25/08/2021 16:52, Arash Esbati wrote:
Kourosh Kalayeh <kourosh2@umbc.edu> writes:

On 25 Aug 2021, at 10:27, Thibaut Verron wrote:

Oh I'm very sorry, I read "insert" instead of "indent". What is the
value of the variable auto-fill-function in your buffer?
I ran `C-h v` with `auto-fill-function` as an argument (while in
AUXTeX mode), and I got its value as nil.
This behaviour is due to this change in beamer.el[1].  AUCTeX now checks
if users have auto-filling enabled before filling.  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.

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)))

Best wishes,

Thibaut




reply via email to

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