public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: pandoc html to pdf
Date: Tue, 22 Oct 2019 20:26:27 +0200	[thread overview]
Message-ID: <CADAJKhAVr8HJ6mLMg3wrjbMvOjHcWJKYxw=jVwH5gq7H7m9_+g@mail.gmail.com> (raw)
In-Reply-To: <db92c6d3-266b-4ef7-a279-d94ac9bd17ff-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 2647 bytes --]

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 <ivana.zgaljic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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
> <https://groups.google.com/d/msgid/pandoc-discuss/db92c6d3-266b-4ef7-a279-d94ac9bd17ff%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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.

[-- Attachment #2: Type: text/html, Size: 4788 bytes --]

  parent reply	other threads:[~2019-10-22 18:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-22 16:12 Ivana Zgaljic
     [not found] ` <75ad3ed6-e3a7-480e-813e-26e9795041bb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-10-22 17:04   ` Ivana Zgaljic
     [not found]     ` <db92c6d3-266b-4ef7-a279-d94ac9bd17ff-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-10-22 18:26       ` BPJ [this message]
     [not found]         ` <CADAJKhAVr8HJ6mLMg3wrjbMvOjHcWJKYxw=jVwH5gq7H7m9_+g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-22 22:04           ` John MacFarlane
     [not found]             ` <yh480k4l00igi9.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-10-23  9:25               ` BPJ
     [not found]                 ` <CADAJKhDvUkp2GExt0Cq7G4eJOyN0aO-Fthb4Vkugx3q_6Jr3pw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-23 14:16                   ` Ivana Zgaljic
     [not found]                     ` <43d5cea2-d1f4-49cf-aff9-723ff6dddba1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-10-28  9:04                       ` BPJ

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='CADAJKhAVr8HJ6mLMg3wrjbMvOjHcWJKYxw=jVwH5gq7H7m9_+g@mail.gmail.com' \
    --to=melroch-re5jqeeqqe8avxtiumwx3w@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).