From: Peter Davis <pfd@pfdstudio.com>
To: emacs-orgmode@gnu.org
Subject: Re: Vertically aligning images in tables?
Date: Fri, 15 Jan 2016 13:18:20 -0500 [thread overview]
Message-ID: <6sw6c7si1yu2oj.fsf@BO-C02PWE1MG8WN.home> (raw)
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> On Thursday, 14 Jan 2016 at 17:05, Peter Davis wrote:
>> I'm trying to place three images side-by-side to they're top-aligned,
>> but I can't see to find a way to get org-mode to do this. My
>
> Following up on my previous email, I couldn't resist...
>
> A LaTeX hack that works is:
>
> #+begin_src org
> ,* introduction
> ,#+latex: \newcommand{\boxedimage}[1]{\parbox[b][20pt][t]{1.5cm}{\includegraphics[scale=0.3]{#1}}}
> ,#+MACRO: p \boxedimage{$1}
> ,#+ATTR_LATEX: :align ccc
> |------------------+------------------+--------------------|
> | {{{p(./A.png)}}} | {{{p(./B.png)}}} | {{{p(./C.png)}}} |
> |------------------+------------------+--------------------|
>
> #+end_src
>
> I tried to have everything in the macro but org started escaping some of
> the curly braces unfortunately...
Thanks, Eric. This seems very close, although in one case, the text below the table is overlapping the images. I should be able to
fix that.
Thank you!
-pd
next reply other threads:[~2016-01-15 18:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-15 18:18 Peter Davis [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-01-15 18:26 Vertically aligning images in tables? Peter Davis
2016-01-15 18:24 Peter Davis
2016-01-15 19:36 ` John Hendy
2016-01-15 15:16 Peter Davis
2016-01-15 17:13 ` Rasmus
2016-01-15 17:15 ` Rasmus
2016-01-14 22:05 Peter Davis
2016-01-15 12:16 ` Rasmus
2016-01-15 16:44 ` Eric S Fraga
2016-01-15 17:03 ` Eric S Fraga
2016-01-15 17:10 ` John Hendy
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6sw6c7si1yu2oj.fsf@BO-C02PWE1MG8WN.home \
--to=pfd@pfdstudio.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.