[OS X TeX] PDF-->PDFView and DVI-->TeXniscope under Auctex?
Robert H. Sloan
sloan at uic.edu
Wed Apr 18 19:56:22 CEST 2007
Does anybody know the right settings to cause PDF to be previewed
with PDFView but the odd thing that must be DVI previewed with
TeXniscope?
Putting
(require 'tex-site)
(add-hook 'TeX-mode-hook
(lambda ()
(add-to-list 'TeX-output-view-style
'("^pdf$" "."
"/Applications/PDFView.app/Contents/MacOS/gotoline.sh %n %
(OutFullPath)")
)
(add-to-list 'TeX-expand-list
'("%(OutFullPath)" (lambda nil
(expand-file-name
(TeX-active-master (TeX-output-extension) t)
(TeX-master-directory))))))
)
in my .emacs gets me PDFView, and causes my TeX-output-view-style to
become:
TeX-output-view-style is a variable defined in `tex.el'.
Its value is
(("^dvi$" "^xdvi$" "open-x11 %(o?)xdvi %dS %d")
("^dvi$" "^TeXniscope$" "open -a TeXniscope.app %o")
("^pdf$" "." "open %o")
("^html?$" "." "open %o")
("^pdf$" "." "/Applications/PDFView.app/Contents/MacOS/gotoline.sh %n
%(OutFullPath)"))
But although I have TeXniscope in /Applications (and for that matter
I have xdvi in /opt/local/bin), nothing happens when I click the dvi-
preview button when I have my TeXing mode set to dvi rather than PDF.
------------------------------------------------------------------------
-------
Robert H. Sloan http://www.cs.uic.edu/~sloan/
Professor and Director of Graduate Studies
Dept. of Computer Science
University of Illinois at Chicago
(312) 996-2369
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the macostex-archives
mailing list