From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23656 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: pandoc html to pdf Date: Tue, 22 Oct 2019 20:26:27 +0200 Message-ID: References: <75ad3ed6-e3a7-480e-813e-26e9795041bb@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f6cd32059583f09b" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="216198"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBYETXXWQKGQEAN5C37I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 22 20:26:42 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f56.google.com ([209.85.210.56]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iMyri-000u4F-4u for gtp-pandoc-discuss@m.gmane.org; Tue, 22 Oct 2019 20:26:42 +0200 Original-Received: by mail-ot1-f56.google.com with SMTP id b2sf9013386otl.23 for ; Tue, 22 Oct 2019 11:26:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571768800; cv=pass; d=google.com; s=arc-20160816; b=UJ74X7Vexoel13D6JQG7zawjwYoEy6tDpPSxawSG0h0siZ1sfRp+mz4BxMRv1crR1D woJRiyH7mhxTM16V3Wgur0oB5hK7lR1f6M3M96hz2EXSYD580QSzBJ1SWK0OUHfSsbVu N1gquzl2u2JsC4Ny5TQZyoSNTpzvGwlDZY2mxqiLs8skhAlgXArtPHRSr/OODeDXsNKa 6ew8Bjl6IRZg+IPYD/enE9Tfue1fJK/N7I0kCZ+GMSJgzDxdq9OTUEbNQHLOUsURvfxW W9I9WfDNEotq14kBxuWxWFgGKDBideXADyCeCnaF0ML4SH6lBbXG8pdDQTmWI66lnu+Y D75A== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=7UWB5hARVu49oM31wljQPMF14SWNSRIKDGsAw6PVi7U=; b=RR6kgV6in7Z/BNQ7BJHZq7B6nMindCrhQoOaxyHYfbkgVvI4mYb4zb4jiiZ+pvnKLJ LeYu8C9U2YTe+eGJc/HhCUmq3KB6d45IVBGb3GFrg6QOewBz5NyvODbEXRnGhOJBGdB5 MVSxqXnmBkkU8LHx36oL2dF5sN1hvgq9Zj5Q/u71btwzv4q52i8ev1ER00XqiJa3z0Te Xv+h9MDeGYJpPOM6IUAkQBoTj9x6X2oA/3DBAmYis9eRj7yM8FVRtpYN/oKBCmwxkWSD abSj6+9DiMifzveSElCBvNDLE1uvURNZVkvi62BfMOajUMmMdp+XbyZQtQFSf47mOPvz mM2Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SSH2bo85; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::22d as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to: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=7UWB5hARVu49oM31wljQPMF14SWNSRIKDGsAw6PVi7U=; b=QIwJC7OmMgIyZwc3mbegZMOzyGK78jWy8IxrrQWZzqfYWi3WWcMrkFGVrwIU99Zk47 RTgFkQ0oJOFq8MZ6pSLAz5AmSFCR5ff+pCkzAMf2ocIv9NJlbAv2qvjD9Jhoz92Vtvvs H6K3WoTrIZaVwQavoCcY/8oCW+YdQ3Z4emwceNSkUFf11qbiOs9NWOC599PIIPbdCcFl QwYKYXxXL3VlH48vrn/J6S5yP6crqmOn+tQd5IHuzGr8yZOmtu55GhfbZektO1R6WBod Ssu1jgjEfJJ8fqFvXA0LE2ahRa5bxON4v+sTb8a05cvLDuUebG8Kdt3mEPJVcYOBCkcM 3eeg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :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=7UWB5hARVu49oM31wljQPMF14SWNSRIKDGsAw6PVi7U=; b=tcSDSYMBhGocJ1xkQy5FMYa6OGNrL1bZMOF94/dUf60CU/IKwHCHQSj3KvghOKWaM5 OigGBXClTVNBJh2US4W2I0aRMmcgQ/GoVgmkowWBRDLp8tgmcVexkegjM8o6zhcOZ6He qSthDO8o/RlGN/68toDiTl83zQk0oIA7Dec2NVMhPOKlxs+QRJqHbjYdHaPT/thjS0E4 aKrFM/2naFjUlBqaOH+80v/zn8WTuKejPrYEO3TG7mTD8V3A2e8L6PuUF+BoaYjhj5Ca qAYL/CSra3vajRmbRkfFsvQQMMIdyM18j7FIKeqlq2aemMnbZhv2cxmri3TwLqtN7ukH 3Irg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to: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=7UWB5hARVu49oM31wljQPMF14SWNSRIKDGsAw6PVi7U=; b=HQUbe7ZIXHQi9jy37FWWS4pRJk1n+yDANesC9KdG/luC6bInjgOT0Cdi0JFbHHj77F BxkaNOwCi/tXU+Pvki/M1+LmMuySoCYj9No8BjyBHDIoDpbeqGDdGIwRI0z+jVyyQLOb fq1DFOq4NQa4xRC+ONl+R/qnpT2bx5LR+B3Vw8gfRdWSOQ7qVP1qetlBQxZycyosGyWP 7BEqPzIXU2FuhNa3dsniY6k/KjoeKIpQuzPq8/NuvhT89N5gVqzsg6+sGrbv2zWLn7Pb qqHq8JrH9mhWapAcDvs8oWBQVyqUCg1i/8hpP3OmJPFhDozv+rXNPZGoJVmDfvPnRls0 2GpA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXe2izJCGSMjRdpe7zXRku9jc6LJQxNaZKzzEiAUohEJlW0JFi+ 6ak4tkvJ+ePTVNIiZdCK0LA= X-Google-Smtp-Source: APXvYqwdqnV3hNnw2yPLlukzXkTQPq9LIndx2Xk1dLDY2h3Dn8eVKDh13czzG1odem7PnvmgXE6TTA== X-Received: by 2002:a9d:6a54:: with SMTP id h20mr3794827otn.272.1571768800829; Tue, 22 Oct 2019 11:26:40 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:1291:: with SMTP id g17ls3035520otg.11.gmail; Tue, 22 Oct 2019 11:26:39 -0700 (PDT) X-Received: by 2002:a9d:3677:: with SMTP id w110mr4022501otb.258.1571768799927; Tue, 22 Oct 2019 11:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571768799; cv=none; d=google.com; s=arc-20160816; b=i1wW0Rp2CFX3Y7y+YcKOjN1Kte2nowYc9eNqFfBxKJdOf9tkchRqLDZ9gch7Ij/139 iXicbWHH+Zswk2jmJ4fBnTrisOQn9nunmNA6rhNcd+LU/hLo21CAnDgzDWyEr/1NJuX6 3FBL2JmAUglemaH7FwSMLk2QxlDa2lJuBNkkNIidwY+Zqt20udIJQv6uaVRuu+lQRN0M OJFf99kVgANb+pmJvECYx48/FTIxnT9NLBAWuGZETbV7kAJZwnbsSlB00wQcrPswaP7i q1I/3VMdGRZ+SLl/nPc5B7x5tVnwWuCdEYsM+p23T+zRafj7DU9K43y83jOLyk1vnaIJ bzaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=3Kq1iCUwnmqDwZUDl/txcfxACf0yfsYRqpFWG4d3T5g=; b=ISOmEV47PRzZ89GXrGj7pXRugAhgts0sxFUc3L6ftCsQNZzaO0/vJrgDIv2VD2l9X6 Pw20NRRCMYegvStwZN4bFugsp2B0oxn1y/ZnqhucKapisj3a03bzhyto1BqK0LzhjocZ 1NeDZbyE0H5mjQyP4NXHkPh/CKFjplzadUVZxD2kfDa+/aGbILvDMzjdihYZtRT+Jp4I +NkQSirGRNtfX6Crq+j4iGFbeTLKUBfqDFUbpcpG2FhkayT6egZlnvPdWtkWi7GDEPGu p1nr6EaNMO7+h3qePOpT6O/zbNLO2x9IqHvjfBs/5CIRRG1/a5gAFAANxpCESlyGsDqA qXSg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SSH2bo85; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::22d as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com. [2607:f8b0:4864:20::22d]) by gmr-mx.google.com with ESMTPS id b11si1266256oii.5.2019.10.22.11.26.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Oct 2019 11:26:39 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::22d as permitted sender) client-ip=2607:f8b0:4864:20::22d; Original-Received: by mail-oi1-x22d.google.com with SMTP id a15so15089591oic.0 for ; Tue, 22 Oct 2019 11:26:39 -0700 (PDT) X-Received: by 2002:aca:1719:: with SMTP id j25mr3966396oii.132.1571768799512; Tue, 22 Oct 2019 11:26:39 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SSH2bo85; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::22d as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:23656 Archived-At: --000000000000f6cd32059583f09b Content-Type: text/plain; charset="UTF-8" Make a file called "landscape.yaml" which contains this: --- geometry: - landscape --- then add this to your command line: --metadata-file=landscape.yaml Make sure you have the latest version of pandoc, since the --metadata-file option was added very recently. You probably need to adjust the margins too. You can add more geometry options to the metadata file: --- geometry: - landscape - top=15mm - left=15mm - right=15mm - bottom=20mm --- (Those are quite possibly not good values; it's just an example!) If you want all the margins to be the same width you can use - margin=20mm You can use in, cm or pt instead of mm if you prefer those units. https://tex.stackexchange.com/a/147507/93534 http://texdoc.net/pkg/geometry https://github.com/jgm/pandoc/releases/tag/latest Den tis 22 okt. 2019 19:05Ivana Zgaljic skrev: > Just a clarification. I meant to say "My output pdf still prints in > portrait." > > On Tuesday, October 22, 2019 at 12:12:41 PM UTC-4, Ivana Zgaljic wrote: >> >> Hi, I am converting a file from html to pdf using the following command: >> >> pandoc iz_test.html -s -o iz_final.pdf >> >> >> I noticed the default setting is that the pdf prints to portrait but I'd >> like my pdf output to print as landscape. >> >> Reviewed the options setting and I've saved a new default.tex file >> in C:\Users\myusername\AppData\Roaming\pandoc >> >> Any suggestions on how I should modify my default.tex so my output prints >> in landscape? My output pdf still prints in pdf. >> >> Thank you. >> > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/db92c6d3-266b-4ef7-a279-d94ac9bd17ff%40googlegroups.com > > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhAVr8HJ6mLMg3wrjbMvOjHcWJKYxw%3DjVwH5gq7H7m9_%2Bg%40mail.gmail.com. --000000000000f6cd32059583f09b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Make a file called "landscape.yaml= " which contains this:

