[OS X TeX] TeXniscope can be used as pdf-Viewer in Aquamacs Emacs

Armin Goralczyk agoralczyk at gmail.com
Tue Apr 17 11:21:17 EDT 2007


2007/4/16, Johannes Brauer <brauer at nordakademie.de>:
>
> Am 15.04.2007 um 19:49 schrieb Christopher Menzel:
>
> > On Apr 15, 2007, at 8:35 AM, Johannes Brauer wrote:
> >> Am 15.04.2007 um 05:58 schrieb Christopher Menzel:
> >>
> >>>> I am trying to configure TeXniscope pdf-Viewer in Aquamacs Emacs
> >>>> but it does'nt work.
> >>>>
> >>>> I followed the instructions given at http://www.emacswiki.org/
> >>>> cgi-bin/wiki/AquamacsTexniscope:
> >>>>
> >>>> "At first, we configure TeXniscope as pdf-Viewer in AUCTeX. Type
> >>>> M-x customize-variable RET TeX-output-view-style RET Now the
> >>>> customization buffer should open. Look for the entry ^pdf$.
> >>>> Select „Value Menu" at „Choice" and enter . and after "Command"
> >>>> open -a /Applications/TeXniscope.app %o"
> >>>>
> >>>> Selecting Command-View in the minibuffer the text "open XXX.pdf
> >>>> appears"; instead of "open -a /Applications/TeXniscope.app
> >>>> XXX.pdf".
> >>>
> >>> Do you perhaps have another entry for ^pdf$ in the TeX Output
> >>> View Style customization buffer?  If so, delete the other one.
> >> There is only one entry fpr ^pdf$ containing: open -a /
> >> Applications/TeXniscope.app %o
> >>
> >>> Also, are you sure TeXniscope.app is in /Applications and not /
> >>> Applications/TeX?
> >> Yes, it is!
> >>
> >> Nevertheless, it doesn't work
>
> > What does ~/Library/Preferences/Aquamacs Emacs/customizations.el
> > have for the value of TeX-output-view-style?
>   '(TeX-output-view-style (quote (("^dvi$" ("^landscape$" "^pstricks$\
> \|^pst-\\|^psfrag$") "%(o?)dvips -t landscape %d -o && gv %f") ("^dvi
> $" "^pstricks$\\|^pst-\\|^psfrag$" "%(o?)dvips %d -o && gv %f") ("^dvi
> $" ("^a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4$" "^landscape$") "%(o?)
> xdvi %dS -paper a4r -s 0 %d") ("^dvi$" "^a4\\(?:dutch\\|paper\\|wide\
> \)\\|sem-a4$" "%(o?)xdvi %dS -paper a4 %d") ("^dvi$" ("^a5\\(?:comb\\|
> paper\\)$" "^landscape$") "%(o?)xdvi %dS -paper a5r -s 0 %d") ("^dvi
> $" "^a5\\(?:comb\\|paper\\)$" "%(o?)xdvi %dS -paper a5 %d") ("^dvi$"
> "^b5paper$" "%(o?)xdvi %dS -paper b5 %d") ("^dvi$" "^letterpaper$" "%
> (o?)xdvi %dS -paper us %d") ("^dvi$" "^legalpaper$" "%(o?)xdvi %dS -
> paper legal %d") ("^dvi$" "^executivepaper$" "%(o?)xdvi %dS -paper
> 7.25x10.5in %d") ("^dvi$" "." "%(o?)xdvi %dS %d") ("^pdf$" "." "open -
> a /Applications/TeXniscope.app %o") ("^html?$" "." "netscape %o"))))
> >
> > Do you have another version of Emacs installed?
> Yes!
> >   If so, you might well have a .emacs file
> Yes, I have removed it now.
> > and a .customizations.el file
> no, no further customizations.el
> > in your home dir, and I believe that Aquamacs will read those
> > instead of the Preferences.el and customizations.el files in ~/
> > Library/... .  If so, changes written out to the latter will not be
> > read when you fire up Aquamacs.
>
> Emoving .emacs does not help.

Put this in your .emacs:
(setq TeX-output-view-style (quote (
("^dvi$" "." "open -a texniscope.app %d")
("^pdf$" "." "open -a texniscope.app %o")
("^html?$" "." "open -a safari.app %o"))))

Works for me with Carbon Emacs Package Spring 2007 as downloaded from
http://www.apple.com/downloads/macosx/unix_open_source/carbonemacspackage.html
which is Based on Emacs 22.0.97 (CVS 2007-04-08)

Armin Goralczyk
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿüw¥¥û¥"wèÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿüÆœý7—YæìŠ×ÿ†ÛiÿÿðÃÞ²oé²ïÞvïæiÏí{Óyq at Cøm¶Ÿÿÿ0þ×±ý§ÿºOßj¢â²Ð+r¯{øm¶ŸÿþÛ þŠàþ˜©z¹šŠ_æiÊ,µìÿj·!Š÷¬ü¸¬µ¦Šw^®ÏĶ*®zÛ^þm§ÿÿÃÿzÉÿ¦ËÿyÛ¿™§ÿµì–+-



More information about the MacOSX-TeX mailing list