     ;; Allow _ and ^ characters to sub/super-script strings but only when
     ;; string is wrapped in braces
     (setq org-use-sub-superscripts         '{}) ; in-buffer rendering
-    (setq org-export-with-sub-superscripts '{}) ; for exports
-    (setq org-export-with-smart-quotes t)
 
     ;; Single key command execution when at beginning of a headline
     (setq org-use-speed-commands t) ; ? speed-key opens Speed Keys help

               (and tags
                    (format "\\hfill{}\\textsc{%s}"
                            (mapconcat (lambda (tag) (org-latex-plain-text tag info))
                                       tags ":")))))

            ;; `-shell-escape' is required when converting a .tex file
            ;; containing `minted' package to a .pdf

            ;; Run pdflatex multiple times to get the cross-references right
            ;; (setq org-latex-pdf-process '("pdflatex -shell-escape %f"
            ;;                               "pdflatex -shell-escape %f"
            ;;                               "pdflatex -shell-escape %f"))

            ;; 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 %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"
                                          "xelatex -shell-escape %f"))))

;;;; ox-html - HTML export
        (use-package ox-html

    ;; Prevent auto insertion of blank lines before headings and list items
    (setq org-blank-before-new-entry '((heading)
                                       (plain-list-item)))

    (setq org-startup-folded 'showall)
    ;; fold / overview  - collapse everything, show only level 1 headlines
