emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: pfd@pfdstudio.com
Cc: emacs-orgmode@gnu.org
Subject: Re: Vertically aligning images in tables?
Date: Fri, 15 Jan 2016 18:13:13 +0100	[thread overview]
Message-ID: <87bn8mg40m.fsf@gmx.us> (raw)
In-Reply-To: <6sw6c737tyvpo3.fsf@BO-C02PWE1MG8WN.home> (Peter Davis's message of "Fri, 15 Jan 2016 10:16:28 -0500")

Hi Peter,

Peter Davis <pfd@pfdstudio.com> 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	other threads:[~2016-01-15 17:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-15 15:16 Vertically aligning images in tables? Peter Davis
2016-01-15 17:13 ` Rasmus [this message]
2016-01-15 17:15   ` Rasmus
  -- strict thread matches above, loose matches on Subject: below --
2016-01-15 18:26 Peter Davis
2016-01-15 18:24 Peter Davis
2016-01-15 19:36 ` John Hendy
2016-01-15 18:18 Peter Davis
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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bn8mg40m.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    --cc=pfd@pfdstudio.com \
    /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 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).