From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18534 Path: news.gmane.org!.POSTED!not-for-mail From: John Muccigrosso Newsgroups: gmane.text.pandoc Subject: Re: Beamer not scaling image up Date: Fri, 3 Nov 2017 13:58:39 -0700 (PDT) Message-ID: <677b45e1-8d0c-4e53-bad7-4f6da21c91f8@googlegroups.com> References: <20171031181211.GA41004@protagoras> <33651631-7cfc-4a76-ad1e-ab78f8f3a0eb@googlegroups.com> <20171031211224.GA52352@protagoras> <237d93a6-5d81-4a7b-8f5f-4cc679da89e6@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3659_220869036.1509742719469" X-Trace: blaine.gmane.org 1509742720 22865 195.159.176.226 (3 Nov 2017 20:58:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 3 Nov 2017 20:58:40 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCX7HCFDXYLRBAFR6PHQKGQEJIN7TJA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Nov 03 21:58:36 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi0-f58.google.com ([209.85.218.58]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAj2v-0005Rg-Tu for gtp-pandoc-discuss@m.gmane.org; Fri, 03 Nov 2017 21:58:34 +0100 Original-Received: by mail-oi0-f58.google.com with SMTP id q4sf3956290oic.12 for ; Fri, 03 Nov 2017 13:58:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=+xqNsYzT559+h50mpjlkQn1o3oy8KAd2cnxGhKm5bZ0=; b=TlQkR8NCUNzred96E5l2478NbJ6kz6+HOyUyzq9QhQH9eIOJND1Lxek+iuSBL+NqCS aHZXsRm0PKeyUFn4YNO6KJoGy3zh+c3aFzgON0F30PDCry6XJ5P3NwQAYIQFv4F8v3AL BNGAS9STCpkKkI9ebdDbaeiEiksebtuCoQKSI7L1oy4dwkCjpDvvBB0O6j5xmDkfLnaV Y2Y5bGOWkupvrY+ij55l5fH1A49KqNW5VF/1oZ4yCbLdtL5IW4RKVG5oXM3Gb+AhahS3 nMuDLnpEEAqoM2LJwI+dVtVlyrSuOsZ9BsB8mN/UKlDnEqh5O/qmX6aRChYy+ezbxuJG I4hQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=+xqNsYzT559+h50mpjlkQn1o3oy8KAd2cnxGhKm5bZ0=; b=Su/ZGp22uv0/HgrtyTMkUZSkEshIsEf0E22vrpmUuNqtFhHi3JJ9VDMI0ryoFaOYzE ajiIDn/9cc6/sHXzkGU95mXWbtravbIBI0TIuRCFB5kT2gtDvP4NU0USY2cc0JCWZZxv WGmpF/k8bxytCCm/mdH2JFCrEhZyIo7gfEZda7evukkWXqGH4pTLVY4P5HTm8Qv5Y3wY vbqBR3R8ccpXKROpcAg404MgPJjgU3LOHIWmtVzXsM/2TFVikf2etL97b+zCnf9GDZde 9RGLb3qIySB5xZ0RflbxgMimqCnz7RtYqoW84+l//w6EsTJdi5U8bLngnOG8+R8fwrNJ V1eg== 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:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=+xqNsYzT559+h50mpjlkQn1o3oy8KAd2cnxGhKm5bZ0=; b=jSLaK2BJyvpVoxSZS/eu/KOq5IVmrza6LaIxBVzuqeVC5JD1oQMEKLpTZYU3H/uzL0 0jiInejmuyi9CLieG0d/SppwQ4rdIxRmcKQcnZJhHZQqN+x5TbJUwbTDy9R8UqKw1sqT I+4STj9pyRztwuf20NzplXahJP8DtzgrIRw62rekvSUJHtwVLjl1X9H88QP6W6KTYjFY GcRuHJUWeq95V3TMmjBftQkYmZDMR18D8xfx+qrQzN19O31jDzQBAWXK09mRsSSarQbg hfWE7oO0DvGFhGcvtrcOg/fQwodTWHP6EUlt0KvAF7WA9+BEgRhAHAwBwpR3jNQbUOMf VA5A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJaThX6568XfOflQEgP3lj87WV5IDd3no4qMgrDoUYm3ahtdUFcbkgqJ Xhx80osBueLVn2bkj1BOj5A= X-Google-Smtp-Source: ABhQp+S8j3/WGyTWs3VyoOpSIBPpbEqMsBch1AjSFow2ZWljJQfmQnIiJ/k4I1RG1IAl3xgR82qdkw== X-Received: by 10.157.7.51 with SMTP id 48mr248661ote.11.1509742721259; Fri, 03 Nov 2017 13:58:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.202.108.197 with SMTP id h188ls1950846oic.0.gmail; Fri, 03 Nov 2017 13:58:40 -0700 (PDT) X-Received: by 10.157.51.119 with SMTP id u52mr249916otd.6.1509742720020; Fri, 03 Nov 2017 13:58:40 -0700 (PDT) In-Reply-To: <237d93a6-5d81-4a7b-8f5f-4cc679da89e6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jmuccigr-Re5JQEeQqe8AvxtiuMwx3w@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.org gmane.text.pandoc:18534 Archived-At: ------=_Part_3659_220869036.1509742719469 Content-Type: multipart/alternative; boundary="----=_Part_3660_526313289.1509742719470" ------=_Part_3660_526313289.1509742719470 Content-Type: text/plain; charset="UTF-8" I think I've solved this by changing the template so that it sets the height and width of images to fairly large percentages of the page *regardless* of their original size. Right now, the template only scales up, not down, via these lines: \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\ fi} \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\ Gin@nat@height\fi} I've commented these out and put in this line just below them, in place of the corresponding original: \setkeys{Gin}{width=\linewidth,height=0.9\textheight,keepaspectratio} I also use the Boadilla theme which gives smaller margins, it looks like, at least on the left and right. This seems to work OK with columns, too, though I haven't played around too much with it. In-line images require height and width attributes in order to work (though that may be true with the original template as well). -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/677b45e1-8d0c-4e53-bad7-4f6da21c91f8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_3660_526313289.1509742719470 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I think I've solved this by changing the template so t= hat it sets the height and width of images to fairly large percentages of t= he page regardless of their original size. Right now, the template o= nly scales up, not down, via these lines:

\d= ef\= maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\= Gin@nat@width\fi}
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheig= ht\= else\Gin@nat@height\fi}

I= 9;ve commented these out and put in this line just below them, in place of = the corresponding original:

\setkeys{<= /span>Gin<= span style=3D"color: #660;" class=3D"styled-by-prettify">}{width=3D\linewidth,height=3D0.9\textheight,keepaspe= ctratio}

I also use the=C2=A0Boadilla t= heme which gives smaller margins, it looks like, at least on the left and r= ight.

This seems to work OK with columns, too, tho= ugh I haven't played around too much with it. In-line images require he= ight and width attributes in order to work (though that may be true with th= e original template as well).

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/677b45e1-8d0c-4e53-bad7-4f6da21c91f8%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_3660_526313289.1509742719470-- ------=_Part_3659_220869036.1509742719469--