From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/24399 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Images in tables Date: Sun, 09 Feb 2020 08:47:58 -0800 Message-ID: References: <9c0fa901-7b66-e34e-1218-c4ff87d22bb3@intielectronics.com> <7dfc160b-b1b7-4535-bfa5-e2863961dc4e@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="128737"; mail-complaints-to="usenet@ciao.gmane.io" To: Dominic Comtois , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBS7PQDZAKGQEHBWLVGI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Feb 09 17:48:15 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j0pkk-000XMv-RQ for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 09 Feb 2020 17:48:14 +0100 Original-Received: by mail-ot1-f60.google.com with SMTP id z62sf3635056otb.0 for ; Sun, 09 Feb 2020 08:48:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1581266894; cv=pass; d=google.com; s=arc-20160816; b=ALkTFWyX1zYIT4K6OYz+E76oCReeBvIdlly2QgQ81vA+6g0W8pHO5tgJ6ovGwT9tu4 g8CzXl6NuSGXmJfcdJyAucDx7pnLuKiFMoinNLQA3832I6gVd2m1BxWAQhs6yTW1j29C X5fv0N4KyZdpjElnVIsaSMBEjg0y0irEWMzaG/pQ9yEKDGH7OLq8FFla6oou2Mpfkjrz KOVEZ7cTtmI5V7AC54ZC7iMA0a0w9Dlc9tyQTIIdB8T0uWxbZOU0Hqn8hNmvVnugkKR1 YfFRx+PHftEHkNXou682+6S1HZhNT/pTEyfNMGDRBQK4iY/pSveqN4M7W4tMeg6PGDPr oKqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=7ChZhakDeIGkND3oidDIwFtdu0Oa6mVnz0k9zaRPJKA=; b=TDNk0H5GesC6LeB+Az4Uxs4I/NpKcYgY+eF6IYSRGTb8+loQceTAg/28tomGgn9TfW ePVp15W8IASG6de3Hlpq4nnXHxtlTQNige4XLgWkAP0dFnovNPyIYDe96/AUmS4vMQh6 vo14ieRersYLxIOamCQCXHewlMWl+LNuO1nKKr3Jl7DDOvn7qdp499INcoXvzwxopjIR +TotCaz9hRSV52xvVAv2dZquMoCueSZo3Zn3dsYbUCkpiMwuBuVzpSPyAi0JsEDQjfZ3 DmSS98j/rQk/5zwZL1aYJ9Xyj+zEK3icaYQmtyaErRwTCidevg8uDwcIngsC8cHk+vfO SQ9Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=OLUik9tT; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=7ChZhakDeIGkND3oidDIwFtdu0Oa6mVnz0k9zaRPJKA=; b=aPwGbK1nj6tZCosZhb/ef22pdBe7bz9V/V+zdM46DpWj0fu/1BOAbaRq9R7ATRSV9B jIcTVAZoX1Kzc5sVmdLRAaYewaY7pZjHZQi+itFDiNq1HAO/Z4GzBWjIM/ljlyWGJLqF nCY86IiokJPwYn/Tow7d5QfJR+21ZSR8+RwTZSAXTQmnqyv9PsdyOoSqWEWgOa0i4d27 KYxVXuOVYc7So86/CRcsl8gM1000EzvcA2lAI4OgPFm8geIivuozDNCPEEhDXM7S+j1U sg/ENCm3ZxnZl9RRn2olPWBZ1SXmkBtv9SoNQBlljb6sZok4s0Eku3uMfH6rXZYAaxlA 4tEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=7ChZhakDeIGkND3oidDIwFtdu0Oa6mVnz0k9zaRPJKA=; b=qUB12gyexSijFU0avFeUo9KIavZIm19dvmKWhjFCrT8o28Fk3jT2bc9J2wO0usCHqM o3DAm1AkyVBlnxUIYQMRztKP+ZFywGJXT7aZdHfA48MWQyjyYf+EkyTXhyZ/dCQl02QH GBcKhtPh43ugXpJaQM5N4CXrMHtiu7yf3AewiCIwbUKKcx4HNkBdi0m/i3q0sDDEh2lA XgWcy574DXsUr1rSHRhMY0KhlbIk4OHmUGqW2jDRXi0SzltoXdMHoeLMiRQrwuT+vY1p ROVaZKIvWHAipb3+6NI7puKp0eu4slQbPwAcxGmQ4gTwXRikjwI0dEYCrHbWa4n1KmXo aHwg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXJYye+cHdog/Q8QFWRMdOJbeLFmLD3sVAoZCQQ0UOYnEUmG17i NsPpVu0tlPCuybWUUX2qUwM= X-Google-Smtp-Source: APXvYqweCpO1n2J+5ApBlho5SlTGqs7AcJ3TV5tvF5vkbePDUmHsvUm/4WFig2LsGT4ir38CztRC+w== X-Received: by 2002:a9d:5e9:: with SMTP id 96mr7390030otd.307.1581266893898; Sun, 09 Feb 2020 08:48:13 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:4a4:: with SMTP id l4ls1363672otd.11.gmail; Sun, 09 Feb 2020 08:48:11 -0800 (PST) X-Received: by 2002:a05:6830:1e37:: with SMTP id t23mr7499998otr.16.1581266891286; Sun, 09 Feb 2020 08:48:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581266891; cv=none; d=google.com; s=arc-20160816; b=IdhWOA2Y8opST/4eiRCakFH0wccfDQuKWUaV5KW2IZZzPH3biSI2babJOj2j2KiYh4 rN9Nopk/7ehzIYQooIN34zeNUug+Shq0ZS0fjwl4jbenflce6t1I/i/cEM+7HgiPip6w tQ+VmKzgwx5zj3DtCN4coAw7v0u2fCTMsNfcAkUIBK9S81NcT3iBcHsUVRy9cdzVq/ec fc3cc6sbW6EpZmlhfxH4iCLUtIcxBgJfvE28XLLenef1mSH+X9WsvWw9Od9Llpvg1l9x oYH7eM61A6klf5R09WB1K3iy+ZaF8WaaSJHEFekdytogSeT/sFYr7IfIj432BjczyoSt ET7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=PGn7oFYrDx1f9fjihr+iH9fCdWQs9zX8IksNcxsP6kY=; b=KQ+FdhG18BOWzTKehsUtiFyaTxkZs9L89PH3m+XKQ6YoNGfWYz7Tq87oy9crclhIuy w33AIkUezY0NypKQpL/47bJSO6tozczzSwma6tkqeD6b7YWeCv0AVKiaK2Ai0WPFIL9H EJ8s9Ch+yJAPvNB47CpHmfI5bWeF7IlBpDjzWlzJ04obbZsbjaug0jVuxn3Llvq29mPh /uxmYms6tnnPk/zH6Q0yXj+GLR63pqk1PiJoehd6UjKRwf7b4j9Sjq3P6il7uTJrdA/R QHjgWzyoKoVsKE50UZBHkn/A6APN32KeavrKFRIPRy9LHztbbhM9HH9g7rcTyBCpJY5X 4gaA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=OLUik9tT; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com. [2607:f8b0:4864:20::42a]) by gmr-mx.google.com with ESMTPS id j26si443164oie.0.2020.02.09.08.48.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Feb 2020 08:48:11 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42a as permitted sender) client-ip=2607:f8b0:4864:20::42a; Original-Received: by mail-pf1-x42a.google.com with SMTP id k29so2426121pfp.13 for ; Sun, 09 Feb 2020 08:48:11 -0800 (PST) X-Received: by 2002:a63:ec49:: with SMTP id r9mr9998603pgj.445.1581266890499; Sun, 09 Feb 2020 08:48:10 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id t63sm9717097pfb.70.2020.02.09.08.48.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Feb 2020 08:48:09 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 0A334A18F; Sun, 9 Feb 2020 11:47:59 -0500 (EST) In-Reply-To: <7dfc160b-b1b7-4535-bfa5-e2863961dc4e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=OLUik9tT; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:24399 Archived-At: This seems relevant: https://tex.stackexchange.com/questions/30079/how-to-align-picture-top-left-in-a-table So, this might work (untested): 1. Add \usepackage[export]{adjustbox} to your header-includes or custom template. 2. Include the image using some raw LaTeX, e.g. `\includegraphics[valign=t]{imagename}`{=latex} Another option would be (I think) \adjustbox[valign=t]{\includegraphics{imagename}} Perhaps one could write a lua filter that finds all images inside tables and inserts around each one the raw latex inlines "\adjustbox[valign=t]{" and "}" The filter could also add the raw latex block "\usepackage{adjustbox}" to the metadata "header-includes" field. Then ALL that would be needed to fix the issue would be this one lua filter.