From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Bretfeld Newsgroups: gmane.emacs.help Subject: Re: Autocompletion in Auctex Date: Mon, 10 Mar 2008 14:20:07 +0100 Message-ID: <87od9m1zso.fsf@kamaloka.dhatu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1205155243 28568 80.91.229.12 (10 Mar 2008 13:20:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2008 13:20:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 10 14:21:11 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JYhwC-0001MP-NP for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Mar 2008 14:21:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYhve-0004Yb-G0 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Mar 2008 09:20:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JYhvP-0004XS-1g for help-gnu-emacs@gnu.org; Mon, 10 Mar 2008 09:20:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JYhvM-0004TD-6g for help-gnu-emacs@gnu.org; Mon, 10 Mar 2008 09:20:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYhvM-0004T4-37 for help-gnu-emacs@gnu.org; Mon, 10 Mar 2008 09:20:16 -0400 Original-Received: from viefep27-int.chello.at ([62.179.121.47]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JYhvL-0000RL-GK for help-gnu-emacs@gnu.org; Mon, 10 Mar 2008 09:20:15 -0400 Original-Received: from kamaloka.dhatu ([80.219.162.86]) by viefep27-int.chello.at (InterMail vM.7.08.02.02 201-2186-121-104-20070414) with ESMTP id <20080310132012.MLJW18954.viefep27-int.chello.at@kamaloka.dhatu> for ; Mon, 10 Mar 2008 14:20:12 +0100 In-Reply-To: (Lorenzo Isella's message of "Mon, 10 Mar 2008 14:01:35 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52217 Archived-At: --=-=-= Hi Lorenzo "Lorenzo Isella" writes: > Dear All, > I have started to use Auctex for editing my latex documents. > It generally works great, the only thing I am missing is some way to > get autocompletion for e.g. referencing and citing. > It would be great if when typing \ref{} or \cite{} I had a pop-up or a > buffer telling me what I could possibly cite/reference. > I did a bit of online research and bumped into: > http://www.informatik.uni-hamburg.de/RZ/software/emacs/auc-tex/auc-tex_3.html What you are looking for is reftex, which is very poweful for references and cites. If you already have installed the package (I believe it came with your Emacs or AucTeX binaries), you can put this into your .emacs: --8<---------------cut here---------------start------------->8--- ;;-------------------------------------------- ;; RefTeX ;;-------------------------------------------- (add-hook 'LaTeX-mode-hook 'turn-on-reftex) (setq reftex-plug-into-AUCTeX t) (setq reftex-enable-partial-scans t) (setq reftex-save-parse-info t) (setq reftex-use-multiple-selection-buffers t) (setq reftex-texpath-environment-variables '("./inp:/PATH/TO/YOUR/TEX/DOCUMENTS//")) (setq reftex-bibpath-environment-variables '("/PATH/TO/YOUR/BIB/FILE/")) --8<---------------cut here---------------end--------------->8--- Greetings Sven --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFH1TWLV5JTHLAduAYRAnGaAKDAJUifGZfbz/RMoqZ505lqKcr5/gCeK+Dx rUJWBVcKD9ewPnNfXtIiPxE= =uRlp -----END PGP SIGNATURE----- --=-=-=--