             ;; Below will output tex files with
             ;;   \usepackage[FIRST STRING IF NON-EMPTY]{SECOND STRING}
             ;; The org-latex-packages-alist is a list of cells of the format:
-            ;;   ("options" "package" SNIPPET-FLAG)
-            ;; SNIPPET-FLAG is non-nil by default. So unless this flag is set
-            ;; to nil, that package will be used even when previewing latex
-            ;; fragments using the `C-c C-x C-l' binding
+            ;;   ("options" "package" SNIPPET-FLAG COMPILERS)
+            ;; If SNIPPET-FLAG is non-nil, the package also needs to be included
+            ;; when compiling LaTeX snippets into images for inclusion into
+            ;; non-LaTeX output (like when previewing latex fragments using the
+            ;; "C-c C-x C-l" binding.
+            ;; COMPILERS is a list of compilers that should include the package,
+            ;; see `org-latex-compiler'.  If the document compiler is not in the
+            ;; list, and the list is non-nil, the package will not be inserted
+            ;; in the final document.
             (setq org-latex-packages-alist
                   '(
                     ;; % 0 paragraph indent, adds vertical space between paragraphs

                (progn
                  (setq org-latex-listings 'minted) ; default nil
                  ;; The default value of the `minted' package option `cachedir'
                  ;; is "cachedir=_minted-\jobname". That clutters the working
                  ;; directories with _minted* dirs. Instead create those cache
                  ;; dirs in temp folders.
                  (defvar latex-minted-cachedir (concat "cachedir="
                                                        temporary-file-directory
                                                        (getenv "USER")
                                                        "/.minted/\\jobname"))
                  (if (eq org-latex-create-formula-image-program 'dvipng)
                      ;; If `org-latex-create-formula-image-program' is set to
                      ;; `'dvipng', minted package cannot be used to show latex
                      ;; previews.
                      (add-to-list 'org-latex-packages-alist `(,latex-minted-cachedir "minted" nil))
                    (add-to-list 'org-latex-packages-alist `(,latex-minted-cachedir "minted")))

                  ;; minted package options (applied to embedded source codes)
                  (setq org-latex-minted-options

;; Time-stamp: <2016-02-11 18:37:04 kmodi>
;; Hi-lock: (("\\(^;\\{3,\\}\\)\\( *.*\\)" (1 'org-hide prepend) (2 '(:inherit org-level-1 :height 1.3 :weight bold :overline t :underline t) prepend)))
;; Hi-Lock: end

