emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Inserting multiple images side-by-side in way that's compatible with multiple exporters
Date: Tue, 26 Mar 2013 10:57:29 -0500	[thread overview]
Message-ID: <CA+M2ft9Ciju=zqASCwkMqRejXCYjXSOSGRuO+taneQggQd2ADg@mail.gmail.com> (raw)

Greetings,


Writing some reports at the moment and sometimes want to condense
plots (which might have earned a full width place in a presentation or
focus document) down to smaller versions for these sort of bi-annual
summary reports. I like to put them two-wide and, since I don't know
another way, have been doing this:

#+attr_latex: :align cc
| <15>            | <15>            |
| \includegraphics[width=0.5\textwidth]{./plot.png} |
\includegraphics[width=0.5\textwidth]{./plot.png} |
| /Title/ | /Title/ |
| \vspace{0.25cm} |                 |
| \includegraphics[width=0.5\textwidth]{./plot.png} |
\includegraphics[width=0.5\textwidth]{./plot.png} |
| /Title/ | /Title/ |

This is fine when I'm the only report author (and typically am
exporting to LaTeX), but this one requires me to export my share to
ODT -> Word and then provide to the project lead so he can compile the
full report. Is there a way I could do the above in a more
"universally Org" way so that multiple export formats would work?

Org-tables seems like a decent option since it would be compatible
with many exporters, but I don't know how to pass it the
=#+attr_backend :width = options I would if they were just inserted
separately.

A LaTeX specific post on the mailing list suggested this, which mostly
gives me what I want:[1]

#+attr_latex: :align p{0.3\textwidth}p{0.3\textwidth}
| [[./plot.png]] | [[./plot.png]] |
| /Title/ | /Title/ |

The caption text is no longer centered, and I don't believe there's a
c{} analog to p{}. I could live with that if I gained the
multi-backend compatibility I'm looking for.

This works for LaTeX, but I'm not sure how to either:
1) to set a ~col width="Xpx"~ for html export or some sort of width
for ODT images contained in columns (the table itself looks like it
gets a 50/50 split width, but the images aren't scaled to fit)
2) Insert some of these #+attr_backend options into the table somehow,
or universally apply them to all images in the table


Thanks for suggestions!
John

[1] http://osdir.com/ml/emacs-orgmode-gnu/2012-03/msg00108.html

             reply	other threads:[~2013-03-26 15:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-26 15:57 John Hendy [this message]
2013-03-26 20:15 ` Inserting multiple images side-by-side in way that's compatible with multiple exporters Marcin Borkowski

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='CA+M2ft9Ciju=zqASCwkMqRejXCYjXSOSGRuO+taneQggQd2ADg@mail.gmail.com' \
    --to=jw.hendy@gmail.com \
    --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).