auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] overlay prompting


From: jfbu
Subject: Re: [AUCTeX] overlay prompting
Date: Sun, 24 Jan 2016 10:38:42 +0100

Le 15 janv. 2016 à 10:57, jfbu <address@hidden> a écrit :

> Le 15/01/2016 10:42, jfbu a écrit :
>> Le 15/01/2016 10:38, Mosè Giordano a écrit :
>>> Hi Jean-François,
>>> 
>>> 2016-01-15 10:36 GMT+01:00 jfbu <address@hidden>:
>>>> Le 15/01/2016 10:32, jfbu a écrit :
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> I am starting noticing that 11.89 now by default
>>>>> asks for Overlay spec when creating a new \item
>>>>> in a list. This is a Beamer thing I guess.
>>>>> 
>>>>> 1. this prompting is there by default, is this
>>>>> reasonable ? (just asking ;-) )
>>>>> 
>>>>> 2. how can I turn this off ? I don't regularly
>>>>> use beamer.sty.
>>>>> 
>>>>> best,
>>>>> 
>>>>> Jean-François
>>>> 
>>>> 
>>>> ah well. It is not there by default, it seems. Should
>>>> have tested sorry.
>>>> 
>>>> But it is there
>>>> in a document of mine which does not use beamer at all
>>>> but does mention Beamer at some locations, don't know
>>>> how that ends up confusing auctex.
>>> 
>>> It would be useful to see how beamer is mentioned.  Only something like
>>> 
>>>     \documentclass{...]{beamer}
>>>     \usepackage{beamer}
>>> 
>>> outside a verbatim environment would load beamer style file.  BTW, the
>>> second is wrong but unfortunately AUCTeX doesn't distinguish between
>>> classes and packages.
>>> 
>>> Bye,
>>> Mosè
>>> 
>> 
>> I am trying to pinpoint the problem, but it is a bit complicated.


Hi Mosè,

Sorry for the delay. It was a very big file, with complicated
non-typical structure (thousands of lines before \documentclass),
and I should have focused on where "beamer" actually appeared in
the file, but did not have the time back then.

Your message seems to imply that the 
following is unexpected:

% file testauctexparse.tex
\documentclass{article}
\begin{document}
% insert thousands of lines if you wish
\begin{verbatim}
\documentclass{beamer}
\end{verbatim}
\end{document}

Steps to reproduce: 

1. create the above file with extension .tex.

2. Try C-cC-e and the default environment is "frame"

3. Try an itemize environment and an Overlay spec will be ask for.

4. The following testauctexparse.el file appears in auto/:
(possibly after an extra C-xC-s)

(TeX-add-style-hook
 "testauctexparse"
 (lambda ()
   (add-to-list 'LaTeX-verbatim-environments-local "semiverbatim")
   (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperref")
   (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage")
   (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl")
   (add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl")
   (add-to-list 'LaTeX-verbatim-macros-with-braces-local "url")
   (add-to-list 'LaTeX-verbatim-macros-with-braces-local "path")
   (add-to-list 'LaTeX-verbatim-macros-with-delims-local "url")
   (add-to-list 'LaTeX-verbatim-macros-with-delims-local "path")
   (TeX-run-style-hooks
    "latex2e"
    "article"
    "art10"
    "beamer"
    "beamer10")))

I am with:
Emacs  : GNU Emacs 24.5.8 (x86_64-apple-darwin13.4.0, Carbon Version 157 AppKit 
1265.21)
 of 2015-10-31 on Atago.local
Package: 11.89

current state:
==============
(setq
 AUCTeX-date "2015-11-13"
 window-system 'mac
 LaTeX-version "2e"
 TeX-style-path '("~/.emacs.d/auctex"
                  "/Users/xxxxxx/.emacs.d/elpa/auctex-11.89/style"
                  "/Users/xxxxxx/.emacs.d/auctex/auto"
                  "/Users/xxxxxx/.emacs.d/auctex/style" "auto" "style")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master t
 [....] 
)

Best, 

Jean-François





reply via email to

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