Christian Egli writes:

> Myles English <mylesengl...@gmail.com> 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