babel: fixed latex packages in org-babel-latex -- Thanks to William Henney

* contrib/babel/lisp/langs/org-babel-latex.el (org-babel-latex-body-to-tex-file):
  now calling `org-export-latex-fix-inputenc' to sort out encodings in
  latex package list
This commit is contained in:
Eric Schulte 2010-06-14 14:45:33 -07:00
parent 08d8331307
commit 74d337ef23
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ called by `org-babel-execute-src-block'."
(if org-format-latex-header-extra (if org-format-latex-header-extra
(concat "\n" org-format-latex-header-extra) (concat "\n" org-format-latex-header-extra)
"") "")
"\n\\begin{document}\n" body "\n\\end{document}\n"))) "\n\\begin{document}\n" body "\n\\end{document}\n")
(org-export-latex-fix-inputenc)))
(defun org-babel-latex-tex-to-pdf (tex-file) (defun org-babel-latex-tex-to-pdf (tex-file)
"Extracted from `org-export-as-pdf' in org-latex.el." "Extracted from `org-export-as-pdf' in org-latex.el."