[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding references when editing LaTeX?

From: Felix E. Klee
Subject: Re: Hiding references when editing LaTeX?
Date: Wed, 26 Feb 2003 21:21:31 +0100
User-agent: KNode/0.7.1

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)
   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
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?


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] [ ...]
Most frequently used switches: (you can use # in place of =)
 -dNOPAUSE           no pause after page   | -q       `quiet', fewer 
 -g<width>x<height>  page size in pixels   | -r<res>  pixels/inch resolution
 -sDEVICE=<devname>  select device         | -dBATCH  exit after last file
 -sOutputFile=<file> 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, using the form in Bug-form.htm.

 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 
                                                  (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"
 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-scale-function 'preview-scale-from-face
 preview-LaTeX-command '("%l \"\\nonstopmode\\PassOptionsToPackage{" ("," . 
eginDocument{\\ifx\\ifPreview\\undefined" preview-default-preamble
 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}"
 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]