From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: [ODT] image scaling overridden by long caption Date: Wed, 15 Feb 2012 01:03:36 +0100 Message-ID: <87k43prmhz.fsf@med.uni-goettingen.de> References: <87aa5lwfxm.fsf@med.uni-goettingen.de> <81pqefv4r9.fsf@gmail.com> <87r4yt9x5u.fsf@med.uni-goettingen.de> <81ipk2mbzv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxSLw-0007FA-CN for emacs-orgmode@gnu.org; Tue, 14 Feb 2012 19:04:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxSLu-0006ft-TL for emacs-orgmode@gnu.org; Tue, 14 Feb 2012 19:04:08 -0500 Received: from plane.gmane.org ([80.91.229.3]:57948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxSLu-0006fO-Nx for emacs-orgmode@gnu.org; Tue, 14 Feb 2012 19:04:06 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RxSLr-0001mU-Ej for emacs-orgmode@gnu.org; Wed, 15 Feb 2012 01:04:03 +0100 Received: from vpn-2205.gwdg.de ([134.76.2.205]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Feb 2012 01:04:03 +0100 Received: from andreas.leha by vpn-2205.gwdg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Feb 2012 01:04:03 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Jambunathan K 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: kjambunathan@gmail.com > #+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]] `----