From: <Dav...@t-...> - 2002-12-21 18:28:13
|
Ok, people, I apologize for letting this through moderation. Somehow I confused it with some other post, or did not page right through it, but it has escaped my notice how abysmally large this thing was. > I did the following > > gtar xzvf preview-latex-0.7.7.tar.gz; cd preview-latex-0.7.7 > > ./configure --with-xemacs=/usr/bin/xemacs-21.4.6 \ > --with-packagedir=/home/holenst/local/lib/emacs \ > --with-tex-site=/home/holenst/local/lib/emacs \ > --with-texmf-dir=/home/holenst/local/texmf \ > --disable-8bit-test > > make > > make install > > cp preview-latex.el ~/local/lib/emacs/ Looks reasonable at first glance. > - Change ~/.xemacs/init.el to have: > > ====================================================================== > (add-to-list 'load-path "/home/holenst/local/lib/emacs") > > (add-to-list 'data-directory-list "/home/holenst/local/lib/emacs/etc/preview") > > (load "preview-latex.el" nil t t) > > (autoload 'LaTeX-preview-setup "preview.el") > (add-hook 'LaTeX-mode-hook #'LaTeX-preview-setup) > ====================================================================== This looks decidedly strange. A "package dir" is something that is set up and maintained by XEmacs. If local/lib/emacs _is_ indeed configured as your local package directory for XEmacs, you should _not_ need to fiddle around with preview-latex.el or init.el: things should just drop into place and work. > Now, restarting xemacs-21.4.6 gets preview-latex loaded, but C-c C-p > C-d gives me (from C-h l): > > ====================================================================== > Recent minibuffer messages (most recent first): > > Display geometry unavailable: Symbol's function definition is void: > face-attribute This should only happen if you load a non-byte-compiled version of preview.el. Oh, I see you did (ruffling through the docs). And you did so of your own volition: we explicitly give the autoload form as requiring "preview", not "preview.el" as you do above. Apart from which the installation instructions even for GNU Emacs tell you just to use "preview-latex.el" and be done with it. > I hope I described the problem good enough. I included the following > files after the rest of the report (search for the string [1]texmf.cnf > to get to the position) > > [1]texmf.cnf > [2].tcshrc > [3]preview-latex.el > [4]tex-site.el > [5]~/.xemacs/init.el Indeed. Ridiculous! > Output from running `gs -h': > GNU Ghostscript 6.52 (2001-10-20) VERY old! Better upgrade to GNU GS 7.05 or AFPL GhostScript 8.0. > AUC-TeX-version "11.13" 11.14 is necessary to have previews work in projects spread across directories. Might not be the case for you, just in case you are interested. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum |