         ;; ("usenames"  "color") ;; HAD TO COMMENT IT OUT BECAUSE OF CLASH WITH placeins pkg
         ("mathscr"   "eucal")
         (""          "latexsym")
+        ;; Prevent an image from floating to a different location
+        ;; http://tex.stackexchange.com/questions/8625/force-figure-placement-in-text
+        (""          "float")
+        (""          "caption")
         ))
 
+;; "H" option is from the `float' package. That prevents the images from floating around.
+;; (setq org-latex-default-figure-position "htb") ;; default - figures are floating
+(setq org-latex-default-figure-position "H") ;; figures are NOT floating
 
 ;; In order to have that tex convert to pdf, you have to ensure that you have
 ;; minted.sty in your TEXMF folder.

;;                ("\\paragraph{%s}"      . "\\paragraph*{%s}")
;;                ("\\subparagraph{%s}"   . "\\subparagraph*{%s}"))
;;              )

;; Allow _ and ^ characters to sub/super-script strings but only when followed by braces
(setq org-use-sub-superscripts         '{})

       ))
(setq org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate)

;; Presentations using reveal.js
;; Download reveal.js from https://github.com/hakimel/reveal.js/
;; Instead `ox-reveal' from MELPA
(require 'ox-reveal)
;; I have git clones reveal.js in my {emacs config directory}/from-git/
(setq org-reveal-root     (concat "file://" user-emacs-directory "/from-git/reveal.js/")
      org-reveal-hlevel   1
      org-reveal-theme    "default" ;; beige blood moon night serif simple sky solarized
      org-reveal-mathjax  t ;; Use mathjax.org to render LaTeX equations
      )


(setq setup-org-loaded t)
(provide 'setup-org)
