[OS X TeX] Emacs & TeXniscope

Jose Figueroa-O'Farrill j.m.figueroa at ed.ac.uk
Thu Dec 22 18:09:31 CET 2005



>>>>> "Dan" == Dan Eriksen <dan_eriksen at get2net.dk> writes:

Dan> Hi out there
Dan> After writing a LaTeX document (myfile.tex) in (Aqua)Emacs, I
Dan> wrote C-c C-c and the system performed a

Dan> Command: (default LaTeX)

Dan> in the mini buffer window of Emacs.
Dan> Repeating C-c C-c the mini buffer window pops up with

Dan> View command: xdvi  -paper a4 myfile.dvi

Dan> Where is the script file (and what is its name) where I can
Dan> change the behavior of Emacs (xdvi  -paper a4 myfile.dvi) to

Dan> View command: open -a TeXniscope myfile.dvi

Dan> in response to the second C-c C-c

Dan> Thank you,
Dan> and the best wishes to all of you
Dan> and a merry christmas
Dan> and a happy new year
Dan> Dan


Somewhere in your initialisation file (.emacs or similar) you can set
the variable TeX-output-view-style to do what you want.  In my case, I
have

   (setq TeX-output-view-style
         (quote (("^dvi$" "." "open -a TeXniscope %o")
	         ("^pdf$" "." "open -a TeXniscope %o")
	         ("^html?$" "." "open %o")
	      )))

I hope this helps and Happy Holidays for you too,

José




------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list