emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Inserting multiple images side-by-side in way that's compatible with multiple exporters
@ 2013-03-26 15:57 John Hendy
  2013-03-26 20:15 ` Marcin Borkowski
  0 siblings, 1 reply; 2+ messages in thread
From: John Hendy @ 2013-03-26 15:57 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-26 20:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-26 15:57 Inserting multiple images side-by-side in way that's compatible with multiple exporters John Hendy
2013-03-26 20:15 ` Marcin Borkowski

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).