From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14885 Path: news.gmane.org!not-for-mail From: "R (Chandra) Chandrasekhar" Newsgroups: gmane.text.pandoc Subject: Re: Papersize setting not reflected in PDF Properties Date: Fri, 29 Apr 2016 23:08:48 +0530 Message-ID: <2c0b0377-bc86-096a-3a74-ab3626a489fe@gmail.com> References: <36b333e5-2759-7c61-f656-68d9ce08dd16@gmail.com> <87lh3w4y2o.fsf@fastmail.fm> <7966bc6d-d6fb-5392-fe8f-137e20024418@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed X-Trace: ger.gmane.org 1461951550 7940 80.91.229.3 (29 Apr 2016 17:39:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 17:39:10 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCQPFLNGRAERBLNYR24QKGQEGIVE26A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Apr 29 19:38:54 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-io0-f190.google.com ([209.85.223.190]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1awCNS-0001p6-Cl for gtp-pandoc-discuss@m.gmane.org; Fri, 29 Apr 2016 19:38:54 +0200 Original-Received: by mail-io0-f190.google.com with SMTP id 190sf3221789iow.0 for ; Fri, 29 Apr 2016 10:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-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=qd+rIOTqoo5QxmvwMDBAcOM28f1LXwNuy3olbwEwsDY=; b=p33OlX7zW19k31P53UOFTVMJ9jl3MqNp4Rk0Vs6vsIraIPVt1VQKYuYcaH9QDBFnQb 2u71/DFWLTo+++xCSlycQ7L9pp96QbJ8GPA8xZF5Xu276uNYYCEOu3eF8KsAhwZWQHdP LjVp/cvgyK6fsitpsy2gnBr5K3fbrHE+KsYX6cpXgPL8tmtdBq6oBc2qjpI5flS2SUZr sCRMteRlB7kdifC9oXzg6OmVUJUN3XizK/2LU4aQfsJgtus5LbMM6STMNTPVtcrH9AQr PNKvp6GbN7CnTJoblO70v+hDKxI55D2nYxRb1joKypvwAgAAHJ1MQhM8BXQJHUXtwX2v vbPA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-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=qd+rIOTqoo5QxmvwMDBAcOM28f1LXwNuy3olbwEwsDY=; b=HFZo8IEbzJj69MrD/rm8NHqkGJ5dVCWXlpcvyXwDPLQyKKsGmiy1PU/KpzuqmrrFO1 sOidKtWBLjaDs5+A0aQLl0HLRum9dIgTZDEEkqFQFkR+vURro/cm1sB0KeWHSf5JYbS+ O1aYLovyUxhDJktSsZNTmHJu9+SElHijNuDTShyKuo874ofCmNfyEto5ROQBi8TnVXof uHwpEA9dMqZj3q6Tlq/ls6jToa5f7Y2c7cGOFesrYccF+hK4ITgK+Wo6rNrNwliOeMxY Z96ycgQJul+/yHRYP07UsgLFC7jItFqrgOowefwSp8A3ouDr5tDGbYzxoAwNUyw5Xdgs 2xmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-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=qd+rIOTqoo5QxmvwMDBAcOM28f1LXwNuy3olbwEwsDY=; b=iuoLO5RA0DHVE8MptVETsNce7la4d3oMfDNLxIVIQALWuk2vKWSTY9L2oytP/iT1lL uQ2nbVYWwGvY6R/P7viD9uwhdbw+cdMVo8/VL0vYvwcrupeiPGbQS/447mq933qpUEL2 k6N4/M56vD1QSEwB+zyabHFV1KWAMIsM9r1NlBeEKfJ/6GT46mvvKLdRJ5crzXmOatUz ExHv+UZHZ17Xv2SOybu+/C0vEJsfA6rDfuahHAFntLDJAe3+GSFnXGn3H9QuG2LAxFI3 imdjtSZ64g1C4Z2eEqN1vDE0MG7KyWPFoHCpGAGyt90x1174uFYwIKMfAIpw4rVx80gg SQYw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOPr4FXSzoutyd45EvfN+Jq5GPBQz0Ma9CafcnX47yPoug8yt2sa6xyWkiH3NhoYoIInPQ== X-Received: by 10.50.56.146 with SMTP id a18mr124731igq.3.1461951533541; Fri, 29 Apr 2016 10:38:53 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.11.165 with SMTP id r5ls243687igb.44.canary; Fri, 29 Apr 2016 10:38:52 -0700 (PDT) X-Received: by 10.107.137.19 with SMTP id l19mr14426420iod.6.1461951532967; Fri, 29 Apr 2016 10:38:52 -0700 (PDT) Original-Received: from mail-pf0-x231.google.com (mail-pf0-x231.google.com. [2607:f8b0:400e:c00::231]) by gmr-mx.google.com with ESMTPS id ph3si320657pac.1.2016.04.29.10.38.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Apr 2016 10:38:52 -0700 (PDT) Received-SPF: pass (google.com: domain of chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400e:c00::231 as permitted sender) client-ip=2607:f8b0:400e:c00::231; Original-Received: by mail-pf0-x231.google.com with SMTP id 206so51000540pfu.0 for ; Fri, 29 Apr 2016 10:38:52 -0700 (PDT) X-Received: by 10.98.1.69 with SMTP id 66mr31398180pfb.10.1461951532812; Fri, 29 Apr 2016 10:38:52 -0700 (PDT) Original-Received: from [192.168.0.4] ([112.133.229.6]) by smtp.gmail.com with ESMTPSA id rw2sm25189393pab.30.2016.04.29.10.38.50 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 29 Apr 2016 10:38:51 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <7966bc6d-d6fb-5392-fe8f-137e20024418-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com; spf=pass (google.com: domain of chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400e:c00::231 as permitted sender) smtp.mailfrom=chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE 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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:14885 Archived-At: 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