From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28398 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jiewuza Newsgroups: gmane.text.pandoc Subject: Converting to latex with a figure in a table Date: Thu, 20 May 2021 10:22:13 +0800 (GMT+08:00) Organization: news.gmane.io Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_6_237725702.1621477333836" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31766"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCKYBFEGRAJRBZMPS6CQMGQEIKY4GXQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu May 20 04:22:32 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f59.google.com ([209.85.128.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ljYKV-00085a-Jo for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 20 May 2021 04:22:31 +0200 Original-Received: by mail-wm1-f59.google.com with SMTP id b16-20020a7bc2500000b029014587f5376dsf2420700wmj.1 for ; Wed, 19 May 2021 19:22:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621477351; cv=pass; d=google.com; s=arc-20160816; b=o0OMcf02rrrGe+7OibKzyXaplV7pmvcKIhm4UkU68bGDvxTieLKUyyc4yidrDRw1R5 bqZBDmQkj7iNN6GXixCzAbCu4IFgLRvb7bVAbQiSxG6QIjhEPVLYAIrHVQgq+OiWWeGE HSFO0pFg5pENsACWLCocXhRD9GcbRdaDB+K8K5aGIc8LZSPEZFq5zw9nupfc2lSM/Zrx tOPGTTMZVxU/w+gIZ0OXIz5RCOzeZWSQ3S8BaPl8tpT4e20nJDfgupoJmBTIZAZ9EaEn PTw9ViZB1Y+lldC7yodq5bbK6rPxakze41/ahFADS0EMwaJCySYvmGIMG6vEnAXmuiav 2Xmw== 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 :organization:date:subject:from:to:sender:dkim-signature; bh=oCfo/G20Tc5FnbXfUoC0use7tsI2BcVvk6cjIe2IfxM=; b=suVRSK2zJgC6rcBhDYbNryz743sA4jF+x1qRwO4foW3RF/2KrzEGhqGpZJXFIgEohh vCe0oZ96y1/mxEV6xdL/zEoyNxqxGTt3trkBYCVntmifIY8qSt+YrV4/2Q0+V/3+HzzS l22tuTCmbFuhoU+lInkuaqcQC17+U1hx3sHJPO8ev/C8ddKK5EXw145xbIlxt4SfHA9j pNuecYN/ldmaynHYDws0IHi109pWRt/Ga6o1Lzh8afP2wyzBFw0fXJ0tzCCm8IM1CIc5 UhIetzAfui4Jm+FkAzCHiSPECtuSi3f/UpTDzWxImuINh59ah2zhH3ZPBi05ROAWISBJ F4eg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of gtp-pandoc-discuss@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=gtp-pandoc-discuss@m.gmane-mx.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:to:from:subject:date:organization: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=oCfo/G20Tc5FnbXfUoC0use7tsI2BcVvk6cjIe2IfxM=; b=Q5Q4wrHoJPtpqhmra+sZ02qc5UUUCYT73/mrnHJJRFQ37gzfGumVHrqgNu1b2a6GKv awhvcGkoiIn/W9OJIa01OvwdP9gQ+ddb4dmwJhy/hc8fBawtEi7D40gOd4edfirHKg2L gMEwczuKyFT2TyLBFxkj7m0y2yw+Md5JxCjrC8+WL6aG/tMoUiuJtwDg0qrD2OZrRVcf 8B4yLXoU/GERlU/fb7jriBdkF+ZkpwJYnfL0t4SE1J2lKUfXY2C5coDta37tzdcrkwyy KrXT3iojcIV1YazHxZI3edOrz1aXoAHoLIyPrktA3oNuuxQxBMKbL2Dp7/z8to4LAW6m m+JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:to:from:subject:date:organization :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=oCfo/G20Tc5FnbXfUoC0use7tsI2BcVvk6cjIe2IfxM=; b=X/A4uB+gZCdJiH9ltmQJDJhGFsXTaEOW5DhB1oaQc70KW5kBqZmf30DnX29FiEsayB JX322kDYQ7ZNrC4O37GGysTTImhwfqw6fPgrbxKh+8uAq7cXx0pdkBJvG3dTw8PO4TSy 3nw/FnXV/aVbbjZd1yjZwjvuRENsZXpbefrBmflfsFGKwKpTka2gROys1zKSXa6NjaKw qjemh0MEno1DRMKkJsGYrAWFteBtZ3i1WKJq6yIqTCMf8sr0ogw3mXqlwy5c3zfzHKuO O1Cnudp414y9dNr226Oe04cfEww4FjRia3QywU0nalZ1NfbTw0WRl8s9BguAZBs4aFNp y6kA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532MJQ1Y+UYn9UYcQswb1kY2uI7TYChPXqOh0EdwsTgdZS/mtpP1 vEuCb0iGR2+g+xYufvmvt0Q= X-Google-Smtp-Source: ABdhPJzUfpRbLYRNUSpJNaVsxsYrZFh+JOkiRPBLBd2Ny8DNXExVNfOjzzbpqH9loQyNJGJnXJSD1g== X-Received: by 2002:a5d:6b52:: with SMTP id x18mr1650506wrw.11.1621477351195; Wed, 19 May 2021 19:22:31 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:1909:: with SMTP id j9ls3721704wmq.3.canary-gmail; Wed, 19 May 2021 19:22:29 -0700 (PDT) X-Received: by 2002:a05:600c:4fd0:: with SMTP id o16mr1722249wmq.137.1621477348939; Wed, 19 May 2021 19:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621477348; cv=none; d=google.com; s=arc-20160816; b=H1gryhwy6mFOI7/2jycfOyvJyplliXJqwMG7bPBsFl0fw71s0+/WhKT70nAjrEtNxj 0/IF2G67xbzL8meGsCLAspecJJtgCeSpenHuyq3T85o1y7WPblq6EwMN3ZhP2EkcoDo5 qtHfy7b48EdBCbQdq924tCRlQuU21JBlLcUzB2xGXz0wjfbzZ+bzXsPraN3afNbXVjUK JqASkEtTPdA7ah0NAtYPkQH5Msi/hVB7jivDwxb7hDKQNf3nGoqC6Sv7pNnKYCG/w1Cj /I1xtTl1aQ0ko2o+hV3FLkFTmP2DnJGBV5KzrjHaHI2hHYjJkrdNim/NXR2dLGzyag0T h/sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:organization:date:subject:from:to; bh=VRJM8DeIT5bw/WvUphA8SOCbQW7pQJwx4ItnMg2lV74=; b=r1lDsbFoTHxDEk8H3YsQNw6A+BSGc0lBcfIq53N7DeEdQTxOtehWEzXtRZq70eJ3YC B7RDM+s8PtniREI1YIYVM1x2J+gV6hEZQ2qnjbCzTh9Mdj4ogIQNwvfuRi6wjwT8Un/x 0kw12J8VL4U3MG4zFM4SbEY342FyC0QPXrIeZ1PuKdknwiO0tLqVjZ+nWAehYIVWaOzq gVO0WMy3Beh4jTbx6/T0x2L3EEXANZ23zcNFzlaxMhm9U4KL/4rdGCa9fDDSFrwDD+ia TO7WnqgFg93opP4cQbXciamaGXQDPv2rU3vb2rL1L3wKEHOnpIJH651YAmpC/9tu/hyV URRA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of gtp-pandoc-discuss@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=gtp-pandoc-discuss@m.gmane-mx.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Original-Received: from ciao.gmane.io (ciao.gmane.io. [116.202.254.214]) by gmr-mx.google.com with ESMTPS id d196si37713wmd.2.2021.05.19.19.22.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 19:22:28 -0700 (PDT) Received-SPF: pass (google.com: domain of gtp-pandoc-discuss@m.gmane-mx.org designates 116.202.254.214 as permitted sender) client-ip=116.202.254.214; Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ljYKS-00081e-5Y for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Thu, 20 May 2021 04:22:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-Newsreader: PiaoHong NewsGroups Reader 1.27 X-Original-Sender: gtp-pandoc-discuss@m.gmane-mx.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of gtp-pandoc-discuss@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=gtp-pandoc-discuss@m.gmane-mx.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com 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:28398 Archived-At: ------=_Part_6_237725702.1621477333836 Content-Type: text/plain; charset="UTF-8" I got 2 problems. 1. If the figure is converted as ``` \includegraphics{img/logo.png} ``` in a table cell, the image is two big to fill in the cell in the resulting pdf. It seems the image is not constained by the width of the table cell. 2. Now if I want to add caption for the figure and manually modify it as ``` \begin{figure} \centering \includegraphics{img/logo.png} \caption{blah blah} \end{figure} ``` It results in error during pdf generation. According to https://tex.stackexchange.com/questions/383254/placing-figures-inside-table-with-captions-for-each I wonder if it is possible for a lua filter to use subfigure when a figure is found in a table. --