[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: |
Sebastien Vauban |
Subject: |
Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type |
Date: |
Fri, 14 Jun 2013 09:57:11 +0200 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (windows-nt) |
Myles English wrote:
> Eric S Fraga writes:
>>>> Myles English <address@hidden> 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?
And setting that in a custom command?
#+begin_src emacs-lisp
(add-to-list 'org-agenda-custom-commands
'("L" "Call list"
tags-todo "phone"
((ps-paper-type 'a4))
("~/org-calls.pdf")) t)
#+end_src
Best regards,
Seb
--
Sebastien Vauban
- Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type, (continued)
- Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type, Myles English, 2013/06/12
- Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type, Eric S Fraga, 2013/06/12
- Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type, Myles English, 2013/06/12
- Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type, Christian Egli, 2013/06/13
- Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type, Rainer Stengele, 2013/06/13
- Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type, Myles English, 2013/06/13
- Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type, Eric S Fraga, 2013/06/13
- Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type, Myles English, 2013/06/13
- Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type, Nick Dokos, 2013/06/13
- Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type, Eric S Fraga, 2013/06/14
- Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type,
Sebastien Vauban <=
- Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type, Myles English, 2013/06/14
- Re: [O] Agenda printing: org-agenda-write doesn't use ps-paper-type, Sebastien Vauban, 2013/06/14