bug#30239: Renaming environment "slide" to "frame"

2024-03-06 Thread Arash Esbati
Agathe Herrou  writes:

> Hello,
>
> When using AUCTeX with Beamer, the default environment when running C-c
> C-e is "slide". As far as I know, this environment doesn't exist, and
> the correct one is "frame". Attached is a suggested corrective.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

beamer.el shipped with AUCTeX doesn't provide a slide environment; and
I'm not sure why you load the slides.el when you're using beamer.  I
don't see an AUCTeX issue here, therefore I'm closing this report.

Best, Arash



___
bug-auctex mailing list
bug-auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-auctex


bug#30239: Renaming environment "slide" to "frame"

2018-01-24 Thread Arash Esbati
Mosè Giordano  writes:

> 2018-01-24 19:10 GMT+01:00 Agathe Herrou :
>> Hello,
>>
>> When using AUCTeX with Beamer, the default environment when running C-c
>> C-e is "slide". As far as I know, this environment doesn't exist, and
>> the correct one is "frame". Attached is a suggested corrective.
>
> Thanks for your contribution, however there is no "slide" environment
> in our style file for beamer:
> https://git.savannah.gnu.org/cgit/auctex.git/tree/style/beamer.el

Hi Mosè,

looking at the manual of beamer, page 222, there is actually a "slide"
environment:

\begin{slide}[]{}
  
\end{slide}
...
Example: The following two texts have the same effect:
\begin{slide}[trans=Glitter,toc=short]{A Title}
  Hi!
\end{slide}
and
\subsection{short} % omitted, if framesassubsections is not specified
\begin{frame}[fragile=singleslide]
  \transglitter
  \frametitle{A Title}
  Hi!
\end{frame}

So we should add it instead of removing it :-)  Do you know if Thomas is
still active?  I have never used beamer so I would have to read to
manual first before touching the style.

Best, Arash



___
bug-auctex mailing list
bug-auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-auctex


bug#30239: Renaming environment "slide" to "frame"

2018-01-24 Thread Agathe Herrou
The file I modified was slides.el:
https://git.savannah.gnu.org/cgit/auctex.git/tree/style/slides.el.
Applying this modification then reinstalling AUCTeX from sources
produced the desired effect, i.e. making the default environment
prompted to be "frame" when editing a beamer file, so I assumed it was
the solution to the problem I was having. Maybe the problem comes from
the fact that slides.el shouldn't be used for beamer files?

Agathe


On 24/01/2018 19:31, Mosè Giordano wrote:
> Hi Agathe,
>
> 2018-01-24 19:10 GMT+01:00 Agathe Herrou :
>> Hello,
>>
>> When using AUCTeX with Beamer, the default environment when running C-c
>> C-e is "slide". As far as I know, this environment doesn't exist, and
>> the correct one is "frame". Attached is a suggested corrective.
> Thanks for your contribution, however there is no "slide" environment
> in our style file for beamer:
> https://git.savannah.gnu.org/cgit/auctex.git/tree/style/beamer.el
> Where did get that style file?
>
> Bye,
> Mosè




___
bug-auctex mailing list
bug-auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-auctex


bug#30239: Renaming environment "slide" to "frame"

2018-01-24 Thread Mosè Giordano
Hi Agathe,

2018-01-24 19:10 GMT+01:00 Agathe Herrou :
> Hello,
>
> When using AUCTeX with Beamer, the default environment when running C-c
> C-e is "slide". As far as I know, this environment doesn't exist, and
> the correct one is "frame". Attached is a suggested corrective.

Thanks for your contribution, however there is no "slide" environment
in our style file for beamer:
https://git.savannah.gnu.org/cgit/auctex.git/tree/style/beamer.el
Where did get that style file?

Bye,
Mosè



___
bug-auctex mailing list
bug-auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-auctex


bug#30239: Renaming environment "slide" to "frame"

2018-01-24 Thread Agathe Herrou
Hello,

When using AUCTeX with Beamer, the default environment when running C-c
C-e is "slide". As far as I know, this environment doesn't exist, and
the correct one is "frame". Attached is a suggested corrective.

Best regards,

Agathe Herrou

diff --git a/style/slides.el b/style/slides.el
index e73826ae..5f6ad4e8 100644
--- a/style/slides.el
+++ b/style/slides.el
@@ -40,12 +40,12 @@
 (TeX-add-style-hook
  "slides"
  (lambda ()
-   (LaTeX-add-environments "slide"
+   (LaTeX-add-environments "frame"
 			   "overlay"
 			   "note")
(LaTeX-add-counters "minutes" "seconds")
-   (LaTeX-add-pagestyles "headings" "slide" "overlay" "note")
-   (setq LaTeX-default-document-environment "slide"))
+   (LaTeX-add-pagestyles "headings" "frame" "overlay" "note")
+   (setq LaTeX-default-document-environment "frame"))
  LaTeX-dialect)
 
 ;;; slides.el ends here
___
bug-auctex mailing list
bug-auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-auctex