Re: \frametitle macro is not automatically indented in frame environment in beamer
On 25/08/2021 16:52, Arash Esbati wrote: Kourosh Kalayeh 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
Re: \frametitle macro is not automatically indented in frame environment in beamer
Kourosh Kalayeh 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) Best, Arash Footnotes: [1] http://git.savannah.gnu.org/cgit/auctex.git/commit/style/beamer.el?id=a21c10a076734b710145df5950459351025b8723
Re: \frametitle macro is not automatically indented in frame environment in beamer
On 25 Aug 2021, at 10:45, Thibaut Verron wrote: No worries, thank you for clarification. I ran |C-h v| with |auto-fill-function| as an argument (while in AUXTeX mode), and I got its value as nil. Thanks, Kourosh Okay, then it looks like a new behavior indeed. It appears that the \frametitle command was never actually indented, but rather auto-filled, which had the side effect of indenting it. Now auctex checks whether the user actually wants to auto-fill before doing so. I would say that it is a bug and that indentation should be considered (or done) regardless of auto-filling. Modifying the behavior in your configuration is a bit awkward, because (afaik) you have to copy the whole (TeX-add-style-hook "beamer" ...) form from /style/beamer.el, and make the change. If you want to go that route, adding (indent-according-to-mode) before the lines saying ";; This works because \frametitle is a paragraph command." should work (untested). Best wishes, Thibaut Thank you for figuring it out. I am relatively new to this space and don't feel comfortable to change the source code. Do you know if I should report it as a bug or having it in this mail list is sufficient. Thanks, Kourosh
Re: \frametitle macro is not automatically indented in frame environment in beamer
No worries, thank you for clarification. I ran |C-h v| with |auto-fill-function| as an argument (while in AUXTeX mode), and I got its value as nil. Thanks, Kourosh Okay, then it looks like a new behavior indeed. It appears that the \frametitle command was never actually indented, but rather auto-filled, which had the side effect of indenting it. Now auctex checks whether the user actually wants to auto-fill before doing so. I would say that it is a bug and that indentation should be considered (or done) regardless of auto-filling. Modifying the behavior in your configuration is a bit awkward, because (afaik) you have to copy the whole (TeX-add-style-hook "beamer" ...) form from /style/beamer.el, and make the change. If you want to go that route, adding (indent-according-to-mode) before the lines saying ";; This works because \frametitle is a paragraph command." should work (untested). Best wishes, Thibaut
Re: \frametitle macro is not automatically indented in frame environment in beamer
On 25 Aug 2021, at 10:27, Thibaut Verron wrote: On 25/08/2021 16:11, Kourosh Kalayeh wrote: On 25 Aug 2021, at 10:06, Thibaut Verron wrote: On 25/08/2021 16:00, Kourosh Kalayeh wrote: Hi all, After most recent update of AUCTeX, I have noticed something has changed in entering “frame” environment in beamer using |C-c C-e| key; it does not automatically indent |\frametitle| macro anymore. Can anyone help me figuring out how I can achieve this. I am running AUCTeX 13.0.13 in Emacs 27.2 on MacOS. Thanks, Kourosh Hi, Can you try to reload auctex with C-c C-n (or, after saving, M-x revert-buffer, or close and reopen the file) to make sure that the beamer style file is loaded? Best wishes, Thibaut Thank you for your message. Yes, I have tried them all, no luck. Oh I'm very sorry, I read "insert" instead of "indent". What is the value of the variable auto-fill-function in your buffer? Best wishes, Thibaut I should have noted that when I use Tab, AUCTeX recognizes that it has to indent it and it indents it.
Re: \frametitle macro is not automatically indented in frame environment in beamer
On 25 Aug 2021, at 10:27, Thibaut Verron wrote: On 25/08/2021 16:11, Kourosh Kalayeh wrote: On 25 Aug 2021, at 10:06, Thibaut Verron wrote: On 25/08/2021 16:00, Kourosh Kalayeh wrote: Hi all, After most recent update of AUCTeX, I have noticed something has changed in entering “frame” environment in beamer using |C-c C-e| key; it does not automatically indent |\frametitle| macro anymore. Can anyone help me figuring out how I can achieve this. I am running AUCTeX 13.0.13 in Emacs 27.2 on MacOS. Thanks, Kourosh Hi, Can you try to reload auctex with C-c C-n (or, after saving, M-x revert-buffer, or close and reopen the file) to make sure that the beamer style file is loaded? Best wishes, Thibaut Thank you for your message. Yes, I have tried them all, no luck. Oh I'm very sorry, I read "insert" instead of "indent". What is the value of the variable auto-fill-function in your buffer? Best wishes, Thibaut No worries, thank you for clarification. I ran `C-h v` with `auto-fill-function` as an argument (while in AUXTeX mode), and I got its value as nil. Thanks, Kourosh
Re: \frametitle macro is not automatically indented in frame environment in beamer
On 25/08/2021 16:11, Kourosh Kalayeh wrote: On 25 Aug 2021, at 10:06, Thibaut Verron wrote: On 25/08/2021 16:00, Kourosh Kalayeh wrote: Hi all, After most recent update of AUCTeX, I have noticed something has changed in entering “frame” environment in beamer using |C-c C-e| key; it does not automatically indent |\frametitle| macro anymore. Can anyone help me figuring out how I can achieve this. I am running AUCTeX 13.0.13 in Emacs 27.2 on MacOS. Thanks, Kourosh Hi, Can you try to reload auctex with C-c C-n (or, after saving, M-x revert-buffer, or close and reopen the file) to make sure that the beamer style file is loaded? Best wishes, Thibaut Thank you for your message. Yes, I have tried them all, no luck. Oh I'm very sorry, I read "insert" instead of "indent". What is the value of the variable auto-fill-function in your buffer? Best wishes, Thibaut
Re: \frametitle macro is not automatically indented in frame environment in beamer
On 25 Aug 2021, at 10:06, Thibaut Verron wrote: On 25/08/2021 16:00, Kourosh Kalayeh wrote: Hi all, After most recent update of AUCTeX, I have noticed something has changed in entering “frame” environment in beamer using |C-c C-e| key; it does not automatically indent |\frametitle| macro anymore. Can anyone help me figuring out how I can achieve this. I am running AUCTeX 13.0.13 in Emacs 27.2 on MacOS. Thanks, Kourosh Hi, Can you try to reload auctex with C-c C-n (or, after saving, M-x revert-buffer, or close and reopen the file) to make sure that the beamer style file is loaded? Best wishes, Thibaut Thank you for your message. Yes, I have tried them all, no luck.
Re: \frametitle macro is not automatically indented in frame environment in beamer
On 25/08/2021 16:00, Kourosh Kalayeh wrote: Hi all, After most recent update of AUCTeX, I have noticed something has changed in entering “frame” environment in beamer using |C-c C-e| key; it does not automatically indent |\frametitle| macro anymore. Can anyone help me figuring out how I can achieve this. I am running AUCTeX 13.0.13 in Emacs 27.2 on MacOS. Thanks, Kourosh Hi, Can you try to reload auctex with C-c C-n (or, after saving, M-x revert-buffer, or close and reopen the file) to make sure that the beamer style file is loaded? Best wishes, Thibaut
\frametitle macro is not automatically indented in frame environment in beamer
Hi all, After most recent update of AUCTeX, I have noticed something has changed in entering “frame” environment in beamer using `C-c C-e` key; it does not automatically indent `\frametitle` macro anymore. Can anyone help me figuring out how I can achieve this. I am running AUCTeX 13.0.13 in Emacs 27.2 on MacOS. Thanks, Kourosh