emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] LaTeX export of images


From: Carsten Dominik
Subject: Re: [Orgmode] LaTeX export of images
Date: Wed, 30 Sep 2009 09:30:04 +0200


On Sep 29, 2009, at 9:32 PM, Nick Dokos wrote:


diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index 4058891..248d653 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -1553,8 +1585,8 @@ The conversion is made depending of STRING- BEFORE and STRING-AFTER." (cond ((and imgp (plist-get org-export-latex-options- plist :inline-images))
              (insert
               (concat
-               (if floatp "\\begin{figure}[htb]\n")
-               (format "\\centerline{\\includegraphics[%s]{%s}}\n"
+               (if floatp "\\begin{figure}[htb]\n\\centering\n")
+               (format "\\includegraphics[%s]{%s}\n"
                        attr
                        (if (file-name-absolute-p raw-path)
                            (expand-file-name raw-path)
@@ -1563,7 +1595,7 @@ The conversion is made depending of STRING- BEFORE and STRING-AFTER."
                    (format "\\caption{%s%s}\n"
                            (if label (concat "\\label{" label "}") "")
                            (or caption "")))
-               (if floatp "\\end{figure}\n"))))
+               (if floatp "\\end{figure}"))))
             (coderefp
              (insert (format
                       (org-export-get-coderef-format path desc)


I have applied this patch





reply via email to

[Prev in Thread] Current Thread [Next in Thread]