From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/22912 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Craig Parker Newsgroups: gmane.text.pandoc Subject: Re: Images at the Tops of Pages Date: Tue, 11 Jun 2019 16:57:24 -0400 Message-ID: References: <330f4296-ada7-c183-9102-f14ff358f69a@linuxacademy.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="28183"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDAZNM4HRACRBNVLQDUAKGQE67MYVRA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jun 11 22:57:29 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pf1-f190.google.com ([209.85.210.190]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hanpg-0007C0-VX for gtp-pandoc-discuss@m.gmane.org; Tue, 11 Jun 2019 22:57:29 +0200 Original-Received: by mail-pf1-f190.google.com with SMTP id 140sf10388926pfa.23 for ; Tue, 11 Jun 2019 13:57:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560286647; cv=pass; d=google.com; s=arc-20160816; b=GFwIyoMgWsYh47TiTdKEhVZ1r1ctMsvY6A0kPylN2R8vRXymeOoyTxUowh5UhZ0vuJ 8wsc/0J2pFvjxhnFB5t6j7wXo0fHpodbRZ+n3F+2dKFHhHQREaf3MMlwyVpWEqm5MBYu R1O2b/JG/GlWp9s5csPBZOdL8CT2vork6OyKq4h7GBJdp6VhItLRnekVjbxPiFmdj22U aWWKbrICunemtshCbA4ruPFSwMkfZGbX1C9fE0wmqOUJCsFFQiuIciJ6NjSxpPNq3zkB ydQ5N1wnI+kmgCi2v1qZ5cddibydC9poGdPLnPQYfG2ioZFWRGNQGEO9o6lsjgiZAs/Z d1CQ== 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:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:sender:dkim-signature; bh=clzBeDdWC+oB/rYWQEsMzSKYm1o8emg6Ze+O+qehf+w=; b=DMbQL31D7vy2ahovqwnaAxtf8GHj+30TGNlHxvoHmw/A+/Dt8wgCxh10UBnZYVbF1d rDGMUDoyG41t93Oo7101/GasC6WVzeiyySXgCWGHuyGdwnLTx7hutmIX5uYpKm4DDrFp a+5afxguisXzYd4mZ9ImrTy8VX33z/xMiCYwZpbYlI9AkFEkI37FXc3vVSF1XpQKXPLA Rsnjn3OeKZJk5MIwpMP5vAfPLJT357S0XCdnXAlCAW4HUat1/sD27wE1VoGWJZBkq64B beWi3D67BLd+hOWd/1qswMwGMaoAYnmnJWtPXvVhrOMM3A5JPlQblOIAXEMoXgAtxxes yxBg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@linuxacademy.com header.s=google header.b="bKuT/kKE"; spf=pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::831 as permitted sender) smtp.mailfrom=craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language :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=clzBeDdWC+oB/rYWQEsMzSKYm1o8emg6Ze+O+qehf+w=; b=cPIb3tuk9NN1EJ4Pt3Sn7fR8p8ut/qOsVd8D64jkONO8jkK/tHOn1ux51qDTLomsdk iDBtsVbU1jGZScalEdCBep5bf+y7VZJYyvmhlcXO9O5pzPIJ4MjxWUtJKROsQMPYzXSl 9lVhZNq7r+I14IwGYFy5cRid8kXXEhyjxkP67cQ17tsSfkW7RYYRLanPbpfQB+I1lQRR kS+bmTWjshxA+rwE9oEe/nMlkI2VuDVPDhfHiCb4gCd4cFW2kaNKaO3YODCJnlz5nGRS Ymk5yY2WCiSba43Ig/bi24b88CdGyRJdrG7TQl55CJ9QjUmK8rvjszJtLq/GVETFFpYT Xo7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language: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=clzBeDdWC+oB/rYWQEsMzSKYm1o8emg6Ze+O+qehf+w=; b=iY5rhDztSnVv5azHbLZXT83dueApqF4gseS8e9Igusbn31hSVOX9+IR9yw5oMVc6Tk fLBICO5bX0sk1KW4yYdowZQDhp0dnXRIBA9cV7uitJtdDWDJbWMT4PQcDtuFkkAdfCbx +7GsLAwPFP33fdyqopPSC0TZOXDr0Apr/DwF0BWdIFbsvg5Bik3nrKy7QCk8AHl4KZfF LNXbIx1aPZjB2k4gKnbux7VGZdF6Cu3/nTfCQIWaaT0SwEGQtwFYs1ZEam3hMvuBABMX vIG0dsdmzAsqHVlW4b0lm7dG2rC/OiRWsHgq Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAVG29ItNFxBZxIyCNXOzayROpHnZlgpkX4u61Uz8LD5OXzAN4sH GTGWEqxFBCoCJlxuea7wRH0= X-Google-Smtp-Source: APXvYqzrNMug+2GjO+TDmcrcVmgJX2hy8vdtFrJFMoyTKmwDLLg/vLZN+ZYrqoHZP7m4glhMvsHhig== X-Received: by 2002:a62:1692:: with SMTP id 140mr80250580pfw.166.1560286647446; Tue, 11 Jun 2019 13:57:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:2b89:: with SMTP id l9ls32820plb.9.gmail; Tue, 11 Jun 2019 13:57:26 -0700 (PDT) X-Received: by 2002:a17:902:d916:: with SMTP id c22mr53259295plz.195.1560286646684; Tue, 11 Jun 2019 13:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560286646; cv=none; d=google.com; s=arc-20160816; b=fQRyowk19bwPKRWXOcIFfWRDpXpUtREd0xPYA9TnxKWwftBg+yVm038zL7Ezv7BTUj TKNt0SHRt1alFGlHyr34U61muwmnixK0r/WjOYHZMlLAvW1Hm/W1v9tVK60OaAFafoIZ 8RpKFSkEwe09CyWx8xMg98ZStBlJIWP8tY3roTbP6SvTaoK2iH6euMOUcja7ff/cOB1j q4UsUPTFxfzFcUF9oB6QCwIEZ2NertsjnEK3XWYz9Or4mRrcbuwQ4CZ09WKZWG6pC26C pAnNPUghHbztVMayCKZvaUsBQTBvwtIyYEpk7+uXbmP6HZLU9k64Yu4TdyGG7mi33RrN F9aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :dkim-signature; bh=tUUhhl+bl5B5TS8VfxNtlc2BY9c8mIsiQwaTP73W0kg=; b=MVu00r/QRmUyryGKI4ystdx+1Hpy7ri8dNUu7OU4rqCXq6Um735KJjJIZfwmzHyl3c gR4utzfUsYCgDAIcIo/0HILibNAYw3woAAwnVJ+SlIBWa3xespZMzKbX3vLfG0y9By7a 0Sv8qkKh1+1aze1r9vDkzwbZkg4JS6yg6zxfs70SJTk9D+4SDK/REmYB7WrM1fRsU9ez unnD3FTkGicesrj8bx7ss1Fg6CwPruiFJeW4QntQ4BG1x2oWlMOml14G0i7cIoM3q3lm qbA6mHuQKsqUhDDRwccVaQinUXjiCl4zQDzYtw8L19EqMVNYGBe4EPuF3Zk4/KyUPxnw qV6w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@linuxacademy.com header.s=google header.b="bKuT/kKE"; spf=pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::831 as permitted sender) smtp.mailfrom=craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org Original-Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com. [2607:f8b0:4864:20::831]) by gmr-mx.google.com with ESMTPS id d128si561031pgc.5.2019.06.11.13.57.26 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 13:57:26 -0700 (PDT) Received-SPF: pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::831 as permitted sender) client-ip=2607:f8b0:4864:20::831; Original-Received: by mail-qt1-x831.google.com with SMTP id x47so16253839qtk.11 for ; Tue, 11 Jun 2019 13:57:26 -0700 (PDT) X-Received: by 2002:a0c:af16:: with SMTP id i22mr45639055qvc.234.1560286646140; Tue, 11 Jun 2019 13:57:26 -0700 (PDT) Original-Received: from [192.168.199.5] (d-69-161-79-249.nh.cpe.atlanticbb.net. [69.161.79.249]) by smtp.gmail.com with ESMTPSA id o38sm8387035qto.96.2019.06.11.13.57.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 13:57:24 -0700 (PDT) In-Reply-To: Content-Language: en-US X-Original-Sender: craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@linuxacademy.com header.s=google header.b="bKuT/kKE"; spf=pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::831 as permitted sender) smtp.mailfrom=craigp-UzRat0APdLvLPIzirxu/xA@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:22912 Archived-At: I think I solved it with something in the template: \makeatletter \def\ScaleWidthIfNeeded{% =C2=A0\ifdim\Gin@nat@width>\linewidth =C2=A0=C2=A0=C2=A0 \linewidth =C2=A0 \else =C2=A0=C2=A0=C2=A0 \Gin@nat@width =C2=A0 \fi } \def\ScaleHeightIfNeeded{% =C2=A0 \ifdim\Gin@nat@height>0.9\textheight =C2=A0=C2=A0=C2=A0 0.9\textheight =C2=A0 \else =C2=A0=C2=A0=C2=A0 \Gin@nat@width =C2=A0 \fi } \makeatother \setkeys{Gin}{width=3D\ScaleWidthIfNeeded,height=3D\ScaleHeightIfNeeded,kee= paspectratio}% \usepackage{float} \floatplacement{figure}{H} On 6/11/19 1:17 PM, John MacFarlane wrote: > An image in a a paragraph by itself gets treated as a > figure (implicit_figures extension). Figures in LaTeX > will "float" for better layout. > > If you don't want this, you can disable the > implicit_figures extension (-f > markdown-implicit_figures) or make sure that the > image isn't the only thing in the paragraph, e.g. > by inserting a nonbreaking space after it. > > Craig Parker writes: > >> Converting from md to pdf, with a latex template, I can get images into >> my document with the graphicx package. But, they're always=C2=A0 at the = tops >> of pages, regardless of where they fall in the markdown. So, I'll have a >> heading, then some text, then an image, but in the pdf, the image will >> come before the heading, at the top of a page. I've tried dorking with >> \pagebreak, but got nowhere. >> >> >> Any ideas? >> >> --=20 >> You received this message because you are subscribed to the Google Group= s "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n 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/msg= id/pandoc-discuss/330f4296-ada7-c183-9102-f14ff358f69a%40linuxacademy.com. >> For more options, visit https://groups.google.com/d/optout. --=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 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/a20de249-3601-1d83-7f95-6ec3b1f05549%40linuxacademy.com. For more options, visit https://groups.google.com/d/optout.