From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: Agenda printing: org-agenda-write doesn't use ps-paper-type Date: Wed, 12 Jun 2013 22:57:57 +0100 Message-ID: <87y5afc7q2.fsf@gmail.com> References: <87a9mwdtrh.fsf@gmail.com> <87y5afkcoa.fsf@sbs.ch> <878v2fej7n.fsf@gmail.com> <871u87nwrs.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Umt0r-0000EE-L2 for emacs-orgmode@gnu.org; Wed, 12 Jun 2013 17:55:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Umt0q-00051G-PT for emacs-orgmode@gnu.org; Wed, 12 Jun 2013 17:55:29 -0400 Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:41982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Umt0q-000516-KN for emacs-orgmode@gnu.org; Wed, 12 Jun 2013 17:55:28 -0400 Received: by mail-we0-f172.google.com with SMTP id q56so7464869wes.31 for ; Wed, 12 Jun 2013 14:55:27 -0700 (PDT) In-reply-to: <871u87nwrs.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: emacs-orgmode@gnu.org, Christian Egli Eric S Fraga writes: >>> Myles English writes: >>> >>>> Trying to print an agenda to pdf always results in the paper size being >>>> US letter even though ps-paper-type is set to a4. > > Have you checked to see if the postscript version uses the right paper > size? Just in case the ps -> pdf conversion is at fault? The pdf is > created from the ps file. In any case, both ps and pdf work just fine > for me to A4 with ps-paper-type set to 'a4. Thanks for checking it. Yes, I had to change this line in org-agenda.el: - (call-process "ps2pdf" nil nil nil + (call-process "ps2pdf" nil nil nil "-sPAPERSIZE=a4" I wonder if we need to allow a set of options to be passed to ps2pdf as we do for ps? Myles