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: Thu, 13 Jun 2013 21:39:07 +0100 Message-ID: <87vc5hd9uc.fsf@gmail.com> References: <87a9mwdtrh.fsf@gmail.com> <87y5afkcoa.fsf@sbs.ch> <878v2fej7n.fsf@gmail.com> <871u87nwrs.fsf@ucl.ac.uk> <87y5afc7q2.fsf@gmail.com> <87d2rqa1p8.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnEG6-0002XP-5O for emacs-orgmode@gnu.org; Thu, 13 Jun 2013 16:36:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnEG5-0006m0-5q for emacs-orgmode@gnu.org; Thu, 13 Jun 2013 16:36:38 -0400 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:55048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnEG4-0006lq-Uq for emacs-orgmode@gnu.org; Thu, 13 Jun 2013 16:36:37 -0400 Received: by mail-wi0-f178.google.com with SMTP id k10so1958582wiv.11 for ; Thu, 13 Jun 2013 13:36:36 -0700 (PDT) In-reply-to: <87d2rqa1p8.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, Eric S Fraga writes: > Myles English writes: > >> 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" > > If you use a4 sized paper all (or most of) the time, you can set this in > /etc/papersize on Linux. I think this is what ps2pdf looks at by > default. > > I think paperconfig (8) is used to set this property properly. Thanks for the suggestions. I looked into this for my Arch Linux but it had no effect on ps2pdf. Making the /etc/papersize file and then setting PAPERSIZE=a4 or PAPERCONF=/etc/papersize did not produce an A4 pdf document (even after installing libpaper). Setting GS_OPTIONS="-sPAPERSIZE=a4" worked. What also worked was manually adding this to the .ps file: %%BeginPaperSize: a4 %%EndPaperSize I am wondering if ps-print should have known to add this because ps-paper-type is set to a4? Thanks, Myles