From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Using Emacs as PS converter
Date: Mon, 01 Dec 2014 22:09:39 +0200 [thread overview]
Message-ID: <83iohv6sjg.fsf@gnu.org> (raw)
In-Reply-To: <547CC87E.8040404@alice.it>
> Date: Mon, 01 Dec 2014 20:58:54 +0100
> From: Angelo Graziosi <angelo.graziosi@alice.it>
>
> Eli Zaretskii wrote:
> > I don't know, but this minor variation works for me:
> >
> > emacs -batch foo.c -f ps-spool-buffer-with-faces --eval "(progn (switch-to-buffer \"*PostScript*\") (write-file \"foo.ps\"))"
>
> Oh, yes it works! I notice only that foo.ps is black and white... :(
>
> It has lost the syntax colors... sigh..
You need to define the ps-print faces, I think. I have something like
this in my .emacs, which works well with black-and-white PS printers:
(setq ps-bold-faces
'(font-lock-comment-face
font-lock-keyword-face
font-lock-builtin-face
font-lock-function-name-face
diff-hunk-header-face
diff-changed-face
diff-removed-face
diff-added-face))
(setq ps-italic-faces
'(font-lock-comment-face
font-lock-variable-name-face
font-lock-string-face
diff-header-face))
(setq ps-underlined-faces
'(font-lock-type-face
font-lock-reference-face
font-lock-builtin-face
diff-file-header-face
diff-function-face))
See the section "How Ps-Print Deals With Faces" in the ps-print.el
commentary for more about setting up faces for ps-print.
next prev parent reply other threads:[~2014-12-01 20:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-01 15:05 Using Emacs as PS converter Angelo Graziosi
2014-12-01 17:16 ` Doug Lewan
2014-12-01 17:34 ` Angelo Graziosi
2014-12-01 19:58 ` Angelo Graziosi
2014-12-01 20:09 ` Eli Zaretskii [this message]
2014-12-01 17:52 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2014-12-01 21:05 Angelo Graziosi
2014-12-02 3:32 ` Eli Zaretskii
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83iohv6sjg.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.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.
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).