From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Agenda printing: org-agenda-write doesn't use ps-paper-type
Date: Fri, 14 Jun 2013 09:57:11 +0200 [thread overview]
Message-ID: <86vc5h86qw.fsf@somewhere.org> (raw)
In-Reply-To: 87y5afc7q2.fsf@gmail.com
Myles English wrote:
> Eric S Fraga writes:
>>>> Myles English <mylesenglish-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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
next prev parent reply other threads:[~2013-06-14 7:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-12 1:04 Agenda printing: org-agenda-write doesn't use ps-paper-type Myles English
2013-06-12 7:31 ` Christian Egli
2013-06-12 10:06 ` Myles English
2013-06-12 16:01 ` Eric S Fraga
2013-06-12 21:57 ` Myles English
2013-06-13 7:50 ` Eric S Fraga
2013-06-13 20:39 ` Myles English
2013-06-13 21:59 ` Nick Dokos
2013-06-14 9:03 ` Eric S Fraga
2013-06-13 8:11 ` Christian Egli
2013-06-13 13:32 ` Rainer Stengele
2013-06-13 20:30 ` Myles English
2013-06-14 7:57 ` Sebastien Vauban [this message]
2013-06-14 11:41 ` Myles English
2013-06-14 11:51 ` Sebastien Vauban
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86vc5h86qw.fsf@somewhere.org \
--to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).