     ;; Source: http://orgmode.org/worg/org-faq.html#using-xelatex-for-pdf-export
     ;; latexmk runs pdflatex/xelatex (whatever is specified) multiple times
     ;; automatically to resolve the cross-references.
-    ;; (setq org-latex-pdf-process '("latexmk -xelatex -quiet -shell-escape %f"))
+    (setq org-latex-pdf-process '("latexmk -xelatex -quiet -shell-escape -f %f"))
 
     ;; Run xelatex multiple times to get the cross-references right
-    (setq org-latex-pdf-process '("xelatex -shell-escape %f"
-                                  "xelatex -shell-escape %f"
-                                  "xelatex -shell-escape %f"))
+    ;; (setq org-latex-pdf-process '("xelatex -shell-escape %f"
+    ;;                               "xelatex -shell-escape %f"
+    ;;                               "xelatex -shell-escape %f"
+    ;;                               "xelatex -shell-escape %f"))
 
     ;; Run pdflatex multiple times to get the cross-references right
     ;; (setq org-latex-pdf-process '("pdflatex -shell-escape %f"

 ("C-c b" . org-iswitchb)
 ("C-c c" . org-capture))


(provide 'setup-org)


                   ("\\subsection{%s}"     . "\\subsection*{%s}")
                   ("\\subsubsection{%s}"  . "\\subsubsection*{%s}")))))

(defun my-org-mode-customizations ()
  ;; Reset the `local-set-key' calls
  (local-unset-key (kbd "<f10>"))
  (local-unset-key (kbd "<s-f10>"))
  (local-unset-key (kbd "<S-f10>"))
  (local-unset-key (kbd "<C-f10>")))
(add-hook 'org-mode-hook 'my-org-mode-customizations)

;; Diagrammmms
;; Source: http://pages.sachachua.com/.emacs.d/Sacha.html
