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 21:21:31 +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 1046291198 30769 80.91.224.249 (26 Feb 2003 20:26:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 26 Feb 2003 20:26:38 +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 18o88A-0007zJ-00 for ; Wed, 26 Feb 2003 21:26:18 +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 18o87W-00038y-08 for gnu-help-gnu-emacs@m.gmane.org; Wed, 26 Feb 2003 15:25:38 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!rz.uni-karlsruhe.de!inka.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 143 Original-NNTP-Posting-Host: puric.inka.de Original-X-Trace: sapa.inka.de 1046290891 6577 193.197.184.17 (26 Feb 2003 20:21:31 GMT) Original-X-Complaints-To: abuse@inka.de Original-NNTP-Posting-Date: 26 Feb 2003 20:21:31 GMT User-Agent: KNode/0.7.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:110663 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:7164 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7164 David Kastrup wrote: > \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. Hm, I just tried it but it doesn't work. Here's what I did: 1. I created the cfg file with the contents (I also tried \PreviewCommand[!]\ref instead) \PreviewCommand[!][\#]\ref \InputIfFileExists{preview/prauctex.cfg}{}{} in the project directory, restarted EMACS (to avoid trouble). Then, I opened a tex file belonging to the project and hit C-c C-p C-b. This caused equations, sections, etc. to be TeXed but the \ref's weren't affected. 2. I appended "\PreviewCommand[!][\#]\ref" to "Preview Default Preamble" in the Preview-Latex customization group and saved the setting for future sessions. Then, I restarted EMACS and opened a tex file and hit C-c C-p C-b, the \ref's aren't affected. BTW, RefTeX wasn't turned on during the above experiments. I'm sure I'm doing something obvious wrong, but I appended the information generated by preview-report-bug below anyhow. Any ideas what might be the cause of my trouble? Felix Emacs : GNU Emacs 21.2.1 (i586-suse-linux, X toolkit, Xaw3d scroll bars) of 2002-09-11 on amdsimb Package: rel-0-7-8 current state: ============== Output from running `gs -h': ESP Ghostscript 7.05.3 (2002-06-28) Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved. Usage: gs [switches] [file1.ps file2.ps ...] Most frequently used switches: (you can use # in place of =) -dNOPAUSE no pause after page | -q `quiet', fewer messages -gx page size in pixels | -r pixels/inch resolution -sDEVICE= select device | -dBATCH exit after last file -sOutputFile= select output file: - for stdout, |command for pipe, embed %d or %ld for page # Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PDF Available devices: x11 x11alpha x11cmyk x11cmyk2 x11cmyk4 x11cmyk8 x11gray2 x11gray4 x11mono x11rg16x x11rg32x appledmp iwhi iwlo iwlq t4693d2 t4693d4 t4693d8 tek4696 ap3250 dmprt epson eps9mid eps9high epsonc lp8000 lq850 st800 stcolor photoex escp escpc escpage lp8800c lp8300c lp8500c lp3000c lp8200c lp8000c alc2000 alc4000 alc8500 lp2000 lp2200 lp9400 lp8900 lp8700 lp8100 lp7700 lp8600f lp8400f lp8300f lp1900 lp9600s lp9300 lp9600 lp8600 lp1800 epl5800 epl5900 epl2050 epl2050p epl2120 mj700v2c mj500c mj6000c mj8000c hl1250 hl1240 hl7x0 samsunggdi atx23 atx24 atx38 coslw2p coslwxl cdeskjet cdjcolor cdjmono cdj500 cdj550 cdj670 cdj850 cdj880 cdj890 cdj970 cdj1600 chp2200 deskjet djet500 djet500c dnj650c djet820c paintjet pj pjetxl pjxl pjxl300 dj505j picty180 laserjet ljet2p ljet3 ljet3d ljet4 ljet4pjl lj4dithp lj3100sw ljet4d lj4dith ljetplus lj5mono lj5gray cljet5 cljet5c cljet5pr declj250 lj250 dl2100 fs600 bj10e bj10v bj10vh bj200 bjcmono bjcgray bjccmyk bjccolor bjc600 bjc800 bjc880j lips2p lips3 lips4 lips4v lbp8 lbp310 lbp320 lxm5700m lxm3200 lex7000 lex5700 lex3200 lex2050 fmpr fmlbp md50Mono md50Eco md1xMono md2k md5k la50 la70 la75 la75plus ln03 lp2563 ccr cp50 ibmpro imagen jetp3852 m8510 necp6 npdl pr201 pr150 pr1000 pr1000_4 oce9050 oki182 oki4w okiibm ml600 r4081 rpdl sj48 jj100 xes pbm pbmraw pgm pgmraw pgnm pgnmraw pnm pnmraw ppm ppmraw pkm pkmraw pksm pksmraw plan9bm inferno dfaxhigh dfaxlow faxg3 faxg32d faxg4 cfax bff tiffcrle tiffg3 tiffg32d tiffg4 tiff12nc tiff24nc tifflzw tiffpack psmono psgray psrgb bbox bit bitrgb bitcmyk sunhmono mgrmono mgrgray2 mgrgray4 mgrgray8 mgr4 mgr8 cgmmono cgm8 cgm24 cif jpeg jpeggray miff24 pcxmono pcxgray pcx16 pcx256 pcx24b pcxcmyk pcx2up pngmono pnggray png16 png256 png16m pnga sgirgb mag16 mag256 bmpmono bmpgray bmpsep1 bmpsep8 bmp16 bmp256 bmp16m bmp32b bmpamono bmpa16 bmpa16m bmpa256 bmpa32b bmpasep1 bmpasep8 pdfwrite pswrite epswrite pxlmono pxlcolor ijs cups omni uniprint pcl3 hpdjplus hpdjportable hpdj310 hpdj320 hpdj340 hpdj400 hpdj500 hpdj500c hpdj510 hpdj520 hpdj540 hpdj550c hpdj560c hpdj600 hpdj660c hpdj670c hpdj680c hpdj690c hpdj850c hpdj855c hpdj870c hpdj890c hpdj1120c hpdj stp nullpage Search path: . : /usr/share/ghostscript/7.05/lib : /usr/share/ghostscript/fonts For more information, see /usr/share/ghostscript/7.05/doc/Use.htm. Report bugs to bug-gs@ghostscript.com, using the form in Bug-form.htm. (setq AUC-TeX-version "11.11" LaTeX-command-style '(("." "latex")) image-types '(png gif tiff jpeg xpm pbm postscript xbm) preview-image-type 'png preview-image-creators '((postscript (open preview-eps-open) (place preview-eps-place)) (png (open previe w-gs-open png ("-sDEVICE=png16m")) (place preview-gs-place) (close preview-gs-close)) (jpeg (open previ ew-gs-open jpeg ("-sDEVICE=jpeg")) (place preview-gs-place) (close preview-gs-close)) (pnm (open previe w-gs-open pbm ("-sDEVICE=pnmraw")) (place preview-gs-place) (close preview-gs-close)) (tiff (open preview-g s-open tiff ("-sDEVICE=tiff12nc")) (place preview-gs-place) (close preview-gs-close)) ) preview-gs-command "gs" preview-gs-options '("-q" "-dSAFER" "-dDELAYSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dTextAlphaBits=4" "-dGraphicsAlphaBits=4") preview-fast-conversion t preview-prefer-TeX-bb nil preview-dvips-command "dvips -Pwww -i -E %d -o %m/preview.000" preview-fast-dvips-command "dvips -Pwww %d -o %m/preview.ps" preview-scale-function 'preview-scale-from-face preview-LaTeX-command '("%l \"\\nonstopmode\\PassOptionsToPackage{" ("," . preview-required-option-list) "}{preview}\\AtB eginDocument{\\ifx\\ifPreview\\undefined" preview-default-preamble "\\fi}\\input{%t}\"") preview-required-option-list '("active" "dvips" "auctex") preview-default-option-list '("displaymath" "floats" "graphics" "textmath" "sections" "footnotes") preview-default-preamble '("\\RequirePackage[" ("," . preview-default-option-list) "]{preview}" "\\PreviewCommand[!][\\#]\\ref") preview-LaTeX-command-replacements '(("\\`\\(pdf\\)?\\(.*\\)\\'" "\\2")) preview-dump-replacements '(preview-LaTeX-command-replacements ("\\`\\(pdf\\)?\\(e?\\)\\(la\\)?tex\\(\\( -\\([^ \"]\\|\"[^\"]*\"\\)*\\ )*\\)\\(.*\\)\\'" "\\2initex\\4 \"&\\2\\3tex\" " preview-format-name ".ini \\7") ) preview-undump-replacements '(("\\`\\(e?\\)\\(la\\)?tex\\(\\( -\\([^ \"]\\|\"[^\"]*\"\\)*\\)*\\).*\\input{\\([^}]*\\)}.*\\'" "\\1virtex\\3 \"&" preview-format-name "\" \\6") ) preview-auto-cache-preamble 'ask )