From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28131 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Column layout of subfigures Date: Sun, 11 Apr 2021 11:51:23 +0200 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7824"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBKUNZOBQMGQEJCZKDKQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Apr 11 11:51:42 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f59.google.com ([209.85.221.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lVWkm-0001vH-M3 for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 11 Apr 2021 11:51:40 +0200 Original-Received: by mail-wr1-f59.google.com with SMTP id o11sf4573095wrc.4 for ; Sun, 11 Apr 2021 02:51:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618134700; cv=pass; d=google.com; s=arc-20160816; b=nrjdBwL4dUYD2gAz7zBV3UXam92AaUoe4i58il8NiQrWpY8W3DHc2U+SX9Scj+x9+s xXF6Ep1JdqFaCt9u2/LGPeecb1mPGEhz8ODqAjJrzR3Cw/oHket23kjMT4lUhYfkfqxt o/MmtutR9mLAo9hTO+3kgfuRdZ1r//HHRYH3bEr5OxwYgUQ894A9L9+xI5cTsk92GJq1 c1wW4jbED9cdoxs1WAjF+YwsgzBXWi/g5mhKSL8Ti6QJEaFZVPo5d/FfjR8cTXQt+jFb +MSARGvthZ2RGLMhhG1nOp7saDuUJNLSePYgd7TFgZmTgi/J1fJ70bR0LoVA04mIcRGd xfeQ== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=k9ban/TsMbiGC2MMCI/Ti6fYNXxdmlqB0ZM/MOMja9k=; b=j72XKzqZ6ijG0cdDBVLx40bDbigVoxKDGWPjc0RQep6ZDzaNX4Xpe7X+FVG6/mXdhu BKuUBgwU74oYJ3SWrvNchU5aC2hLAn0E+84uLo7sCzivz+lFaCMgrJvxG3GEE9Gh+se9 +B9dUIba7s5FELXOA/0W8TZqivrLIm3Zo4kZJzdzkXBjTggd56sMab/8x5Dpdq0flEr5 g2x7e6O80IhcNq4RVIDjEizgqTACTZPRhCn4KvAHe6T7KkQXrbEZjT+gqzyMPG1A+kJs /vB2VVO7TePJcJEMOeac2MyGA0ZsN4gXiHMeNMavzC/XKo9tRk+xRg6Ng9H8+8d5dFTj o/OQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=CGUxkNDt; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :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=k9ban/TsMbiGC2MMCI/Ti6fYNXxdmlqB0ZM/MOMja9k=; b=WX0HCAjgouPdzs6aRQape00XDbPPFxrLk7qVToyOmRq5NG5PyF0RgrKFnObvXtDu6F btmqgXdUmveJXmHVNgFWC6TWtQomU3cK3Vj4fbBAstrIEbKZS9fWAMyrL7Z5eYKPggvs scg91PZ/jYYWW1knvNgZiAHEfL/NfFvIHogzpvD1BYTRQk9mogWKzz0EQXbyTiH8beu2 8Hmb5xSN6OPqC44wxgTzhJh6GbKjsMTqz7Uq5Xl6qfm5UVMQZIYHhYhvRJBsjAyk6FP9 w2YwFMep1Z2mJQOyEP/7UNu3vcmg415Uzxo0+pfsipnrY4xdQkmSLh91DcguAZo63X1M lkZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to: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=k9ban/TsMbiGC2MMCI/Ti6fYNXxdmlqB0ZM/MOMja9k=; b=PN3e9hrvpETjmT4IlbfdBOSSRHERGjKY3/t7mjwalD0OcfvJs1jrdpDMbpqDXMlZ1j UMRA1Wbv5AK5SOwHtU1Uzrpx43DUYhiPxxPKLfEISNNhTJ1Iqt6h3DXB0GlpjRdnXXJZ ghJrqOTRMvuDWKRnYimNJf7NFlG/vrRzADm66EgamBN55eSU0T+e42Avg/61pa7mMU/r 2d9J3CUxbneo3x/Q42y6jIRWuerP16gJf59n8FxFHU/PGzJoFIEvxriCzbQCZkBQOe3O 8aZ29kHwf3qMtf2tJHL938cLJAoqO20zS8rstB+hIN/F Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5300BZkhZQq2U40wjKUjI83VbTIiX1t4qa9vR1i9WuDUwcFqqP6i Zy5zICxmVyxOecO49Z7HNVI= X-Google-Smtp-Source: ABdhPJzR1pvdaFVnOb9tenFoaucrxHUERHPr7e5pKkWk8v7+P7tyZd+l7SboNfA1OCBuSiF0EpKK4w== X-Received: by 2002:adf:f150:: with SMTP id y16mr476741wro.186.1618134700450; Sun, 11 Apr 2021 02:51:40 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a7b:cc94:: with SMTP id p20ls6400199wma.0.gmail; Sun, 11 Apr 2021 02:51:38 -0700 (PDT) X-Received: by 2002:a1c:3587:: with SMTP id c129mr20919426wma.80.1618134698245; Sun, 11 Apr 2021 02:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618134698; cv=none; d=google.com; s=arc-20160816; b=Ftl0dtPuNjGnp7Wzqr/2omOWDPM2+nUuTT9Y44JMkjxeCOe9OmJgo0AP/RqSDNuFQR UEUS2kHobUXkkEuo1xEmTfOGeKvED7MXILFdTNst/ew8ZAZuNNUjrQ2OnBw5UUUTQcW5 ziOb68T2e4M7zjP+GzLgOOvvRu0kPwszCTiFFNvfdqmiNs2wXM9gOcLgdz4zGVYsW0uQ 6xDDTKenlwvgQuZ8QzlC7of74FOKNwxx1+29RVpY7u4uu0VVedyoKve2zMmyCK4Bz/Wx IMqewM7v2/pHwhKGUuByNM6DZo33ojMCQpMkR1CwyIv1TUYm/KbSGIwB2zLw4FmT9RhW 1uUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=n9s5hHu/v+U/XVRPNV6lUNMfA1XdkF6Tyev+yAl691k=; b=C8JrfoPwvBx/B2iwQCU6zw5e+RVQjS9RwaajrUVB1VzSS2MvxYImrWfi2ygoI6S9U8 E9uzH8WgB/8mcOOYPJt60LVi32/Y3z/jEWt7sBMK5SWwCdbofj2z4Kqprgg7X/lwIOei VnN+L+zja9cq5EvOaFi0JBLDQQhX9XM58hjPRkLwRb3CXUKvBe8IGIp5Rwpbnn1ga4tk 9mDBz8cOzQ++aDSAQaXZ8RGx7oD7EY+NmPEDMTsQBOcMvWktOoSCkmZkwj5175HGU5Pi FOujJrt8Hu6ci+fBhGfhkrQNd0XVDLigm0pFxfBnP/K7OK9o6ZGuXiAgDT75F84ON+JX sU0g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=CGUxkNDt; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id p20si635798wma.0.2021.04.11.02.51.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Apr 2021 02:51:38 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id ABF282400FC for ; Sun, 11 Apr 2021 11:51:37 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FJ6Zv5xtsz9rxP for ; Sun, 11 Apr 2021 11:51:35 +0200 (CEST) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=CGUxkNDt; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:28131 Archived-At: I'm not sure to understand exactly what you need, but, for LaTeX output, if= you want to place two subfigures side by side, each one having its own cap= tion, with a general caption below, you may be interested by the subcaption= package (https://www.ctan.org/pkg/subcaption). Le Sunday 11 April 2021 =C3=A0 11:16:50AM, BPJ a =C3=A9crit : > You should probably rather open an issue in pandoc-crossref (though I don= 't > know if its a bug or just a question): >=20 > https://github.com/lierdakil/pandoc-crossref/issues >=20 > Otherwise here is a trick you may try: >=20 > If this is LaTeX the following might help: >=20 > 1.=C2=A0 Near the top of your markdown file or in a header-include[^1] pu= t this: >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 \newenvironment{hideTable}{% > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \let\toprule\relax% > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \let\midrule\relax% > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \let\bottomrule\relax% > =C2=A0 =C2=A0 =C2=A0 =C2=A0 }{} > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 \newenvironment{smallText}{\small}{} > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > =C2=A0 =C2=A0 I'm not sure about the exact font size command needed. > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > 2.=C2=A0 Where you want your side by side material use this: >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 `\begin{hideTable}`{=3Dlatex} > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 | > =C2=A0 =C2=A0 =C2=A0 =C2=A0 |-----------|----------- > =C2=A0 =C2=A0 =C2=A0 =C2=A0 | ![alt-text](img-a.pdf)  | ![alt text](= img-b.pdf)  > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 `\begin{smallText}`{=3Dlatex} > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Fake caption text > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 `\end{smallText}`{=3Dlatex} > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 `\end{hideTable}`{=3Dlatex} > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > However note that these are non-floating images since last time I looked > floating figures didn't work inside tables, and conversely captions don't= work > with non-floating images, so you might have to do some mysterious things = to > have this show up in your list of figures. I have only ever used this to = place > pieces of text and their translation side by side. >=20 > In HTML you might hide a table with CSS, i.e. >=20 > 1.=C2=A0 Where you want the side-by-side stuff: >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 :::hideTable > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 | > =C2=A0 =C2=A0 =C2=A0 =C2=A0 |-----------|----------- > =C2=A0 =C2=A0 =C2=A0 =C2=A0 | ![Caption A](img-a.pdf) | ![Caption B](img-= b.pdf) > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Fake caption text > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 ::: > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > 2.=C2=A0 Arrange for some CSS which hides the table border to be included= in your > document header[^2], minimally: >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 div.hideTable table { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 border-collapse: collapse; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 } > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > =C2=A0 =C2=A0 Perhaps also > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 div.hideTable p { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 text-size: small > =C2=A0 =C2=A0 =C2=A0 =C2=A0 } > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 > =C2=A0 =C2=A0 Note that if you have other CSS in effect which e.g. sets b= ackground colors > or borders on table rows you will need to disable that too. > =C2=A0 =C2=A0=C2=A0 > [^1]: https://pandoc.org/MANUAL.html#option--include-in-header >=20 > [^2]: https://pandoc.org/MANUAL.html#option--css > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 >=20 > Den l=C3=B6r 10 apr. 2021 19:59Emil Tywoniak sk= rev: >=20 > Hi, > I'd like to have two subfigures side-by-side. I'm using the pandoc-cr= ossref > filter method of subfigures. I tried turning them into a subsubfigure= , and > also the column layout method as described in https://bookdown.org/yi= hui/ > rmarkdown-cookbook/multi-column.html . Does anybody know a way? > Thanks for your contributions to the pandoc paradigm > Emil >=20 > -- > You received this message because you are subscribed to the Google Gr= oups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, sen= d 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/a62a4784-fcfe-44cd-87e9-aa8ce890a575n%40googlegroups.c= om. >=20 > -- > 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/msgi= d/ > pandoc-discuss/ > CADAJKhDbu34wEJ1mGMTH1NpMW-8DWs5TmfbZmJV-tj5pFxnKnw%40mail.gmail.com. --=20 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 e= mail 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/YHLGgivziK4Mkeyv%40localhost.