Procházet zdrojové kódy

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 před 15 roky
rodič
revize
74d337ef23
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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."