emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type


From: Myles English
Subject: Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type
Date: Thu, 13 Jun 2013 21:30:49 +0100
User-agent: mu4e 0.9.9.5-dev6; emacs 24.3.1

Christian Egli writes:

> Myles English <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]