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:30:49 +0100 Message-ID: <87wqpxda86.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> <87txl2jupr.fsf@sbs.ch> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnE84-0007nh-TF for emacs-orgmode@gnu.org; Thu, 13 Jun 2013 16:28:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnE83-0003EG-QT for emacs-orgmode@gnu.org; Thu, 13 Jun 2013 16:28:20 -0400 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:55134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnE83-0003E6-Kr for emacs-orgmode@gnu.org; Thu, 13 Jun 2013 16:28:19 -0400 Received: by mail-we0-f176.google.com with SMTP id t56so8227068wes.7 for ; Thu, 13 Jun 2013 13:28:18 -0700 (PDT) In-reply-to: <87txl2jupr.fsf@sbs.ch> 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: Christian Egli Cc: emacs-orgmode@gnu.org Christian Egli 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" >> >> I wonder if we need to allow a set of options to be passed to ps2pdf as >> we do for ps? > > Where do we pass options for ps? Ok, options aren't passed to ps but variables can be customised for the emacs PostScript generator: (customize-group "ps-print") > A quick rgrep shows that ps2pdf is used in the agenda and two of the > exporters (groff and man) so a better option might be to set the > papersize via the environment (GS_OPTIONS). This worked. I added this to my ~/.zshrc : export GS_OPTIONS="-sPAPERSIZE=a4" Thanks, Myles