Explorar o código

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
Eric Schulte %!s(int64=15) %!d(string=hai) anos
pai
achega
74d337ef23
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      contrib/babel/lisp/langs/org-babel-latex.el

+ 2 - 1
contrib/babel/lisp/langs/org-babel-latex.el

@@ -97,7 +97,8 @@ called by `org-babel-execute-src-block'."
             (if 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)
   "Extracted from `org-export-as-pdf' in org-latex.el."