LaTeX export: Allow figure placement in plain lists

This commit is contained in:
Carsten Dominik 2009-11-22 23:51:45 +01:00
parent 29e646318f
commit d92b46f6e5
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2009-11-22 Carsten Dominik <carsten.dominik@gmail.com>
* 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 <carsten.dominik@gmail.com>

View File

@ -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)))