From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Felix E. Klee" Newsgroups: gmane.emacs.help Subject: Re: Hiding references when editing LaTeX? Date: Wed, 26 Feb 2003 20:54:30 +0100 Organization: (Posted via) INKA e.V. http://www.inka.de/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: main.gmane.org 1046289470 22490 80.91.224.249 (26 Feb 2003 19:57:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 26 Feb 2003 19:57:50 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18o7gb-0005qa-00 for ; Wed, 26 Feb 2003 20:57:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18o7eX-0003fz-05 for gnu-help-gnu-emacs@m.gmane.org; Wed, 26 Feb 2003 14:55:41 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!inka.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-NNTP-Posting-Host: puric.inka.de Original-X-Trace: sapa.inka.de 1046289271 5788 193.197.184.17 (26 Feb 2003 19:54:31 GMT) Original-X-Complaints-To: abuse@inka.de Original-NNTP-Posting-Date: 26 Feb 2003 19:54:31 GMT User-Agent: KNode/0.7.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:110662 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7163 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7163 David Kastrup wrote: > Why? Are you using RefTeX? It comes bundled with Emacs, creates > labels automatically and makes handling them a breeze. For example, > in connection with AUCTeX it automatically assigns labels like > \label{eq:21} which sounds like a pretty bad idea until you realize > that C-c ) will give you a list of all relevant equations to scroll > through and hit the right one. So no need to memorize any labels. I already use RefTeX but I find the label names are too long in the corresponding references. They are disturbing when reading text onscreen. >> An example: >> Instead of >> We use equation \ref{SomeVeryVeryLongReference} to show something. >> I want to see >> We use equation # to show something. >> but upon moving the cursor on top of the '#' I want to see >> We use equation \ref{SomeVeryVeryLongReference} to show something. >> again. > > preview-latex would do > exactly that I am already using it all the time. > if you created a file prauctex.cfg with the contents > > \PreviewCommand[!][\#]\ref > \InputIfFileExists{preview/prauctex.cfg}{}{} > > in your project directory. You could also try > \PreviewCommand[!]\ref > to have the dereferenced label itself displayed as typeset by LaTeX, > or > \RequirePackage{url} > \PreviewCommand[!][\@firstoftwo\url#1]\ref > to have the original label text in typewriter mode and so on. > > Also handy for collapsing footnotes into their respective footnote > mark. In short, preview-latex allows you to tell LaTeX how you want > certain constructs display in your Emacs window, obviously defaulting > to their normal typeset rendition. Thanks I'll try this out. Preview-LaTeX is wonderful - I love it:) > But for labels, I'd really recommend going with RefTeX instead. Try > it. Manual should be available with > C-h i d m reftex RET I don't see a reason why I shouldn't use RefTeX and Preview-LaTeX for handling references at the same time. Felix