org-odt.el: Allow images to be anchored as characters
commit1d99fd7010b1528dd98f592a58b3a98f0b479221
authorJambunathan K <kjambunathan@gmail.com>
Mon, 23 Jan 2012 18:56:03 +0000 (24 00:26 +0530)
committerJambunathan K <kjambunathan@gmail.com>
Mon, 23 Jan 2012 19:45:34 +0000 (24 01:15 +0530)
treefb4cbdf96754e46e076a9ace8760a943b3fc5cc1
parentcb8847f6fe6f69bd85cd6531e144cad900f526b4
org-odt.el: Allow images to be anchored as characters

* lisp/org-odt.el (org-odt-entity-frame-styles): Add frame params
for images that are anchored as character.
(org-export-odt-format-image): Handle new anchor type
"as-char".
(org-export-odt-default-image-sizes-alist): Misc. change.
(org-export-odt-format-formula): Misc. change.

With this change, one can use the below snippet to produce
images that are laid out side-by-side.
    #+ATTR_ODT: :width 7 :height 7 :anchor as-char
    #+header: :file foo.png
    [[./foo.png]]
    #+caption: bar
    #+ATTR_ODT: :width 7 :height 7 :anchor as-char
    #+header: :file bar.png
    [[./bar.png]]

See http://lists.gnu.org/archive/html/emacs-orgmode/2012-01/msg00677.html.
lisp/org-odt.el