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 15:45:50 -0800	[thread overview]
Message-ID: <20171201234550.GA9787@protagoras> (raw)
In-Reply-To: <20171201232614.GB7914@protagoras>

+++ John MACFARLANE [Dec 01 17 15:26 ]:
>Oh, there's a nice solution here:
>https://tex.stackexchange.com/questions/47245/set-a-maximum-width-and-height-for-an-image
>
>\usepackage[export]{adjustbox} % loads also graphicx
>\includegraphics[max height=<dimension>,max width=<dimension]{file}
>
>but it incures a dependency on adjustbox.  Unfortunately
>adjustbox is in texlive-latex-extra, which we've tried to
>avoid.  But maybe we could do something conditional, so
>you get the auto-scaling behavior if you have adjustbox?

Here is what would go in the template:

\usepackage[Export]{adjustbox} % also loads graphicx
\usepackage{grffile}
% 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, ...]{}
\adjustboxset{max width=\linewidth,max height=\textheight,keepaspectratio}

I think we should probably make this change, I'm only a bit
worried that the dependency on adjustbox will be a problem
for some.

Thoughts?


  reply	other threads:[~2017-12-01 23:45 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
2017-12-01 23:22                                   ` John MACFARLANE
2017-12-01 23:26                                   ` John MACFARLANE
2017-12-01 23:45                                     ` John MACFARLANE [this message]
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=20171201234550.GA9787@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).