emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [ODT] image scaling overridden by long caption


From: Andreas Leha
Subject: Re: [O] [ODT] image scaling overridden by long caption
Date: Wed, 15 Feb 2012 01:03:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)

Jambunathan K <address@hidden> writes:

> Hello Andreas
>
> I have added support for character anchored images as part of the
> following commit release_7.8.03-201-g1d99fd7.
>
> I am attaching a sample Org file and the associated ODT output.
>
> #+TITLE:     side-by-side.org
> #+AUTHOR:    Jambunathan K
> #+EMAIL:     address@hidden
> #+DATE:      2012-01-23 Mon
> #+DESCRIPTION:
> #+KEYWORDS:
> #+LANGUAGE:  en
> #+OPTIONS:   H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
> #+OPTIONS:   TeX:t LaTeX:dvipng skip:nil d:nil todo:t pri:nil tags:not-in-toc
>
> #+EXPORT_SELECT_TAGS: export
> #+EXPORT_EXCLUDE_TAGS: noexport
> #+LINK_UP:   
> #+LINK_HOME: 
> #+XSLT:
>
> * Side-by-Side images using Babel
>
> Creating side-by-side images with Babel is problematic.
>
> #+caption: foo
> #+ATTR_ODT: :width 7 :height 7 :anchor as-char
> #+header: :file foo.png
> #+begin_src R :exports results :results graphics
>   plot(1:100, 1:100)
> #+end_src
> #+caption: foo
> #+ATTR_ODT: :width 7 :height 7 :anchor as-char
> #+header: :file foo.png
> #+begin_src R :exports results :results graphics
>   plot(1:100, 1:100)
> #+end_src
>

[...]

Hi Jambunathan,

thanks a lot for this.  This side-by-side placement is finally
something, that is better in the odt exporter than in the latex/pdf
route!

As I am not an office user, I have one question, though:  Is it
possible to change the alignment of the boxes such that they get
top-aligned?

See the included example to show why that is interesting to me.

(BTW: If exported to .doc, this .doc does it as expected...)

Regards,
Andreas

PS: The example:

,----[ test-side-by-side.org ]
| * Side-by-Side
| #+name: l_image
| #+header: :file limage.png
| #+begin_src R :exports results :results graphics
|   plot(1:10, 1:10)
| #+end_src
| 
| 
| #+name: r_image
| #+header: :file rimage.png
| #+begin_src R :exports results :results graphics
|   plot(1:10, 1:10)
| #+end_src
| 
| 
| #+caption: short caption
| #+attr_odt: :width 7 :anchor as-char
| #+results: l_image
[[| file:limage.png]]
| #+caption: longer caption that needs more lines then the other one to be 
printed on screen which causes not nice "bottom alignment".
| #+attr_odt: :width 7 :anchor as-char
| #+results: r_image
[[| file:rimage.png]]
`----




reply via email to

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