[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Vertically aligning images in tables?
From: |
Peter Davis |
Subject: |
Re: [O] Vertically aligning images in tables? |
Date: |
Fri, 15 Jan 2016 13:18:20 -0500 |
Eric S Fraga <address@hidden> 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