Re: [AUCTeX] Re: labels in align env (amsmath style)

2006-11-09 Thread David Kastrup
Seweryn Kokot <[EMAIL PROTECTED]> writes:

>> And C-c C-n does not change that?
>
>> What is your file structure?  What is the name of your file?  Is it
>> the same file in which the \usepackage{amsmath} is to be found?  Do
>> you have a bibliography file with the same file name (except the
>> extension, of course)?  That would disturb parsing.
>
> This is my file, I've just created it in a new directory and the
> problem is the same. both equation and align can be completed with TAB.

Then probably some automatically created amsmath.el gets loaded rather
than the hand-crafted one.

Please use
M-x TeX-submit-bug-report RET
to report problems since that will list details from your
configuration.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


Re: [Bug-AUCTeX] Re: 11.83; AUCTeX toolbar

2006-11-09 Thread Nick Roberts
 > > --- toolbar-x.el   25 May 2006 07:50:57 -  1.12
 > > +++ toolbar-x.el   13 Sep 2006 20:15:00 -  1.13
 > > @@ -1322,7 +1322,8 @@
 > > toolbarx-internal-button-switches))
 > >(used-keys (list :used-symbols nil))
 > >(tool-bar-map-temp))
 > > -(let ((tool-bar-map (make-sparse-keymap)))
 > > +(let (tool-bar-map)
 > > +  (set (make-local-variable 'tool-bar-map) (make-sparse-keymap))
 > 
 > Eek.  That can't be right.  The previous version did not modify any
 > global value of tool-bar-map, but made a local let-binding.

I don't know if its fixed in CVS or not.  I must admit I've lost the plot with
tex-mode in Emacs and tex-mode in AUCTeX -- it would be be nice if AUCTeX were
part of Emacs but you probably don't want to tied to a 5+ year release cycle,
then there's XEmacs too... -- anyway there might be something odd about my
setup.  In my .emacs I have:

(autoload 'TeX-load-hack "/usr/share/emacs/site-lisp/tex-site")
(TeX-load-hack)

It might help to look at how gud-tool-bar-map is defined gud.el in Emacs 22.
This is used by multiple buffers too.


-- 
Nick   http://www.inet.net.nz/~nickrob


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


[AUCTeX] Re: labels in align env (amsmath style)

2006-11-09 Thread Seweryn Kokot
> And C-c C-n does not change that?

> What is your file structure?  What is the name of your file?  Is it
> the same file in which the \usepackage{amsmath} is to be found?  Do
> you have a bibliography file with the same file name (except the
> extension, of course)?  That would disturb parsing.

This is my file, I've just created it in a new directory and the
problem is the same. both equation and align can be completed with TAB.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
  \label{eq:1}
  x = b
\end{equation}
\begin{align}
  y = 2
\end{align}
\end{document}
%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 
---



___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] Re: labels in align env (amsmath style)

2006-11-09 Thread David Kastrup
Seweryn Kokot <[EMAIL PROTECTED]> writes:

>> No, this should not be necessary.  You have a problem with parsing,
>> seemingly.  C-c C-e should place the first label by itself, and M-RET
>> should place \\ and another label.
> Typing C-c C-e equation I indeed get \label by itself but not in the align 
> env.
>
>> What does
>> C-h v LaTeX-item-list RET
>> report?
>
> LaTeX-item-list is a variable defined in 
> `/usr/share/emacs-snapshot/site-lisp/auctex/latex.elc'.
> Its value is 
> (("description" . LaTeX-item-argument)
>  ("thebibliography" . LaTeX-item-bib))

And C-c C-n does not change that?

What is your file structure?  What is the name of your file?  Is it
the same file in which the \usepackage{amsmath} is to be found?  Do
you have a bibliography file with the same file name (except the
extension, of course)?  That would disturb parsing.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


Re: [Bug-AUCTeX] Re: 11.83; AUCTeX toolbar

2006-11-09 Thread David Kastrup
Reiner Steib <[EMAIL PROTECTED]> writes:

> On Thu, Nov 09 2006, David Kastrup wrote:

>   * toolbar-x.el (toolbarx-emacs-refresh): Don't modify global value
>   of `tool-bar-map'.
>
> --8<---cut here---start->8---
> --- toolbar-x.el  25 May 2006 07:50:57 -  1.12
> +++ toolbar-x.el  13 Sep 2006 20:15:00 -  1.13
> @@ -1322,7 +1322,8 @@
>toolbarx-internal-button-switches))
>   (used-keys (list :used-symbols nil))
>   (tool-bar-map-temp))
> -(let ((tool-bar-map (make-sparse-keymap)))
> +(let (tool-bar-map)
> +  (set (make-local-variable 'tool-bar-map) (make-sparse-keymap))

Eek.  That can't be right.  The previous version did not modify any
global value of tool-bar-map, but made a local let-binding.

The changed version first creates a let-binding, _then_ makes a local
variable.  What will happen when the let-binding is dissolved?

>From the Elisp manual:

(info "(elisp) Creating Buffer-Local")

[...]

 Making a variable buffer-local within a `let'-binding for that
 variable does not work reliably, unless the buffer in which you do
 this is not current either on entry to or exit from the `let'.
 This is because `let' does not distinguish between different kinds
 of bindings; it knows only which variable the binding was made for.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


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


[AUCTeX] Re: labels in align env (amsmath style)

2006-11-09 Thread Seweryn Kokot

> No, this should not be necessary.  You have a problem with parsing,
> seemingly.  C-c C-e should place the first label by itself, and M-RET
> should place \\ and another label.
Typing C-c C-e equation I indeed get \label by itself but not in the align env.

> What does
> C-h v LaTeX-item-list RET
> report?

LaTeX-item-list is a variable defined in 
`/usr/share/emacs-snapshot/site-lisp/auctex/latex.elc'.
Its value is 
(("description" . LaTeX-item-argument)
 ("thebibliography" . LaTeX-item-bib))



___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


[Bug-AUCTeX] Re: 11.83; AUCTeX toolbar

2006-11-09 Thread Reiner Steib
On Thu, Nov 09 2006, David Kastrup wrote:

> Ralf Angeli <[EMAIL PROTECTED]> writes:
>> * Nick Roberts (2006-11-09) writes:
>>
>>> Load AUCTeX is e.g by visiting a LaTeX file.  Turn tool-bar-mode on,
>>> then off and on again.  Then every buffer has AucTeX buttons in its
>>> toolbar and all local icons/buttons are overwritten.  

I.e. tool-bar-mode is off initially?

I can't reproduce this with the following commands (AUCTeX CVS):

emacs -xrm Emacs.toolBar:0 /tmp/foo.tex
M-x tool-bar-mode RET
M-x tool-bar-mode RET
M-x tool-bar-mode RET
C-c b *scratch* RET

>>> If I load AUCTeX by visiting a LaTeX file and then switch buffer
>>> before turning on tool-bar-mode then that buffer has AucTeX
>>> buttons and that of the LaTeX file doesn't!

Can't reproduce this neither.

>> I believe this has been fixed in CVS for months.  We really ought to
>> release 11.84 soon.
>
> Hm, looking through the code right now, I don't see how this fix would
> supposedly work.

Since there's no other recent change in `toolbar-x.el', I guess that
you refer to my change?

2006-09-13  Reiner Steib  <[EMAIL PROTECTED]>

* toolbar-x.el (toolbarx-emacs-refresh): Don't modify global value
of `tool-bar-map'.

--8<---cut here---start->8---
--- toolbar-x.el25 May 2006 07:50:57 -  1.12
+++ toolbar-x.el13 Sep 2006 20:15:00 -  1.13
@@ -1322,7 +1322,8 @@
 toolbarx-internal-button-switches))
(used-keys (list :used-symbols nil))
(tool-bar-map-temp))
-(let ((tool-bar-map (make-sparse-keymap)))
+(let (tool-bar-map)
+  (set (make-local-variable 'tool-bar-map) (make-sparse-keymap))
   (toolbarx-emacs-refresh-process-button-or-insert-list switches used-keys)
   (setq tool-bar-map-temp (copy-sequence tool-bar-map)))
 (if global-flag
--8<---cut here---end--->8---

I don't know if this change fixed the problem of Nick, but it was a
fix for a different (but maybe related) problem, see
.

> Does it really do the right thing in existing buffers, regardless of
> whether they are current or not?

-v, please.  I'm not sure if my change is correct, but I don't quite
understand your question.

Bye, Reiner.
-- 
   ,,,
  (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


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


Re: [AUCTeX] Re: labels in align env (amsmath style)

2006-11-09 Thread David Kastrup
Seweryn Kokot <[EMAIL PROTECTED]> writes:

>>> Here typing M-RET I get \item 
>
>>Again, parsing needs to be enabled for this to work.
>
> I'm using auctex 11.83 and I didn't mention but I do have
> TeX-parse-self enabled:
> --- .emacs
> (load "auctex.el" nil t t)
> (load "preview-latex.el" nil t t)
> (setq TeX-electric-escape t)
> (setq TeX-auto-save t)
> (setq TeX-parse-self t)
> (setq-default TeX-master nil)
> ---
>
> and what should I actually get after typing M-RET? \label or \\? now I
> get \item :(
>
> For now I do: 
> C-c C-e align
> C-c C-( to get \label for the first equation
> a & = b + c \\
> C-c C-( to get \label for the second equation
> x & = 1 + d

No, this should not be necessary.  You have a problem with parsing,
seemingly.  C-c C-e should place the first label by itself, and M-RET
should place \\ and another label.

What does
C-h v LaTeX-item-list RET
report?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] Re: labels in align env (amsmath style)

2006-11-09 Thread Seweryn Kokot

>> Here typing M-RET I get \item 

>Again, parsing needs to be enabled for this to work.

I'm using auctex 11.83 and I didn't mention but I do have
TeX-parse-self enabled:
--- .emacs
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
(setq TeX-electric-escape t)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
---

and what should I actually get after typing M-RET? \label or \\? now I
get \item :(

For now I do: 
C-c C-e align
C-c C-( to get \label for the first equation
a & = b + c \\
C-c C-( to get \label for the second equation
x & = 1 + d

regards,
SK



___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


Re: [Bug-AUCTeX] 11.83; AUCTeX toolbar

2006-11-09 Thread David Kastrup
Ralf Angeli <[EMAIL PROTECTED]> writes:

> * Nick Roberts (2006-11-09) writes:
>
>> Load AUCTeX is e.g by visiting a LaTeX file.  Turn tool-bar-mode on,
>> then off and on again.  Then every buffer has AucTeX buttons in its
>> toolbar and all local icons/buttons are overwritten.  If I load
>> AUCTeX by visiting a LaTeX file and then switch buffer before
>> turning on tool-bar-mode then that buffer has AucTeX buttons and
>> that of the LaTeX file doesn't!
>
> I believe this has been fixed in CVS for months.  We really ought to
> release 11.84 soon.

Hm, looking through the code right now, I don't see how this fix would
supposedly work.  Does it really do the right thing in existing
buffers, regardless of whether they are current or not?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


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


Re: [Bug-AUCTeX] 11.83; AUCTeX toolbar

2006-11-09 Thread David Kastrup
Nick Roberts <[EMAIL PROTECTED]> writes:

> Load AUCTeX is e.g by visiting a LaTeX file.  Turn tool-bar-mode on, then off
> and on again.  Then every buffer has AucTeX buttons in its toolbar and all
> local icons/buttons are overwritten.  If I load AUCTeX by visiting a LaTeX 
> file
> and then switch buffer before turning on tool-bar-mode then that buffer has
> AucTeX buttons and that of the LaTeX file doesn't!
>
> I only have byte compiled lisp for AucTeX but the problem seems to be with
> tool-bar-mode-on-hook which is set to LaTeX-maybe-install-toolbar.  This
> seems to be an AucTeX variable (in which case it shouldn't pollute the
> tool-bar- namespace) and it interferes with the local values of tool-bar-map.
>
> Why not just do `something like':
>
>  (if some-AucTeX-variable
>(set (make-local-variable 'tool-bar-map) LaTeX-tool-bar-map))
>
> in LaTeX mode?

More likely something like

(dolist (buf (buffer-list))
  (with-current-buffer buf
(if TeX-mode-p
   (...

In short: do this operation in all buffers instead of just possibly
the current one.

Maybe TeX-mode-p needs to be something else, not sure about that.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


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


Re: [Bug-AUCTeX] 11.83; AUCTeX toolbar

2006-11-09 Thread Ralf Angeli
* Nick Roberts (2006-11-09) writes:

> Load AUCTeX is e.g by visiting a LaTeX file.  Turn tool-bar-mode on,
> then off and on again.  Then every buffer has AucTeX buttons in its
> toolbar and all local icons/buttons are overwritten.  If I load
> AUCTeX by visiting a LaTeX file and then switch buffer before
> turning on tool-bar-mode then that buffer has AucTeX buttons and
> that of the LaTeX file doesn't!

I believe this has been fixed in CVS for months.  We really ought to
release 11.84 soon.

-- 
Ralf


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


[Bug-AUCTeX] 11.83; AUCTeX toolbar

2006-11-09 Thread Nick Roberts

Load AUCTeX is e.g by visiting a LaTeX file.  Turn tool-bar-mode on, then off
and on again.  Then every buffer has AucTeX buttons in its toolbar and all
local icons/buttons are overwritten.  If I load AUCTeX by visiting a LaTeX file
and then switch buffer before turning on tool-bar-mode then that buffer has
AucTeX buttons and that of the LaTeX file doesn't!

I only have byte compiled lisp for AucTeX but the problem seems to be with
tool-bar-mode-on-hook which is set to LaTeX-maybe-install-toolbar.  This
seems to be an AucTeX variable (in which case it shouldn't pollute the
tool-bar- namespace) and it interferes with the local values of tool-bar-map.

Why not just do `something like':

 (if some-AucTeX-variable
   (set (make-local-variable 'tool-bar-map) LaTeX-tool-bar-map))

in LaTeX mode?

Emacs  : GNU Emacs 22.0.90.10 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2006-11-09 on kahikatea.snap.net.nz
Package: 11.83

current state:
==
(setq
 AUCTeX-date "2006-06-07"
 window-system 'x
 LaTeX-version "2e"
 TeX-style-path '("style" "auto" "/home/olt/roberts/style/" "~/auto/"
  "/usr/share/emacs/site-lisp/auctex/style" "/var/auctex")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master t
 TeX-command-list '(("TeX" "%(PDF)%(tex) %S%(PDFout) \"%(mode)\\input %t\""
 TeX-run-TeX nil
 (plain-tex-mode ams-tex-mode texinfo-mode) :help
 "Run plain TeX")
("LaTeX" "%l \"%(mode)\\input{%t}\"" TeX-run-TeX nil
 (latex-mode doctex-mode) :help "Run LaTeX")
("Makeinfo" "makeinfo %t" TeX-run-compile nil
 (texinfo-mode) :help "Run Makeinfo with Info output")
("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil
 (texinfo-mode) :help "Run Makeinfo with HTML output")
("AmSTeX" "%(PDF)amstex %S%(PDFout) \"%(mode)\\input %t\""
 TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
("ConTeXt" "texexec --once --texutil %(execopts)%t"
 TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil
 (context-mode) :help "Run ConTeXt until completion")
("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help
 "Run BibTeX")
("View" "%V" TeX-run-discard t t :help "Run Viewer")
("Print" "%p" TeX-run-command t t :help "Print the file")
("Queue" "%q" TeX-run-background nil t :help
 "View the printer queue" :visible TeX-queue-command)
("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help
 "Generate PostScript file")
("Index" "makeindex %s" TeX-run-command nil t :help
 "Create index file")
("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
 :help "Check LaTeX file for correctness")
("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil
 t :help "Spell-check the document")
("Clean" "TeX-clean" TeX-run-function nil t :help
 "Delete generated intermediate files")
("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
 "Delete generated intermediate and output files")
("Other" "" TeX-run-command t t :help
 "Run an arbitrary command")
)
 )

-- 
Nick   http://www.inet.net.nz/~nickrob


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


Re: [AUCTeX] Re: labels in align env (amsmath style)

2006-11-09 Thread David Kastrup
Seweryn Kokot <[EMAIL PROTECTED]> writes:

>> This works without problems here.  Type
>>
>> C-c C-e align RET
>> a = & 3 + 5 M-RET
>> b = & 4 + 6 C-c . C-x C-x

Actually, you should write a &= and b &= instead of =&, or you'll get
bad spacing.

> Here typing M-RET I get \item 

Again, parsing needs to be enabled for this to work.

> C-h k "M-RET" gives
> "M-RET (translated from  ) runs the command
> LaTeX-insert-item"

> And It seems that amsmath package is visible since when I type C-c C-e
> ali TAB and align is completed.

That happens after you once explicitly completed to align.

> The problem is that I cannot get \label automatically as in equation
> so I cannot reference to these equations.
>
> What is missing? Any idea?

M-x customize-variable RET TeX-parse-self RET

Set to on and save.

It really sounds like you are not parsing the document.  Or maybe your
version of AUCTeX is too old, no idea.  What version was it again?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] Re: labels in align env (amsmath style)

2006-11-09 Thread Seweryn Kokot

> This works without problems here.  Type
>
> C-c C-e align RET
> a = & 3 + 5 M-RET
> b = & 4 + 6 C-c . C-x C-x

Here typing M-RET I get \item 

C-h k "M-RET" gives
"M-RET (translated from  ) runs the command
LaTeX-insert-item"

This is what I have in .emacs file:
---
...
(add-hook 'LaTeX-mode-hook
 '(lambda ()
 (local-set-key [return] 'newline-and-indent)
 (local-set-key (kbd "C-c a") 'reftex-parse-all)
 (local-set-key [kp-enter] 'newline)
 (setq compile-command "make all")))
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)  ; with AUCTeX LaTeX mode
(setq reftex-plug-into-AUCTeX t)
(setq reftex-extra-bindings t)  ; np: C-c t: toc, C-c c: citation
(setq reftex-external-file-finder
'(("tex" . "kpsewhich -format=.tex %f")
  ("bib" . "kpsewhich -format=.bib %f")))
(setq reftex-label-alist '(AMSTeX)) ; \eqref instead of \ref
(setq reftex-enable-partial-scans t)
(setq reftex-save-parse-info t)
(setq reftex-use-multiple-selection-buffers t)
...
(custom-set-variables
...
 '(reftex-insert-label-flags (quote ("s" "sft")))
...
---

And It seems that amsmath package is visible since when I type C-c C-e
ali TAB and align is completed. The problem is that I cannot get
\label automatically as in equation so I cannot reference to these
equations.

What is missing? Any idea?
Thanks in advance
SK



___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] Beamer frame environment

2006-11-09 Thread David Kastrup
"Ryan Krauss" <[EMAIL PROTECTED]> writes:

> I remember recently using a version of AucTex where a frame
> environement was an option under C-c C-e and it prompted me for a
> frametitle.  I just installed 11.83 on this computer and don't have
> that option.  Am I remembering that correctly?  (I don't think I
> dreamed it.)  How can I get such a feature (back) on my Windows
> machine?

It is there by default, so you likely have not enabled document
parsing, or have not used C-c C-e for inserting the document
environment (and hence, the \documentclass command) and not reparsed
the document by reloading or C-c C-n afterwards.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] labels in align env (amsmath style)

2006-11-09 Thread David Kastrup
Seweryn Kokot <[EMAIL PROTECTED]> writes:

> I'm using amsmath package in a tex file and I want that whenever I
> insert align environment, a label is put automatically as in equation
> environment. 
>
> In equation I get:
>
> \begin{equation}
>   \label{eq:11}
>  c = 5  
> \end{equation}
>
> but inserting align env (C-c C-e) I get:
>
> \begin{align}
>   a = &  3 + 5 \\
>   b = & 4 + 6
> \end{align}
>
> instead of:
>
> \begin{align}
>   \label{eq:12}
>   a = &  3 + 5 \\
>   \label{eq:13}
>   b = & 4 + 6
> \end{align}
>
> Should I insert labels manually or any other way? 

This works without problems here.  Type

C-c C-e align RET
a = & 3 + 5 M-RET
b = & 4 + 6 C-c . C-x C-x

(hm, the sequence to move past the environment is not actually pretty,
maybe we should have something nicer?  Or have C-c . move to the end
rather?).

I would suspect that you

a) have not enabled document parsing or
b1) have not used C-c RET for inserting \usepackage and
b2) have not reparsed the document by reloading or C-c C-n

so that AUCTeX has not yet seen the \usepackage{amsmath}.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] Beamer frame environment

2006-11-09 Thread Ryan Krauss

I remember recently using a version of AucTex where a frame
environement was an option under C-c C-e and it prompted me for a
frametitle.  I just installed 11.83 on this computer and don't have
that option.  Am I remembering that correctly?  (I don't think I
dreamed it.)  How can I get such a feature (back) on my Windows
machine?

Thanks,

Ryan


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] labels in align env (amsmath style)

2006-11-09 Thread Seweryn Kokot
Hello,

I'm using amsmath package in a tex file and I want that whenever I
insert align environment, a label is put automatically as in equation
environment. 

In equation I get:

\begin{equation}
  \label{eq:11}
 c = 5  
\end{equation}

but inserting align env (C-c C-e) I get:

\begin{align}
  a = &  3 + 5 \\
  b = & 4 + 6
\end{align}

instead of:

\begin{align}
  \label{eq:12}
  a = &  3 + 5 \\
  \label{eq:13}
  b = & 4 + 6
\end{align}

Should I insert labels manually or any other way? 

regards
SK



___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex