emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Vertically aligning images in tables?


From: Rasmus
Subject: Re: [O] Vertically aligning images in tables?
Date: Fri, 15 Jan 2016 18:13:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Hi Peter,

Peter Davis <address@hidden> writes:

>>     http://thread.gmane.org/gmane.emacs.orgmode/92820
>
> This solution looks very specific to a particular problem.

It is a solution to the problem:

   Place multiple images on one way the Correct Wayᵀᴹ when using ox-latex.

> I'm not interested in captions at all.

They can be removed.

> I just have 3 images, roughly the same width by different heights, and
> I'd like to place them side by side, with the tops aligned. I doesn't
> have to be a table, but I assume that would be the simplest way to do
> this (except I haven't made it work yet.)

The simplest way is special blocks.

Nonetheless, if you feel strongly about tables you could do it like this¹:

     #+latex_header: \def\imgtop#1{\vtop{\null\hbox{#1}}}
     #+macro: imgtop @@latex:\imgtop{@@ $1 @@latex:}@@

     #+attr_latex: :booktabs nil
     | <c>                             | <c>                             |
     | {{{imgtop([[file:img1.png]])}}} | {{{imgtop([[file:img2.png]])}}} |

Hope it helps,
Rasmus

Footnotes: 
¹   See: 
http://tex.stackexchange.com/questions/23521/tabular-vertical-alignment-to-top

-- 
May contains speling mistake



reply via email to

[Prev in Thread] Current Thread [Next in Thread]