 ;; path where auctex has been installed...
 (add-to-list 'load-path "~/.emacs.d/site-lisp")
 (load "auctex.el" nil t t)
-;; (load "preview-latex.el" nil t t)
-;; Turn on RefTeX for LaTeX documents. Put further RefTeX
-;; customizations in your .emacs file.
-;(add-hook 'LaTeX-mode-hook
-;      (lambda ()
-;	(turn-on-reftex)
-;	(setq reftex-plug-into-AUCTeX t)))
-;(add-hook 'TeX-mode-hook 'turn-on-reftex)
-;; (setq reftex-plug-into-AUCTeX t)
-;; (add-hook 'LaTeX-mode-hook 'turn-on-reftex)
-;; Minimal OS X-friendly configuration of AUCTeX. Since there is no
-;; DVI viewer for the platform, use pdftex/pdflatex by default for
-;; compilation. Furthermore, use 'open' to view the resulting PDF.
-;; Until Preview learns to refresh automatically on file updates, Skim
-;; (http://skim-app.sourceforge.net) is a nice PDF viewer.
-;; (setq TeX-PDF-mode t)
-;;     (setq TeX-view-program-selection
-;;     '(((output-dvi style-pstricks)
-;;         "dvips and PDF Viewer")
-;;         (output-dvi "PDF Viewer")
-;;         (output-pdf "PDF Viewer")
-;;         (output-html "Safari")))
-;;         (setq TeX-view-program-list
-;;         '(("dvips and PDF Viewer" "%(o?)dvips %d -o && open %f")
-;;         ("PDF Viewer" "open %o")
-;;         ("Safari" "open %o")))
 ;; Add standard Sweave file extensions to the list of files recognized
 ;; by AUCTeX.
 (setq TeX-file-extensions

;;(set-default-font "-*-SF Mono-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1")
;;(set-face-attribute 'default nil :font "-*-SF Mono-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1")

;; Fantasque Sans Mono (https://github.com/belluzj/fantasque-sans)
;; (add-to-list 'default-frame-alist '(font . "Fantasque Sans Mono-13"))
;; (set-face-attribute 'default t :font "Fantasque Sans Mono-13")
;; Set the pitch if e.g. TODO should have the same size than the header.
;;(set-default-font "-*-Fantasque Sans Mono-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1")
;;(set-face-attribute 'default nil :font "-*-Fantasque Sans Mono-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1")
;; (set-face-attribute 'default nil :font "Fantasque Sans Mono")
;; have to set the following two, in order to
;;(set-face-attribute 'fixed-pitch nil :font "Fantasque Sans Mono")
;;(set-face-attribute 'variable-pitch nil :font "Fantasque Sans Mono")
;;
;;;


(add-to-list 'org-latex-packages-alist '("" "float"))
(add-to-list 'org-latex-packages-alist '("" "xcolor"))

;; place captions below tables, not above
(setq org-latex-caption-above nil)
(setq org-export-latex-table-caption-above nil)
