From d92b46f6e5507836f6927fbb240493c82239293d Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Sun, 22 Nov 2009 23:51:45 +0100 Subject: [PATCH] LaTeX export: Allow figure placement in plain lists --- lisp/ChangeLog | 3 +++ lisp/org-latex.el | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c43b6296e..1a999fe13 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2009-11-22 Carsten Dominik + * org-latex.el (org-export-latex-format-image): Indent figure + environment, so that it does not interrupt plain list. + * org.el (org-open-at-point): Allow long link descriptions. 2009-11-21 Carsten Dominik diff --git a/lisp/org-latex.el b/lisp/org-latex.el index a7b9b720d..15df5537f 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1639,6 +1639,12 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER." \\end{figure}") (t "\\includegraphics[%attr]{%path}"))) + + (setq figenv (mapconcat 'identity (split-string figenv "\n") + (save-excursion (beginning-of-line 1) + (looking-at "[ \t]*") + (concat "\n" (match-string 0))))) + (if (and (not label) (not caption) (string-match "^\\\\caption{.*\n" figenv)) (setq figenv (replace-match "" t t figenv)))