public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MACFARLANE <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Beamer not scaling image up
Date: Fri, 1 Dec 2017 13:56:08 -0800	[thread overview]
Message-ID: <20171201215608.GA5920@protagoras> (raw)
In-Reply-To: <87tvxachcx.fsf-97jfqw80gc6171pxa8y+qA@public.gmane.org>

+++ Joost Kremers [Dec 01 17 21:39 ]:
>
>On Fri, Dec 01 2017, John MACFARLANE wrote:
>>+++ John Muccigrosso [Dec 01 17 07:31 ]:
>>>  On Thursday, November 30, 2017 at 7:05:49 PM UTC-5, John   
>>>MacFarlane
>>>  wrote:
>>>
>>>    I made this change but it doesn't seem to help.  Can you
>>>    test?  I still don't get scaling if I provide just one
>>>    of width or height...
>>>
>>>  This is consistent with your Oct 31 comment, no?
>>
>>Yes.  I thought adding keepaspectratio would allow just
>>specifying one of the dimensions, but it doesn't.
>>
>>Is there any point to adding keepaspectratio, then?
>
>This is what the documentation for the graphics / graphicx packages 
>says about keepaspectratio:
>
>**keepaspectratio** Boolean valued key like ‘clip’. If set to true 
>then specifying both ‘width’ and ‘height’ (or ‘totalheight’) does not 
>distort the figure but scales such that neither of the specified 
>dimensions is _exceeded_.
>
>Note, BTW, that in my experience, providing just width or height will 
>actually scale the image properly, no need for keepaspectratio. 
>Providing *both* width and height will distort the image if their 
>ratio doesn't match the actual image ratio.

This doesn't work with pandoc, because of this line in the
template:

% Scale images if necessary, so that they will not overflow the page
% margins by default, and it is still possible to overwrite the defaults
% using explicit options in \includegraphics[width, height, ...]{}
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}

If you comment this out, specifying either height or width
by itself works; otherwise, you need to specify both or you
don't get any resizing.

I'm not sure how this works, maybe someone who is familiar
with this part of the template can enlighten us?

-- 
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/20171201215608.GA5920%40protagoras.
For more options, visit https://groups.google.com/d/optout.


  parent reply	other threads:[~2017-12-01 21:56 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-31 17:51 John Muccigrosso
     [not found] ` <e5b4440f-6061-4562-807b-cd0751139431-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-10-31 18:12   ` John MACFARLANE
2017-10-31 20:16     ` John Muccigrosso
     [not found]       ` <33651631-7cfc-4a76-ad1e-ab78f8f3a0eb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-10-31 21:12         ` John MACFARLANE
2017-10-31 21:36           ` John Muccigrosso
     [not found]             ` <237d93a6-5d81-4a7b-8f5f-4cc679da89e6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-03 20:58               ` John Muccigrosso
2017-11-28  7:28           ` Denis José Navas Vega
     [not found]             ` <e6fc3aa0-dc22-4304-8997-58d2cc556826-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-29 17:45               ` John MACFARLANE
2017-11-30 14:54                 ` John Muccigrosso
     [not found]                   ` <ec7dbaa0-aa18-436d-ae8c-52f7727ba2f9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-30 17:47                     ` John MACFARLANE
2017-12-01  0:05                     ` John MACFARLANE
2017-12-01 15:31                       ` John Muccigrosso
     [not found]                         ` <df26d84d-2264-4a47-928c-b116bcb989bd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-12-01 19:48                           ` John MACFARLANE
2017-12-01 20:39                             ` Joost Kremers
     [not found]                               ` <87tvxachcx.fsf-97jfqw80gc6171pxa8y+qA@public.gmane.org>
2017-12-01 21:56                                 ` John MACFARLANE [this message]
2017-12-01 23:22                                   ` John MACFARLANE
2017-12-01 23:26                                   ` John MACFARLANE
2017-12-01 23:45                                     ` John MACFARLANE
2017-12-01 23:48                                   ` Joost Kremers
     [not found]                                     ` <87shcuc8lw.fsf-97jfqw80gc6171pxa8y+qA@public.gmane.org>
2017-12-02  1:04                                       ` John MACFARLANE
2017-12-02  1:32                                         ` Joost Kremers
     [not found]                                           ` <87tvx9j4nd.fsf-97jfqw80gc6171pxa8y+qA@public.gmane.org>
2017-12-02  5:02                                             ` John MacFarlane
     [not found]                                               ` <20171202050215.GA10429-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2017-12-02 17:26                                                 ` John Muccigrosso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171201215608.GA5920@protagoras \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).