emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas Leha <andreas.leha@med.uni-goettingen.de>
To: emacs-orgmode@gnu.org
Subject: Re: [ODT] image scaling overridden by long caption
Date: Wed, 15 Feb 2012 01:03:36 +0100	[thread overview]
Message-ID: <87k43prmhz.fsf@med.uni-goettingen.de> (raw)
In-Reply-To: 81ipk2mbzv.fsf@gmail.com

Jambunathan K <kjambunathan@gmail.com> 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]]
`----

  parent reply	other threads:[~2012-02-15  0:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-18  8:52 [ODT] image scaling overridden by long caption Andreas Leha
2012-01-19 20:03 ` Jambunathan K
2012-01-21 10:18   ` Andreas Leha
2012-01-23 19:53     ` Jambunathan K
2012-01-23 21:20       ` Nicolas Goaziou
2012-02-01  9:16         ` comments and attributes Jambunathan K
2012-02-01 13:04           ` Nicolas Goaziou
2012-02-15  0:03       ` Andreas Leha [this message]
2012-01-27 14:40     ` [ODT] image scaling overridden by long caption Jambunathan K
2012-01-27 22:41       ` Andreas Leha
2012-01-31  4:59         ` Jambunathan K
2012-02-07 10:04           ` Andreas Leha
2012-01-23  1:53   ` Side-by-side support (was:Re: [ODT] image scaling overridden by long caption) Christian Wittern
2012-01-23 16:34     ` Side-by-side support Jambunathan K
2012-01-23 23:51       ` Christian Wittern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k43prmhz.fsf@med.uni-goettingen.de \
    --to=andreas.leha@med.uni-goettingen.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).