Re: [AUCTeX-devel] Manage auto insertion of labels

2014-08-13 Thread Tassilo Horn
Vladimir Lomov writes: > Also, I imagined that there will be some function that allows, > depending on context to use a customized prefix (for example, "fig" > for figures, "tab" for tables, "eq" for equations, "page" for > page-labels) That's already the case, isn't it? ,[ C-h v LaTeX-sect

[AUCTeX-devel] german quotes and quail, latin-pre.

2014-08-13 Thread Uwe Brauer
Hi I sometimes want to use the german quotes such as „ ” “ mostly in LaTeX mode: (Using for example \usepackage[german]{babel} \usepackage[utf8x]{inputenc} ) So I added to the quail package latin-pre the following entries (quail-define-package "german-prefix" "Latin-1" "DE>" t "German

Re: [AUCTeX-devel] Manage auto insertion of labels

2014-08-13 Thread Uwe Brauer
>> "Mos" == Mos writes: Hi, > Hi list, > `LaTeX-label' function always inserts labels, but I don't like this > behavior since I want to automatically add labels for some but not all > environments. Now I am curious. I insert a numerate environment if I want to refer to and therefor

Re: [AUCTeX-devel] german quotes and quail, latin-pre.

2014-08-13 Thread Mosè Giordano
Hi Uwe, 2014-08-13 11:11 GMT+02:00 Uwe Brauer : > Hi > > I sometimes want to use the german quotes such as > „ ” “ mostly in LaTeX mode: > > (Using for example > \usepackage[german]{babel} > \usepackage[utf8x]{inputenc} > ) > > So I added to the quail package latin-pre the following entries > > >

Re: [AUCTeX-devel] Manage auto insertion of labels

2014-08-13 Thread Mosè Giordano
Hi Uwe, 2014-08-13 11:23 GMT+02:00 Uwe Brauer : >>> "Mos" == Mos writes: > Hi, > > >> Hi list, >> `LaTeX-label' function always inserts labels, but I don't like this >> behavior since I want to automatically add labels for some but not all >> environments. > > Now I am curious. I

Re: [AUCTeX-devel] Manage auto insertion of labels

2014-08-13 Thread Mosè Giordano
2014-08-12 16:45 GMT+02:00 Mosè Giordano : > 2014-08-12 14:49 GMT+02:00 Tassilo Horn : >> Mosè Giordano writes: >> >>> Ok, a possibility would be to change the value accepted by >>> `LaTeX-insert-label' to, e.g, >>> >>> (t . ("section" . section) ("subsection" . environment)) >>> >>> so each e

Re: [AUCTeX-devel] german quotes and quail, latin-pre.

2014-08-13 Thread Uwe Brauer
> Hi Uwe, > 2014-08-13 11:11 GMT+02:00 Uwe Brauer : > If there is "\usepackage[german]{babel}" in the preamble, pressing the > " key twice gives me "`foo"', which in the output becomes „foo“, is > this what you want? You can customize `TeX-quote-language-alist' to > get the sam

Re: [AUCTeX-devel] Manage auto insertion of labels

2014-08-13 Thread Uwe Brauer
Hi Mosè > Hi Uwe, > 2014-08-13 11:23 GMT+02:00 Uwe Brauer : > The benefit is not being prompted for *every* possible label. I > prefer numbered equation to unnumbered ones, even if I won't reference > them, but I don't want to label each "equation" environment. I forgot to point

Re: [AUCTeX-devel] Manage auto insertion of labels

2014-08-13 Thread Uwe Brauer
> Hi Uwe, > 2014-08-13 11:23 GMT+02:00 Uwe Brauer : > The benefit is not being prompted for *every* possible label. I > prefer numbered equation to unnumbered ones, even if I won't reference > them, but I don't want to label each "equation" environment. Prompting or not is contro

Re: [AUCTeX-devel] Manage auto insertion of labels

2014-08-13 Thread Tassilo Horn
Mosè Giordano writes: > Actually, I'm noticing `LaTeX-insert-label' overlaps with > `LaTeX-label-alist' (which is undocumented in the AUCTeX manual) and > `LaTeX-section-label'. The problem is that when RefTeX is used, > `reftex-label' ignores `LaTeX-label-alist' and `LaTeX-section-label', > ins

Re: [AUCTeX-devel] Manage auto insertion of labels

2014-08-13 Thread Tassilo Horn
Uwe Brauer writes: >> The benefit is not being prompted for *every* possible label. I >> prefer numbered equation to unnumbered ones, even if I won't reference >> them, but I don't want to label each "equation" environment. > > Prompting or not is controlled by > (setq reftex-inser

Re: [AUCTeX-devel] Manage auto insertion of labels

2014-08-13 Thread Mosè Giordano
2014-08-13 15:31 GMT+02:00 Tassilo Horn : > Mosè Giordano writes: > >> Actually, I'm noticing `LaTeX-insert-label' overlaps with >> `LaTeX-label-alist' (which is undocumented in the AUCTeX manual) and >> `LaTeX-section-label'. The problem is that when RefTeX is used, >> `reftex-label' ignores `La

[AUCTeX-devel] [reftex] (was: Manage auto insertion of labels)

2014-08-13 Thread Uwe Brauer
> Uwe Brauer writes: > Yeah, and with the default value ("s" "sft") prompting occurs for > sections, figures, and tables. > The difference between that variable and Mosè's feature is that he > doesn't want a label for some environments at all, no matter if > auto-generated or

Re: [AUCTeX-devel] [reftex] (was: Manage auto insertion of labels)

2014-08-13 Thread Mosè Giordano
Hi Uwe, 2014-08-13 18:40 GMT+02:00 Uwe Brauer : > >> Uwe Brauer writes: > >> Yeah, and with the default value ("s" "sft") prompting occurs for >> sections, figures, and tables. > >> The difference between that variable and Mosè's feature is that he >> doesn't want a label for