public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Papersize setting not reflected in PDF Properties
@ 2016-04-29  4:53 R (Chandra) Chandrasekhar
       [not found] ` <36b333e5-2759-7c61-f656-68d9ce08dd16-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 16+ messages in thread
From: R (Chandra) Chandrasekhar @ 2016-04-29  4:53 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-04-30  3:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-29  4:53 Papersize setting not reflected in PDF Properties R (Chandra) Chandrasekhar
     [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

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