From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28130 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Column layout of subfigures Date: Sun, 11 Apr 2021 11:16:50 +0200 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000fcdeff05bfaedb08" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23255"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBDH5ZKBQMGQEYBNXZHQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Apr 11 11:17:03 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f60.google.com ([209.85.221.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lVWDG-0005wJ-HW for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 11 Apr 2021 11:17:02 +0200 Original-Received: by mail-wr1-f60.google.com with SMTP id z7sf4523995wrs.17 for ; Sun, 11 Apr 2021 02:17:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618132622; cv=pass; d=google.com; s=arc-20160816; b=LBGkM/jEYmfLO5eOXYKtbZrGf5nBhr1ThJvJ4zgmZ3wz8y0luhR0ZvZYWq1IlAaMeo mQJKmUy14JHjpz3sw9Ay4P2K3RScwiPZZXIeQOujSKg8IUN3Gsbe0Wq3D4do/AJWqZeX lQ3FZ692x+gIMhrERHbbY64kX/muhIgkWwLsHCQgWKWSbbK9LmbzIz2GFKezYtvkL/ga bXN+Y9GEez/2yzGnT0FVcZvfRVDXcFqfkZXh8gWxQrTcHBo4MIGG+JuoWKdz4cvp5mTH 8GWiP72Ls5jisTa7IROW/oTR3ogqFcojXkpuvt5ZtMpMN3iOwNotA+o3jO+synELNRXn Kq+A== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=VdZTTVi3yXoUIDdwo5PTt+6MNE1tcfKQo8GmBVI1CWs=; b=yFOQQ5HVTmDe528FpIB0yGCdv11ej73uqkVg4/KlGq8kexV7K8UqIr/DEJqrCHpPbi 9r9wXF6tXpCB/ZytatfVFlRWOYfJWHpt5i300hknpqSUTOkKbW4Kv7mE5EOUovaYlhwS CUK4WALdFD1jFZ5NPIXCoNO8JZBmUwAjZjenT5CvOP2F+kYBfX4xrPuH10Swo1IiZKYD WsOoNzSFAeqbSO8LZDN82iqciQnWSOP2XEAd8+15nmp89WiTfSdXBbkaXpJjbosS9bV2 sJQ0ZCgHluoMgPZWFclg6owRFJC+QEe27xDNDEC9GrNV64LBjDD1RfzUnFHzkFFw8Kfh QNBw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lA+vc6RN; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::230 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject: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=VdZTTVi3yXoUIDdwo5PTt+6MNE1tcfKQo8GmBVI1CWs=; b=a5UKMPnodE+oaiGUTIc9Yw6gmvhh40SCsza+OrJIjLCCT858Pae92xvtJUcC++0Gho PyefW6EwpUyvsUSBTRSyR2AM8ukiOwWTkLLhfLwnMsr+xCnsuKE1L331ta08d/AiHdSL wxgdnMW4vpc3u9sCjDfxHOaj8pWXDoTFOucAxt3+WMCZzbmveMQlG9uTvdZAAAuik2TR iNjLQhgTY0Q5XqZ3yG3ZXLAgC9GoEpuImvrIlk9QYQYjeC72pTHhoD5JOR+OckN0RUE0 u3Fqt+8jYj8uN1RPH7ApAs+ebJui18Ga51VqF2Tvt01FsP/n4JXHQ+/c9t7ebnUJkglZ JdIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject: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=VdZTTVi3yXoUIDdwo5PTt+6MNE1tcfKQo8GmBVI1CWs=; b=PfOl2O0tBazhfBaCupc5CW6umjAqg3Qu7laz3t+nVNxb1lZpX3p3RuQgnb9HrdoSj3 6Z3tC/MCmbeQUacb30JyE2GIX6NcNoguK7hrX7ibpn8CPCTlL7O2pGYWM3sbS8ep3iz9 xiiJZWqVdepyYgCXK4iwTOTtp9JVEue3JEml1mCDHoyqZemQ4IbY8M0UBJZM1pD/ETWp fmaG1EMbouxxyFb4xjTcuG8qzjtsuqjLmH0ZB9XFzv54CRmaL26mV1dXMSmww3DyyUiM gv/o0FAUrpd6/q1Qra9CI+1radTEtlnoakW3cqzTnzm6y4G7wkxfFYbw3VzIIDNFQ1dK EgMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject: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=VdZTTVi3yXoUIDdwo5PTt+6MNE1tcfKQo8GmBVI1CWs=; b=pdnJ9vhIA4r7/89ETXoFPnGVQS8tRiZI6jRxcUBLQTEKYepyWZ3EIVmKP/+k7YCdNa k8VOIZmuYx+MiLJf6ojp+AeKKub/pm8FIeXlHu2b2jjgoEnv/UCrmTAZw96nsPfzJe1e hU7wnjlxx3RG/4BZpKg1rTzlPsntUuBAE/rul7Mrm+pKojwGaRn5N2FW7MCgQVzj8CvW ihnmft074g+gzxJJVd/q0OB/hGaJ6GyZRSr28LbJejBsBI2OCcHg2vhK4LIvPgOspb9I CUhWSBqPsx1C0iI/PnxuKhW0X4nOtnbwUxig+tjxcIoXjvSjfgeZuEVBMzrx+mZaRRKn bxWg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530aKeGT3DlQy2/S8OmJ58TFYZ56MNYzQne+jAdTY1T3uzGyFW7J 6Oc6gcnEzcX1uoe/g5954tY= X-Google-Smtp-Source: ABdhPJyX/tr/Srei1rfUNpmruU4EcHCJB8Ws7u2oUyq7tDyT4UJ7gHmxyRXUsIbZ4m1eGrPGciIZ6A== X-Received: by 2002:a05:6000:10c7:: with SMTP id b7mr26119617wrx.143.1618132622226; Sun, 11 Apr 2021 02:17:02 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:285:: with SMTP id 5ls6367153wmk.3.gmail; Sun, 11 Apr 2021 02:17:00 -0700 (PDT) X-Received: by 2002:a7b:c2fa:: with SMTP id e26mr21989266wmk.114.1618132619983; Sun, 11 Apr 2021 02:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618132619; cv=none; d=google.com; s=arc-20160816; b=sPCCg3xVR2P1BUscoE5rwB5IFtsSvQDmqXqqEMYxbaDVtvMgJ0nSI7NaUrEzlFpGiD Cv7vaYHu+FC0B0t8RI19saE50xTsdueyFGAuI4kRn3yJlS/7gdDTXW6Yrbw7lFQbrc/f nCrNS9/MIB1qxxMMelPavuYe5e/l2gtcrqkIJY/HEZMXU5QOOvzOtUKCnV15yk1wi6+u k2kQNJslClWMkwHXS2q56yxpRaacRnf0rP/3euHRiIE4Pfb3zlgbJ3hPcViUCivK4Tqe NXeNsy+sh2MUPxKP7WmOQELxGYZGw9cEBZE/BlMDNjFdsjrM4j4Lzi8ZpHJnD9ye61G3 +loA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VvNxsPJu4wW9QCN17BFSHFRPMmOZx6cEdv85EqkrJtc=; b=CN/ofp/6jx4kajcy8SmFbqR1mBpg/wAMilrzd0XezxGGMlwzGPFRL6CfFD7edTpZbT afZwfqz6cVhGapPvxxP4U/a/t6N2hDMiMaNIImrcY6BR2JECcuPtQxeTZoqg5xM2ckuV Z4TQRODs95rSy/BdIwTbjhkDVuSh307BTrzEelbDEcy1h9f8AuLyR3nJBhdOqt1nbAPv oFW3fktFKsfw6sE4FGlzr7x9iIiMhXJ5KLU0iWc3jCq7qrJsAAr5nbNmy1hWzMmPB130 vTmF1V3vmwKChQUHZX61lncop8GIXMMTCBi0cCMRpmPTjTSaekklqONU0OCc6twmNo7k Iyww== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lA+vc6RN; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::230 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com. [2a00:1450:4864:20::230]) by gmr-mx.google.com with ESMTPS id a4si861658wrc.0.2021.04.11.02.16.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 11 Apr 2021 02:16:59 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::230 as permitted sender) client-ip=2a00:1450:4864:20::230; Original-Received: by mail-lj1-x230.google.com with SMTP id l14so8694423ljb.1 for ; Sun, 11 Apr 2021 02:16:59 -0700 (PDT) X-Received: by 2002:a2e:934f:: with SMTP id m15mr4404568ljh.256.1618132619549; Sun, 11 Apr 2021 02:16:59 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lA+vc6RN; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::230 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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:28130 Archived-At: --000000000000fcdeff05bfaedb08 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You should probably rather open an issue in pandoc-crossref (though I don't know if its a bug or just a question): https://github.com/lierdakil/pandoc-crossref/issues Otherwise here is a trick you may try: If this is LaTeX the following might help: 1. Near the top of your markdown file or in a header-include[^1] put this: \newenvironment{hideTable}{% \let\toprule\relax% \let\midrule\relax% \let\bottomrule\relax% }{} \newenvironment{smallText}{\small}{} I'm not sure about the exact font size command needed. 2. Where you want your side by side material use this: `\begin{hideTable}`{=3Dlatex} | |-----------|----------- | ![alt-text](img-a.pdf)  | ![alt text](img-b.pdf)  `\begin{smallText}`{=3Dlatex} Fake caption text `\end{smallText}`{=3Dlatex} `\end{hideTable}`{=3Dlatex} 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. In HTML you might hide a table with CSS, i.e. 1. Where you want the side-by-side stuff: :::hideTable | |-----------|----------- | ![Caption A](img-a.pdf) | ![Caption B](img-b.pdf) Fake caption text ::: 2. Arrange for some CSS which hides the table border to be included in your document header[^2], minimally: div.hideTable table { border-collapse: collapse; } Perhaps also div.hideTable p { text-size: small } Note that if you have other CSS in effect which e.g. sets background colors or borders on table rows you will need to disable that too. [^1]: https://pandoc.org/MANUAL.html#option--include-in-header [^2]: https://pandoc.org/MANUAL.html#option--css Den l=C3=B6r 10 apr. 2021 19:59Emil Tywoniak skre= v: > Hi, > I'd like to have two subfigures side-by-side. I'm using the > pandoc-crossref filter method of subfigures. I tried turning them into a > subsubfigure, and also the column layout method as described in > https://bookdown.org/yihui/rmarkdown-cookbook/multi-column.html . Does > anybody know a way? > Thanks for your contributions to the pandoc paradigm > Emil > > -- > 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/a62a4784-fcfe-44cd-87e9-= aa8ce890a575n%40googlegroups.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/CADAJKhDbu34wEJ1mGMTH1NpMW-8DWs5TmfbZmJV-tj5pFxnKnw%40mail.g= mail.com. --000000000000fcdeff05bfaedb08 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You should probably rather open an issu= e in pandoc-crossref (though I don't know if its a bug or just a questi= on):


Otherwise here is a trick you may try:

<= div dir=3D"auto">If this is LaTeX the following might help:

1.=C2=A0 Near the top of your markdow= n file or in a header-include[^1] put this:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 \newenvironment{hideTable}{= %
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \let\top= rule\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<= /div>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \newenvironment{smallTex= t}{\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:

=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.p= df)&nbsp; | ![alt text](img-b.pdf)&nbsp;
=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}<= /div>
=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 a= re non-floating images since last time I looked floating figures didn't= work inside tables, and conversely captions don't work with non-floati= ng 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.

<= div dir=3D"auto">In HTML you might hide a table with CSS, i.e.

1.=C2=A0 Where you want the side-by-= side stuff:

=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) | ![Ca= ption 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], minimal= ly:

=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 background colors or borders on table rows you w= ill need to disable that too.
=C2=A0 =C2=A0=C2=A0

=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0

Den l=C3=B6r 10 apr. 2021 19:59Emil Tywoniak <emil.tywoniak-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Hi,
I'd like to have two subfigu= res side-by-side. I'm using the pandoc-crossref filter method of subfig= ures. I tried turning them into a subsubfigure, and also the column layout = method as described in https://bookdo= wn.org/yihui/rmarkdown-cookbook/multi-column.html . Does anybody know a= way?
Thanks for your contributions to the pandoc paradigm
Emil

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a62a4784-f= cfe-44cd-87e9-aa8ce890a575n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/CADAJKhDbu34wEJ1mGMTH1NpMW-8DWs5TmfbZmJV-= tj5pFxnKnw%40mail.gmail.com.
--000000000000fcdeff05bfaedb08--