public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: ChrisD <cd34-gg-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Images in tables
Date: Sun, 27 Oct 2019 12:45:35 -0700	[thread overview]
Message-ID: <9c0fa901-7b66-e34e-1218-c4ff87d22bb3@intielectronics.com> (raw)

I have some tables where I have an image in the first column, and text in the second column. For example

````md
---------------------- ---------------------------------------------------------------------------
![](ButtonZ.png)       The Z button will do ...

![](ButtonX.png)       The X button will do ...
---------------------- ---------------------------------------------------------------------------
````

For HTML output, the buttons and text are vertically centered in their cells. For PDF output, it appears that the text is aligned so the bottom of the first line of text lines up with the bottom of the image.

I would like to have the table contents top aligned -- the top of the text is aligned with the top of the image. Is there any way to do that?

I found the image-in-table filter (https://github.com/zommerfelds/pandoc-image-in-table), which makes an adjustment for pdf output. The result is similar to HTML, in that the bottom of the text is aligned with the center of the image. Perhaps I could modify this filter (or convert it to a lua filter), but how would I calculate the amount to move up? And how would I duplicate this effect in html?

Thanks,

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9c0fa901-7b66-e34e-1218-c4ff87d22bb3%40intielectronics.com.


             reply	other threads:[~2019-10-27 19:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-27 19:45 ChrisD [this message]
     [not found] ` <9c0fa901-7b66-e34e-1218-c4ff87d22bb3-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org>
2020-02-09  0:33   ` Dominic Comtois
     [not found]     ` <7dfc160b-b1b7-4535-bfa5-e2863961dc4e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-02-09 16:47       ` John MacFarlane

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=9c0fa901-7b66-e34e-1218-c4ff87d22bb3@intielectronics.com \
    --to=cd34-gg-4ssc53hptiu9tmao6eloieeocmrvltnr@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.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.
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 NNTP newsgroup(s).