From 685079fb2d45eabbe375037b84564e5723e82412 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 23 Jan 2014 12:14:53 -0800 Subject: [PATCH] remove fontspec and unicode from default list; remove alternate packages from create formula --- .emacs | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.emacs b/.emacs index 3428d07..cf2269e 100644 --- a/.emacs +++ b/.emacs @@ -681,9 +681,7 @@ Argument DESCRIPTION MIME description." ;; Default packages included in /every/ tex file, latex, pdflatex or xelatex (setq org-latex-default-packages-alist - '(("" "fontspec" t) - ("" "xunicode" t) - )) + '()) (setq org-latex-packages-alist '(("" "graphicx" t) ("" "fontspec" t) @@ -694,6 +692,22 @@ Argument DESCRIPTION MIME description." ("" "longtable" nil) ("" "float" ))) +(defun org-create-formula--latex-header () + "Return LaTeX header appropriate for previewing a LaTeX snippet." + (let ((info (org-combine-plists (org-export--get-global-options + (org-export-get-backend 'latex)) + (org-export--get-inbuffer-options + (org-export-get-backend 'latex))))) + (org-latex-guess-babel-language + (org-latex-guess-inputenc + (org-splice-latex-header + org-format-latex-header + org-latex-default-packages-alist + nil t + (plist-get info :latex-header))) + info))) + + ; support ignoring headers in org mode export to latex ; from http://article.gmane.org/gmane.emacs.orgmode/67692 (defadvice org-latex-headline (around my-latex-skip-headlines -- 2.39.2