public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "R (Chandra) Chandrasekhar" <chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Papersize setting not reflected in PDF Properties
Date: Fri, 29 Apr 2016 23:08:48 +0530	[thread overview]
Message-ID: <2c0b0377-bc86-096a-3a74-ab3626a489fe@gmail.com> (raw)
In-Reply-To: <7966bc6d-d6fb-5392-fe8f-137e20024418-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

On 29/04/16 19:09, R (Chandra) Chandrasekhar wrote:
>
>
> On 29/04/16 16:59, R (Chandra) Chandrasekhar wrote:
>> On 29/04/16 13:59, Joost Kremers wrote:
>>>
>>> Actually, the papersize option to the documentclass declaration in
>>> itself doesn't do very much. You'll also need a package that can set the
>>> paper size, e.g., geometry, or use a class style that takes care of it
>>> (the koma classes do; don't know about memoir).
>>>
>>> I'm not an expert in any way, but I do know that setting the paper size
>>> in (La)TeX is a complex topic. (There's a reason why paper size is a
>>> configuration option of the TeX system itself...)
>>>
>>
>> Thanks for mentioning options to documentclass in your reply. If, I
>> replace
>>
>> papersize: a4paper
>>
>> by
>>
>> classoption: a4paper
>>
>> in the YAML metablock. I do indeed get an A4 page sized PDF.
>>
>> I guess now my question becomes, why does it not work for papersize?
>>
>> Thanks.
>
> And setting
>
> papersize: A4
>
> does not work either.

But setting

papersize: a4

does work.

I needed to get the intermediate .tex file to examine it to see where 
things were going wrong.

It appears that the paper size may be set in three ways with subtle 
differences in result, as they are not all necessarily equivalent:

(a) papersize: a4

(b) classoption: a4paper

(c) geometry:
	- paper=a4paper

Scope for error arises when one stipulates

papersize: a4paper

which leads to the erroneous documentclass option `a4paperpaper` in the 
.tex file. Perhaps this setting could be made uniform in all three cases 
in a subsequent release of Pandoc.

Likewise, fontsize, which may be set in at least two ways:

(i) fontsize: 12pt

(ii) classoption: 12pt

But the scope for error here is reduced since the value for the key is 
the same in both cases: 12pt.

Chandra




  parent reply	other threads:[~2016-04-29 17:38 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-29  4:53 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 [this message]
     [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=2c0b0377-bc86-096a-3a74-ab3626a489fe@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).