[OS X TeX] Re: emacs + auctex + TeXShop integration

Jan Anderssen jan at linguist.umass.edu
Fri Sep 3 16:47:14 CEST 2004


>  I would much
> rather edit in emacs, then press a key sequence and have TeXShop
> format the file and display my output.  Is this possible?

hi,

my .emacs looks as below. it runs pdflatex by default when i hit C-c 
C-c, and has a PDFView command that opens the pdf-file in TeXShop 
(modify the path according to your needs) -- however i've not yet 
managed to offer the PDFView command by default once the pdflatex has 
run successfully (like AUCTeX's standard latex + view sequence). i 
thought the TeX-command-next variable might help, but apparently it 
doesn't (any hints would be appreciated).

but maybe it's a step on the way at least :)

cheers,
jan


;; tex/auctex stuff
(require 'tex-site)

(add-hook 'LaTeX-mode-hook
	  (function (lambda ()
		      (require 'reftex)
		      (turn-on-reftex)
		      (setq reftex-plug-into-AUCTeX t)
		      (outline-minor-mode)
		      (add-to-list 'TeX-expand-list '("%g" file "pdf" t))
       		 (add-to-list 'TeX-command-list '("PDFTeX" "pdftex 
'\\nonstopmode\\input %t'" TeX-run-TeX nil t))
		      (add-to-list 'TeX-command-list '("PDFTeX Interactive" "pdftex 
%t" TeX-run-interactive nil t))
		      (add-to-list 'TeX-command-list '("PDFLaTeX" "pdflatex 
'\\nonstopmode\\input{%t}'" TeX-run-LaTeX nil t))
		      (add-to-list 'TeX-command-list '("PDFLaTeX Interactive" 
"pdflatex %t" TeX-run-interactive nil t))
		      (add-to-list 'TeX-command-list '("PDFView" "open -a 
/Applications/Office/TeXShop.app %g" TeX-run-command t nil))
		      (add-to-list 'TeX-command-list '("ThumbPDF" "thumbpdf %s" 
TeX-run-command nil nil))
		      (add-to-list 'TeX-command-list '("AmSTeX" "amstex 
'\\nonstopmode\\input %t'" TeX-run-TeX nil t))
		      (setq TeX-command-default "PDFLaTeX")
		      (setq TeX-command-next "PDFView")
		      (turn-on-auto-fill)
		      (setq ispell-parser 'tex)
		      (flyspell-mode)
		      )))

--------------------- 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 Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list