rel-0-9; Initialisation: Error in INSTALL or in preview-latex.el
Frank K?ster <[email protected]> Fri, 04 Mar 2005 14:12:37 +0100
| Newsgroups | gmane.emacs.latex.preview.devel |
|---|---|
| Message-ID | <E1D7Cbd-0006G7-Ib__31291.1062421792$1109970638$gmane$org@alhambra.kuesterei.ch> |
Remember to cover the basics. Including a minimal LaTeX example
file exhibiting the problem might help.
The INSTALL file says:
,----
| For GNU Emacs, the recommended way to activate preview-latex is to
| copy the file `preview-latex.el' (which is generated during the
| installation) to a place where your installation keeps automatically
| loaded startup files. Alternatively, you can copy it to some place on
| your `load-path' and load it with
|
| (load "preview-latex.el" nil t t)
|
| That is all.
`----
However, preview-latex.el contains these lines:
(add-to-list 'load-path (expand-file-name "preview" (file-name-directory load-file-name)))
(defvar preview-icondir (expand-file-name "preview/images" (file-name-directory load-file-name)))
As far as my understanding of Emacs lisp goes, file-name-directory
load-file-name will be /etc/emacs/site-start.d/ if I copy
preview-latex.el to that directory, which is "a place where my
installation keeps automatically loaded startup files".
Creating a file with the load statement in it in that directory seems
to work.
Regards, Frank
Emacs : GNU Emacs 21.3.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2005-02-04 on trouble, modified by Debian
Package: rel-0-9
current state:
==============
Output from running `gs -h':
AFPL Ghostscript 8.14 (2004-02-20)
Copyright (C) 2004 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
-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 PostScriptLevel3 PDF
Default output device: x11
Available devices:
ap3250 appledmp bbox bit bitcmyk bitrgb bj10e bj200 bjc600 bjc800 bmp16
bmp16m bmp256 bmp32b bmpgray bmpmono bmpsep1 bmpsep8 cdeskjet cdj500
cdj550 cdjcolor cdjmono cfax cif cljet5 cljet5c cljet5pr declj250 deskjet
devicen dfaxhigh dfaxlow djet500 djet500c dnj650c eps9high eps9mid epson
epsonc epswrite escp faxg3 faxg32d faxg4 hl7x0 ibmpro ijs imagen iwhi
iwlo iwlq jetp3852 jpeg jpeggray laserjet lbp8 lips3 lj250 lj3100sw
lj4dith lj5gray lj5mono ljet2p ljet3 ljet3d ljet4 ljet4d ljetplus lp2563
lp8000 lq850 m8510 miff24 necp6 nullpage oce9050 oki182 okiibm paintjet
pbm pbmraw pcx16 pcx24b pcx256 pcxcmyk pcxgray pcxmono pdfwrite pgm
pgmraw pgnm pgnmraw pj pjetxl pjxl pjxl300 pkm pkmraw pksm pksmraw
plan9bm png16 png16m png256 pngalpha pnggray pngmono pnm pnmraw ppm
ppmraw psdcmyk psdrgb psgray psmono psrgb pswrite pxlcolor pxlmono r4081
sj48 spotcmyk st800 stcolor t4693d2 t4693d4 t4693d8 tek4696 tiff12nc
tiff24nc tiffcrle tiffg3 tiffg32d tiffg4 tifflzw tiffpack uniprint x11
x11alpha x11cmyk x11gray2 x11gray4 x11mono xcf
Search path:
. : /usr/share/gs-afpl/8.14/lib : /usr/share/gs-afpl/8.14/Resource :
/usr/share/gs-afpl/fonts : /var/lib/defoma/gs.d/dirs/fonts :
/usr/share/fonts/type1 : /usr/share/ghostscript/fonts :
/usr/local/lib/ghostscript/fonts
For more information, see /usr/share/doc/gs-afpl/Use.htm.
Report bugs to [email protected], using the form in Bug-form.htm.
(setq
AUC-TeX-version "11.55"
LaTeX-command-style '(("" "%(PDF)%(latex) %S%(PDFout)"))
image-types '(png gif tiff jpeg xpm pbm postscript xbm)
preview-image-type 'png
preview-image-creators '((dvipng (open preview-gs-open preview-dvipng-process-setup) (place preview-gs-place)
(close preview-dvipng-close))
(png (open preview-gs-open) (place preview-gs-place) (close preview-gs-close))
(jpeg (open preview-gs-open) (place preview-gs-place) (close preview-gs-close))
(pnm (open preview-gs-open) (place preview-gs-place) (close preview-gs-close))
(tiff (open preview-gs-open) (place preview-gs-place) (close preview-gs-close)))
preview-dvipng-image-type 'png
preview-dvipng-command "dvipng -picky -noghostscript %d -o \"%m/prev%%03d.png\""
preview-pdf2dsc-command "pdf2dsc %s.pdf %m/preview.dsc"
preview-gs-command "gs"
preview-gs-options '("-q" "-dSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" "-dGraphicsAlphaBits=4")
preview-gs-image-type-alist '((png png "-sDEVICE=png16m") (dvipng png "-sDEVICE=png16m") (jpeg jpeg "-sDEVICE=jpeg")
(pnm pbm "-sDEVICE=pnmraw") (tiff tiff "-sDEVICE=tiff12nc"))
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}\\AtBeginDocument{\\ifx\\ifPreview\\undefined" preview-default-preamble
"\\fi}\\input{%t}\"")
preview-required-option-list '("active" "tightpage" "auctex")
preview-default-option-list '("displaymath" "floats" "graphics" "textmath" "sections" "footnotes")
preview-default-preamble '("\\RequirePackage[" ("," . preview-default-option-list) "]{preview}[2004/11/05]")
preview-LaTeX-command-replacements nil
preview-dump-replacements '(preview-LaTeX-command-replacements
("\\`\\([^ ]+\\)\\(\\( -\\([^ \"]\\|\"[^\"]*\"\\)*\\)*\\)\\(.*\\)\\'" "\\1 -ini \"&\\1\" "
preview-format-name ".ini \\5")
)
preview-undump-replacements '(("\\`\\([^ ]+\\)\\(\\( -\\([^ \"]\\|\"[^\"]*\"\\)*\\)*\\).*\\input{\\([^}]*\\)}.*\\'"
"\\1 \"&" preview-format-name "\" \\5")
)
preview-auto-cache-preamble t
)
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
preview-latex-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/preview-latex-bugs
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click