public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Images in tables
@ 2019-10-27 19:45 ChrisD
       [not found] ` <9c0fa901-7b66-e34e-1218-c4ff87d22bb3-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: ChrisD @ 2019-10-27 19:45 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-09 16:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-27 19:45 Images in tables ChrisD
     [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

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).