=C2=A0 =C2=A0 ---
=C2=A0 =C2=A0 geometry:
<= div dir=3D"auto">=C2=A0 =C2=A0 =C2=A0 - landscape
= =C2=A0 =C2=A0 ---
=C2=A0 =C2=A0=C2=A0
then add this to your command line:

=C2=A0 =C2=A0 --metadata-file=3Dlandscape.yaml
<= div dir=3D"auto">=C2=A0 =C2=A0=C2=A0
Make sure you h= ave the latest version of pandoc, since the --metadata-file option was adde= d very recently.

You pro= bably need to adjust the margins too.=C2=A0 You can add more geometry optio= ns to the metadata file:

=C2=A0 =C2=A0 ---
=C2=A0 =C2=A0 geometry:
=C2=A0 =C2=A0 =C2=A0 - landscape
=C2= =A0 =C2=A0 =C2=A0 - top=3D15mm
=C2=A0 =C2=A0 =C2=A0 = - left=3D15mm
=C2=A0 =C2=A0 =C2=A0 - right=3D15mm
=C2=A0 =C2=A0 =C2=A0 - bottom=3D20mm
=C2=A0 =C2=A0 ---
=C2=A0 =C2=A0=C2=A0
(Those are quite possibly not good values; it's just an = example!)

If you want al= l the margins to be the same width you can use

<= /div>
=C2=A0 =C2=A0 - margin=3D20mm
=C2=A0 =C2=A0=C2=A0
You can use in, cm or pt instea= d of mm if you prefer those units.=C2=A0

<= div dir=3D"auto">h= ttps://tex.stackexchange.com/a/147507/93534

=



Den tis 22 okt. 2019 19:05Ivana Zgaljic <ivana.zgaljic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Just a clarification.=C2=A0 I meant to s= ay "My output pdf still prints in portrait."

On Tuesday, O= ctober 22, 2019 at 12:12:41 PM UTC-4, Ivana Zgaljic wrote:
Hi, I am converting a file from htm= l to pdf using the following command:

pandoc iz_test.htm= l -s -o iz_final.pdf


I noticed the = default setting is that the pdf prints to portrait but I'd like my pdf = output to print as landscape.

Reviewed the options= setting and I've saved a new default.tex file in=C2=A0C:\Users\myusern= ame\AppData\Roaming\pandoc

Any suggestions on how = I should modify my default.tex so my output prints in landscape?=C2=A0 My o= utput pdf still prints in pdf.

Thank you.

--
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 pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/db92c6d3-266b= -4ef7-a279-d94ac9bd17ff%40googlegroups.com.

--
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 view this discussion on the web visit https://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhAVr8HJ6mLMg3wrjbMvOjHcWJKYxw%3= DjVwH5gq7H7m9_%2Bg%40mail.gmail.com.
--000000000000f6cd32059583f09b--