From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31624 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: How to center an oversized figure (md to tex to pdf)? Date: Fri, 21 Oct 2022 09:40:50 -0700 Message-ID: <247E0FC5-5E0D-4EAD-8D9D-07DDD5732E02@gmail.com> References: <6268051b-bc26-4c5a-a1ba-32790dbc8271n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) 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="34143"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBFMXZONAMGQETWZNBMA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 21 18:40:57 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f187.google.com ([209.85.210.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1olv4r-0008gV-IP for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 21 Oct 2022 18:40:57 +0200 Original-Received: by mail-pf1-f187.google.com with SMTP id a11-20020a056a001d0b00b005635c581a24sf1617629pfx.17 for ; Fri, 21 Oct 2022 09:40:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666370456; cv=pass; d=google.com; s=arc-20160816; b=Fd/Y40s5L5JLXNgtCgIUYRHeVYVjdSkwhOsB/SyHsBfyXH7srHmMA9Bc2UyGY6Tb2v iPnegUjoWR57m+oxE7trOFc+hz/G51OGYV5ZmqVaQKTNGwZINJCvVRJBFO9YZgGFvPCr WbFFa5BfubW7hVQFL4nZ82Vv6T6yiUJOOC6f9kNfbPiGXlEH1G4/cEXF8cnTv6lvF1hC KC4W5Huf+g3yHgRJWj77VBqD3kIz3DU3cK05pEajOjbA9GtThcHrWN/le8GN96vOHobX Et92VKBf6map0bTRkVlQiv5yqeA4jTzCPnMybndr6JsLSZ/nhokFAi1bhXMdfgLOV9uF buWQ== 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:message-id:in-reply-to:to :references:date:subject:mime-version:content-transfer-encoding:from :sender:dkim-signature:dkim-signature; bh=Fh8UdrEJyXg6841n1pqryYDFKt2x3uIgKI/Y5pKIsd4=; b=Fv5MmwEeYzA2LKUMrcSgGPAKAPh2FEN4CvoraenlEfMc0A63OBh3BkjPpM4Ny7tUqw DnfrB7qbXzIfPYX3kASGJYQ39v6I05zdl1E5vwmGaz35KiJGsMUqPfnTPgNAlK6LMv+7 QlO+hggCFGCWEjyh7j6d/KKaEh3Q2jWPWXuk6IJgWVdjT3UprRLarFByHKAbOTDp6Kjr v3Wpo5dJwx1D/NDc3f8SOD2VSNDvZ/Ssvd5CsDakBWLdAJs5SZYt9l1dXiMtBpwRXO5r ZXp0nqaBVf/wfaIcj5Pd8nqzzkCb7LxDmor8JXD84WVXBhSNdXp+cEMUhQbYTC/NdiBa 9TFQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=q33j882M; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1031 as permitted sender) smtp.mailfrom=fiddlosopher-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=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=Fh8UdrEJyXg6841n1pqryYDFKt2x3uIgKI/Y5pKIsd4=; b=CG+ILsF2JMvawjGrZryaUZg3X7+d684Z2UFsBEytpn/RAmmhjc8PujDojWk5NW5Idk vXKzsFUNpaI31N/6f/P2p9t3Zi5IrhpMEY//DY+0iRWIGFudRjAE2kv0gKJXGXdgKm78 oEir/k5TauCwIakma++BJ5QnJInFeSAWnaEFWx3CxoXJEQlydlE+cwtJ+1xFaL1rANGI +cpicUD5WE8TctUYTtgTyxxUAzkOkEKo1E0E2/a/3VUeViOS6E4GHP0ZOyrWwV+YVkxc cxw0N8ehQH255NjDV9w2+CHh+AvwlbjCAXrvQyTmYXxh7kfrj10+Lpp0fE25paSWg DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=Fh8UdrEJyXg6841n1pqryYDFKt2x3uIgKI/Y5pKIsd4=; b=muxkyc6LyLoiEg5HEweP6BKcba+UclDEbPJ6NgmC/1SdLF3jXAHFhd8WMG0uXwD67N CIIuYK3pBk+7VbOErmMNZVMbNrPY/I4Ja/GQ+QkYcyHkmPkueMllK5CbnMMRRvsokp38 /j2c/dSH4JhKi3/UPQ+Upua/DLEd+KwLn9I76VcGcH0QKYASlcvYqWbTkbrS4BR/Pxsx VwITDMiwue9ZnqE61f9kI2FZVg7ynUb4DYB9nE5LvYky979PzPRCA7g2bto8tryIiHcP MBak7EO1ocsUdxqX1IwjuX9acmX3ZfJwv4u2CSV32OfHjaFNoV+EXAv2fsx47/wiDeKw l X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=Fh8UdrEJyXg6841n1pqryYDFKt2x3uIgKI/Y5pKIsd4=; b=JQk4bbZgnGwUjD/IOrAQe5UWl48+WQIvjFnBPZndNJ2zMHGOg3UsWXzfxq6a5aIjku 91Cb0D/adnlPyhpTVXXz96Fp+wbTJFBEjt1qatlRZDB+h9iG7INN0V937HCnksvX6nKG RyTku7VSm1Vgw4RodBEP2IG2+efZ0UzLBCX0LBj59gtTG09cW8zH+ZgyaxTs3FMVd6qH 9QHKhTQsijgPdGVicsrvOJ623naDIe/Qg3G4cCe5+vV3HXCHjds+wb4FraDq6hHJh3Qq d51LNydUObkDe3M+jkr4 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf3pbHjt19md5CyqFo1lAV5sFPqMaFSFGSq8uwFy/CStfthZ5LIN gznnTd3m7ZhiLbukoUwc6qg= X-Google-Smtp-Source: AMsMyM7FvjOp+iC3siddmij0sVUQLXmG2GJuRwJuLAvnpBF8cgOrapBkJo528TCAGvTl5+SFxDh5xg== X-Received: by 2002:a63:4a53:0:b0:439:3c80:e053 with SMTP id j19-20020a634a53000000b004393c80e053mr16962461pgl.3.1666370456157; Fri, 21 Oct 2022 09:40:56 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aa7:9885:0:b0:569:84ce:c01d with SMTP id r5-20020aa79885000000b0056984cec01dls1441793pfl.7.-pod-prod-gmail; Fri, 21 Oct 2022 09:40:52 -0700 (PDT) X-Received: by 2002:a05:6a00:1a44:b0:528:6af7:ff4a with SMTP id h4-20020a056a001a4400b005286af7ff4amr20220096pfv.78.1666370452833; Fri, 21 Oct 2022 09:40:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666370452; cv=none; d=google.com; s=arc-20160816; b=Uhimy/9rP8I3UskNST0msqDFx1FFIH38fuVfXk78aU310g0V5kdVEtbbN+WzxwEbog SQd9D4ekjRvTFefrvsc3wXaH41JRohfTnFWvo3w0AMDrNJLTAPjfo0CkrksAiwPeITpr F79l189Na4yYn3GxMvXsgGBUCD+H68VE49XSvZM2My4AUVHL1HeJqrHhc5B6qcV7BB9V UbcAe1KyO1o5Nv2f1yeXkaMRYe+BVjEctMOl5Txb2kWErM+oTL83+WfiuHBANocvPfZN YOKY5dqpAR1MlUr61Bbxzb3zwbj9k6s3TdG2+C555IJ6GHn7JbJ2g0xP9B68fNjEWlbT tkqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=iY34DT7Un2g1pngKCEbh9IhwlFruF03gepZUyCxlX/k=; b=CxoT6kvSrzqwyQJ2I16lkNms5+jqw7PgeyqDUidLrinH3jdirySw1HSaAZGNjA62zL IEG8nuFG7HxMl8AK9JPUuz/abds9Z/C6x7XUGSbL5vqmsLP5I1/JS3XlhYebCmoHCix5 agYguwW+7AkMzspsULfLjpua50QRtuefMQI+oimOj/xSu427mkV24/DnxTLmzeulix+S zcXO1F2Wc4J4Z5ULIPzB+sJzwo5nlMXEVhq+2vhDdeeftRsJq7BfRzJgSI0d2/CV/A4T Qb5ptUeBAP5B9J1i/qXXbXhlVCgbMpWlk+9hrZjTOg/rf5iZmt/uScoujNmG0af3NezC tdmg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=q33j882M; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1031 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com. [2607:f8b0:4864:20::1031]) by gmr-mx.google.com with ESMTPS id k132-20020a62848a000000b0056611e6228dsi965657pfd.1.2022.10.21.09.40.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Oct 2022 09:40:52 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1031 as permitted sender) client-ip=2607:f8b0:4864:20::1031; Original-Received: by mail-pj1-x1031.google.com with SMTP id fw14so2895118pjb.3 for ; Fri, 21 Oct 2022 09:40:52 -0700 (PDT) X-Received: by 2002:a17:902:b415:b0:178:2835:29e7 with SMTP id x21-20020a170902b41500b00178283529e7mr20081816plr.86.1666370452233; Fri, 21 Oct 2022 09:40:52 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:644:400:7c40:fd6d:e541:74ba:6aa8]) by smtp.gmail.com with ESMTPSA id ij13-20020a170902ab4d00b00172f4835f53sm4498063plb.192.2022.10.21.09.40.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Oct 2022 09:40:51 -0700 (PDT) In-Reply-To: <6268051b-bc26-4c5a-a1ba-32790dbc8271n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=q33j882M; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1031 as permitted sender) smtp.mailfrom=fiddlosopher-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:31624 Archived-At: I'm confused. The code pandoc produces already contains \centering, which = should center the graphic. Did it not do this? > On Oct 18, 2022, at 3:17 AM, Niko wrote: >=20 > Hi all,=20 >=20 > I am trying to center figures on pdf. The main.md has: >=20 > ![some text](some-figure.png){width=3D166% #fig:figlabel} >=20 > The created .tex file has >=20 > \begin{figure} > \hypertarget{fig:figlabel}{% > \centering > \includegraphics[width=3D1.66\textwidth,height=3D\textheight]{some-figure= .png} > \caption{some text}\label{fig:figlabel} > } > \end{figure} >=20 > I read from here that a possible solution is to use >=20 > \usepackage[export]{adjustbox}[2011/08/13] >=20 > in latex preamble and add "center" argument to includegraphics, like so: >=20 > \includegraphics[width=3D1.66\textwidth,height=3D\textheight, center]{so= me-figure.png} >=20 > I tested it and it works. Now, how would one add arguments to includegrap= hics from within markdown? Another solution I came up with would include r= edefining includegraphics in latex preamble to always have the "center" add= ed, but I feel that is a bit hacky. Is there a better way? >=20 > Regards, >=20 > Niko >=20 > --=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/6268051b-bc26-4c5a-a1ba-32790dbc8271n%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/247E0FC5-5E0D-4EAD-8D9D-07DDD5732E02%40gmail.com.