From: "R (Chandra) Chandrasekhar" <chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Papersize setting not reflected in PDF Properties
Date: Fri, 29 Apr 2016 10:23:08 +0530 [thread overview]
Message-ID: <36b333e5-2759-7c61-f656-68d9ce08dd16@gmail.com> (raw)
I have appended below a self-explanatory file, which when compiled by
pandoc, gives PDFs that report a page size that is Letter rather than
A4, despite compiling with the papersize variable set to a4paper.
****** Start of file papersize.md ******
---
title: Test of papersize setting in YAML metablock
papersize: a4paper
geometry:
- margin=25mm
---
This file is saved as `papersize.md`.
The papersize setting `papersize: a4paper` is given in the YAML metablock.
I am on a Linux system running `pandoc 1.17.0.3`.
The compilation script is:
~~~
pandoc --smart --standalone --from markdown --to latex
--latex-engine=xelatex --output papersize.pdf papersize.md
~~~
The PDF Properties when displaying `papersize.pdf` using Okular shows
`Page Size: 216 x 279 mm (portrait letter)` instead of `A4`.
Moreover, `pdfinfo papersize.md` gives `Page size: 612 x 792 pts
(letter)` as well.
As a check, if I compile with
~~~
pandoc --smart --standalone --from markdown --to latex
--latex-engine=xelatex --variable papersize=a4paper --output
papersize.pdf papersize.md
~~~
I still get the letter paper page size reported above by the two methods.
What am I doing wrong here and what should I do to get a page size of A4
by a YAML metablock setting?
Or is this a bug?
****** End of file papersize.md ******
next reply other threads:[~2016-04-29 4:53 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-29 4:53 R (Chandra) Chandrasekhar [this message]
[not found] ` <36b333e5-2759-7c61-f656-68d9ce08dd16-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-29 8:29 ` Joost Kremers
[not found] ` <87lh3w4y2o.fsf-97jfqw80gc6171pxa8y+qA@public.gmane.org>
2016-04-29 11:29 ` R (Chandra) Chandrasekhar
[not found] ` <d702a67f-bf6f-e732-a7da-432fc846532b-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-29 13:39 ` R (Chandra) Chandrasekhar
[not found] ` <7966bc6d-d6fb-5392-fe8f-137e20024418-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-29 17:38 ` R (Chandra) Chandrasekhar
[not found] ` <2c0b0377-bc86-096a-3a74-ab3626a489fe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-30 0:05 ` kurt.pfeifle via pandoc-discuss
[not found] ` <fa0bddbf-548c-46c4-80b3-afb2d2c73a92-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-04-30 2:07 ` R (Chandra) Chandrasekhar
2016-04-30 3:32 ` John MacFarlane
2016-04-30 3:29 ` John MacFarlane
2016-04-29 17:42 ` BP Jonsson
[not found] ` <57239D0C.7050309-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-29 17:46 ` R (Chandra) Chandrasekhar
[not found] ` <b199b75f-a40f-0877-5782-9cc0ce7f0b69-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-29 18:48 ` Christophe Demko
[not found] ` <d195d8cd-9064-4ed6-b44c-3cc69bf1866f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-04-29 19:05 ` R (Chandra) Chandrasekhar
[not found] ` <CADAJKhAEoDDiBNSe9Ee8bf1S3hJHnsec_yFVvW3pjEHrjaondQ@mail.gmail.com>
[not found] ` <CADAJKhAEoDDiBNSe9Ee8bf1S3hJHnsec_yFVvW3pjEHrjaondQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-29 19:04 ` Melroch
[not found] ` <CADAJKhBVACxDSUvqsxaCTdk4bKsdopLQfKMdYV8+Yvprw_PG5A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-29 19:07 ` R (Chandra) Chandrasekhar
2016-04-30 3:26 ` John MacFarlane
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=36b333e5-2759-7c61-f656-68d9ce08dd16@gmail.com \
--to=chyavana-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).