From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Davis Subject: Re: Vertically aligning images in tables? Date: Fri, 15 Jan 2016 13:18:20 -0500 Message-ID: <6sw6c7si1yu2oj.fsf@BO-C02PWE1MG8WN.home> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aK8x8-00040j-9l for emacs-orgmode@gnu.org; Fri, 15 Jan 2016 13:18:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aK8x4-00056d-Mc for emacs-orgmode@gnu.org; Fri, 15 Jan 2016 13:18:26 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:57053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aK8x4-00056S-GU for emacs-orgmode@gnu.org; Fri, 15 Jan 2016 13:18:22 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id F0C9B20791 for ; Fri, 15 Jan 2016 13:18:21 -0500 (EST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric S Fraga 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