Daniel Schmitt
2005-03-15 14:46:58 UTC
Using the auctex macro \ref I would excpect that the key completion
using TAB to offer all labels in the current document.
For example starting from this document:
\documentclass[a4paper]{article}
\begin{document}
\begin{figure}
dfdsj
\caption{eins}
\label{fig:eins}
\end{figure}
\end{document}
using copy and paste:
\documentclass[a4paper]{article}
\begin{document}
\begin{figure}
dfdsj
\caption{eins}
\label{fig:eins}
\end{figure}
\begin{figure}
dfdsj
\caption{zwei}
\label{fig:zwei}
\end{figure}
\end{document}
Now, fig:zwei is not offered in the completion list.
Emacs : GNU Emacs 22.0.50.36 (x86_64-unknown-linux-gnu, GTK+ Version 2.4.9)
of 2005-03-15 on bridgekeeper
Package: AUCTeX CVS-5.489 (2005-03-15)
current state:
==============
(setq
window-system 'x
LaTeX-version "2e"
TeX-style-path '("style/" "auto/" "/home/dept/scht/.TeX/style/"
"/usr/share/doc/.TeX/style/" "/usr/doc/.TeX/style/"
"/home/dept/scht/.TeX/style/" "/usr/share/doc/.TeX/style/"
"/usr/doc/.TeX/style/" "/home/dept/scht/.TeX/auto/"
"/usr/share/doc/.TeX/auto/" "/usr/doc/.TeX/auto/"
"/home/dept/scht/.TeX/auto/" "/usr/share/doc/.TeX/auto/"
"/usr/doc/.TeX/auto/"
"/import/xtra/emacs/RC/share/emacs/site-lisp/auctex/style/"
"/usr/local/share/emacs/site-lisp/auctex/auto/")
TeX-auto-save t
TeX-parse-self t
TeX-master nil
)
using TAB to offer all labels in the current document.
For example starting from this document:
\documentclass[a4paper]{article}
\begin{document}
\begin{figure}
dfdsj
\caption{eins}
\label{fig:eins}
\end{figure}
\end{document}
using copy and paste:
\documentclass[a4paper]{article}
\begin{document}
\begin{figure}
dfdsj
\caption{eins}
\label{fig:eins}
\end{figure}
\begin{figure}
dfdsj
\caption{zwei}
\label{fig:zwei}
\end{figure}
\end{document}
Now, fig:zwei is not offered in the completion list.
Emacs : GNU Emacs 22.0.50.36 (x86_64-unknown-linux-gnu, GTK+ Version 2.4.9)
of 2005-03-15 on bridgekeeper
Package: AUCTeX CVS-5.489 (2005-03-15)
current state:
==============
(setq
window-system 'x
LaTeX-version "2e"
TeX-style-path '("style/" "auto/" "/home/dept/scht/.TeX/style/"
"/usr/share/doc/.TeX/style/" "/usr/doc/.TeX/style/"
"/home/dept/scht/.TeX/style/" "/usr/share/doc/.TeX/style/"
"/usr/doc/.TeX/style/" "/home/dept/scht/.TeX/auto/"
"/usr/share/doc/.TeX/auto/" "/usr/doc/.TeX/auto/"
"/home/dept/scht/.TeX/auto/" "/usr/share/doc/.TeX/auto/"
"/usr/doc/.TeX/auto/"
"/import/xtra/emacs/RC/share/emacs/site-lisp/auctex/style/"
"/usr/local/share/emacs/site-lisp/auctex/auto/")
TeX-auto-save t
TeX-parse-self t
TeX-master nil
)