From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [ODT] image scaling overridden by long caption Date: Fri, 20 Jan 2012 01:33:54 +0530 Message-ID: <81pqefv4r9.fsf@gmail.com> References: <87aa5lwfxm.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnyDX-0004gU-Ko for emacs-orgmode@gnu.org; Thu, 19 Jan 2012 15:04:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnyDW-0004JC-85 for emacs-orgmode@gnu.org; Thu, 19 Jan 2012 15:04:15 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:59442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnyDV-0004J5-Qd for emacs-orgmode@gnu.org; Thu, 19 Jan 2012 15:04:14 -0500 Received: by iadj38 with SMTP id j38so425333iad.0 for ; Thu, 19 Jan 2012 12:04:12 -0800 (PST) In-Reply-To: <87aa5lwfxm.fsf@med.uni-goettingen.de> (Andreas Leha's message of "Wed, 18 Jan 2012 09:52:37 +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: Andreas Leha Cc: emacs-orgmode@gnu.org Hello Andreas > Hi all, > > I experience unexpected behaviour with the excellent odt exporter in case of > included images. > When I add a #+caption the text width of that caption overrides the > specified image width (#ATTR_ODT: :witdh X), which I use to downscale > the image in the odt. > Especially if that caption will span across multiple lines, that effect > is visible. > > Here is the example: > > ----------------------------------------------------------------------- > * odt image test > #+caption: foo > #+ATTR_ODT: :width 8 > #+header: :file foo.png > #+header: :width 3600 :height 3600 :res 600 > #+begin_src R :exports results :results graphics > plot(1:100, 1:100) > #+end_src > #+caption: foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo > #+ATTR_ODT: :width 8 > #+header: :file foo.png > #+header: :width 3600 :height 3600 :res 600 > #+begin_src R :exports results :results graphics > plot(1:100, 1:100) > #+end_src > ------------------------------------------------------------------------- > > > I'd expect the image scaling to take place in either case. Maybe even > the caption should wrap at the specified width. I have pushed a fix for this. Hope the new behaviour is according to your expectation. > On a related note: Could I place two (correctly scaled) images > side-by-side? For the sake of record, your request is much similar to what is discussed here http://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00780.html - save for (dynamically-generated) images taking the place of src blocks. Try something like this: #+begin_list-table - [[./foo1.png]] - [[./foo2.png]] #+end_list-table Make sure that the images are "small" images. If you replace the image links above with R srcblocks or attach caption/attr_odt to the above above images, the results are less than satisfactory. So the answer to your question is a "soft" no. Notes to self: There are multiple ways to achieve side-by-side effect. - use tables (aka "list tables") - use 2-Column sections - 2-column frames (what is this?) "side-by-side" has surfaced in the list for the second time, I think it deserves to be supported "out of the box". Jambunathan K.