Skip to content

Instantly share code, notes, and snippets.

@sora
Created June 19, 2011 23:21
Show Gist options
  • Save sora/1034890 to your computer and use it in GitHub Desktop.
Save sora/1034890 to your computer and use it in GitHub Desktop.
tex environment
;; tex
(require 'tex-site)
(add-hook 'LaTeX-mode-hook 'TeX-PDF-mode)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq reftex-toc-split-windows-horizontally t)
;(setq-default TeX-master nil)
(setq TeX-view-program-selection '((output-pdf "Skim")))
(setq TeX-view-program-list '(("Skim" "/Applications/Skim.app/Contents/SharedSupport/displayline %n %o %b")))
(custom-set-variables
'(LaTeX-command "latex -synctex=1"))
(custom-set-faces)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment