From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14788 Path: news.gmane.org!not-for-mail From: "kurt.pfeifle via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: `\includepdf{...}` raw LaTeX massively scaled down in PDF output by adding `![](image)` to Markdown Date: Sun, 17 Apr 2016 06:25:43 -0700 (PDT) Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_9948_604539563.1460899543315" X-Trace: ger.gmane.org 1460899548 22011 80.91.229.3 (17 Apr 2016 13:25:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Apr 2016 13:25:48 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDO5LOXQ2AARBWE5Z24AKGQEY26RUFA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Apr 17 15:25:47 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pf0-f190.google.com ([209.85.192.190]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1armhu-0002Yu-0b for gtp-pandoc-discuss@m.gmane.org; Sun, 17 Apr 2016 15:25:46 +0200 Original-Received: by mail-pf0-f190.google.com with SMTP id g206sf28369384pfb.1 for ; Sun, 17 Apr 2016 06:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=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=Bbzc5iFq9/w/pllpKUAG4Z0ZGRte71FhgE7excHRugI=; b=fRzIwjxkYGMPk91scsJoAlrpwuvK5Tlab6hoLTejnwsS1l7KhSpq5xjyk1JIMoKDoH wQXjS76Bqtlr3vQnW8xjb5B2SkoTnpOxV7Le1qR4cgIx6YSs2c/94G2+IYPa71utF9/c mtZrgVozZujRNqV73vgOPM+dTR34g6CJbdZroG41NMVCdnaRfKhnUi8qPx9ciFluLkCe vVmJofE38ioOW4ImkbJqU3KBkUgtmEpWiVC46MO1Vez6Qc7C/xbOmvUzJDFmbiAXroMN MNQJAoVN6umm4GLWJlhezgDucmSgb9cLg8xqcD4sJ/lIbyADj4EyBNvMAl5yySXioZy/ XcvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=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=Bbzc5iFq9/w/pllpKUAG4Z0ZGRte71FhgE7excHRugI=; b=XqE4PxSdK2lcUws7pL7y6nIQMjLTdlmisIgWL1kQiUcFf+MftYeqUNvo/Ka/A4Uc0u 5S6biOdL4OfTdRbvWs9qviCzuDxkpb+wISHIlNi3TjCxshgPiqD3yIGAqQfYD5eruKCc tg3sJM7FzeyB5LSaHDp9aD8G12rrXZ4IrpivEJKDI3GMC0nEddImqGAnK/AFXO5GgSL+ 22owwfd5e0WSH8mjr/xGqd3yQ+27Z0I8fgLsdne/Bh8y2EXpllk+wmH0V9Ie/9wcDp3+ LltGj5RP9aBAyZnhda2o3VvMNJp/rST1Rju20yhGKSu9VE93Md4cn2HO6dPxKwG4kDFE KoKw== X-Gm-Message-State: AOPr4FX2ZEc+U6zxI6JCc2xiSFlOCYcIYA43FnJHq2Qc6k4yUsGM/js3+mL5DvfpTXSSSA== X-Received: by 10.182.19.129 with SMTP id f1mr300420obe.20.1460899544944; Sun, 17 Apr 2016 06:25:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.182.142.35 with SMTP id rt3ls367695obb.52.gmail; Sun, 17 Apr 2016 06:25:43 -0700 (PDT) X-Received: by 10.157.11.183 with SMTP id 52mr301304oth.17.1460899543855; Sun, 17 Apr 2016 06:25:43 -0700 (PDT) In-Reply-To: X-Original-Sender: kurt.pfeifle-gM/Ye1E23mwN+BqQ9rBEUg@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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Original-From: kurt.pfeifle-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org Xref: news.gmane.org gmane.text.pandoc:14788 Archived-At: ------=_Part_9948_604539563.1460899543315 Content-Type: multipart/alternative; boundary="----=_Part_9949_476251094.1460899543323" ------=_Part_9949_476251094.1460899543323 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sunday, April 17, 2016 at 4:19:37 AM UTC+2, kurt.p=E2=80=A6@googlemail.c= om wrote: I=E2=80=99ve just submitted a bug report (#2856) > > *=E2=80=9CIf Markdown input contains image, then \includepdf{some.pdf} ou= tput=20 > scales down far too much.=E2=80=9D* > https://github.com/jgm/pandoc/issues/2856 > > I have an MWE (minimally working -- i.e. showing the buggy behavior --=20 > example) attached to the report there. > > The problem is:=20 > > 1. If I use *only* \includepdf{some.pdf} LaTeX snippets within my=20 > Markdown, then PDF output is fine.=20 > 2. As soon as I add one ![](some-image.format) Markdown statement to= =20 > my file, the previously good some.pdf content gets massively scaled=20 > down.=20 > > My current workaround is to use ![](some.pdf) to get my external PDF=20 > content in, but for me this is a crutch only, for various reasons (one=20 > reason is that I cannot add Table-of-Contents entries for the=20 > PDFs-included-as-images as I can do when using \includepdf{...}). > > Does anyone know a better workaround? > > Is this bug report better addressed to LaTeX developers? > I added a some more details in a comment there. Most important item: There is a line 37 in the LaTeX generated by Pandoc,= =20 which reads \setkeys{Gin}{width=3D\maxwidth,height=3D\maxheight,keepaspectratio} If I comment this line out, the LaTeX still compiles, and the included PDF= =20 figure is no longer mini-mini-mini. (It is scaled to the full page width=20 instead, not honoring any page margin. The pixel image placement and=20 scaling also ignores margin now.) To me this looks like some recent change to Pandoc's LaTeX output (via a=20 changed template) may be the cause. So this can possibly be fixed by=20 replacing this line with some better code. =E2=80=8B > =E2=80=8B --=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/f349481a-d668-40d0-9c3a-dd53cdc4433e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_9949_476251094.1460899543323 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Sunday, April 17, 2016 at 4:19:3= 7 AM UTC+2, kurt.p=E2=80=A6-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org wrote:

I=E2=80=99ve just submitted= a bug report (#2856)

=E2=80=9CIf Markdown input cont= ains image, then \includepdf{some.pdf} output scale= s down far too much.=E2=80=9D
https://github.com/= jgm/pandoc/issues/2856

I have an MWE (minimally working --= i.e. showing the buggy behavior -- example) attached to the report there.<= /p>

The problem is:

  1. If I use only \inc= ludepdf{some.pdf} LaTeX snippets within my Markdown, then PDF output= is fine.
  2. As soon as I add one ![](so= me-image.format) Markdown statement to my file, the previously good = some.pdf content gets massively scaled down.

My current workaround is to use ![](some.pdf) to get my external PDF content in, but f= or me this is a crutch only, for various reasons (one reason is that I cann= ot add Table-of-Contents entries for the PDFs-included-as-images as I can d= o when using \includepdf{...}).

Does anyone know a better workaroun= d?

Is this bug report better addressed= to LaTeX developers?

I added a some more details in a= comment there.

Most important item: There is a = line 37 in the LaTeX generated by Pandoc, which reads

\se=
tkeys{Gin}{width=3D\maxwidth,height=3D\maxheight,keepaspectratio}

If I comment this l= ine out, the LaTeX still compiles, and the included PDF figure is no longer= mini-mini-mini. (It is scaled to the full page width instead, not honoring= any page margin. The pixel image placement and scaling also ignores margin= now.)

To me this looks like = some recent change to Pandoc's LaTeX output (via a changed template) ma= y be the cause. So this can possibly be fixed by replacing this line with s= ome better code.


=E2= =80=8B

= =E2=80=8B

--
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/f349481a-d668-40d0-9c3a-dd53cdc4433e%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_9949_476251094.1460899543323-- ------=_Part_9948_604539563.1460899543315--