all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Angelo Graziosi <angelo.graziosi@alice.it>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Using Emacs as PS converter
Date: Mon, 01 Dec 2014 22:05:32 +0100	[thread overview]
Message-ID: <547CD81C.1090900@alice.it> (raw)

Eli Zaretskii wrote:
> 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:
 > [...]
> See the section "How Ps-Print Deals With Faces" in the ps-print.el
> commentary for more about setting up faces for ps-print.

Hmm.. but when I use "M-x ps-spool-buffer-with-faces" from Emacs, the 
postscript file *has* the syntax colors!

In other words:

$ emacs -Q
$ C-x C-f foo.c

foo.c has the syntax with colors (font-lock ON by default, right?)

After loading foo.c, do

   M-x ps-spool-buffer-with-faces

and *PostScript* buffer is created. Switching to it (menu Buffers and 
clicking on the item '*PostScript*'):

   C-x C-w  foo.ps


foo.ps has the syntax colors as foo.c when visited by Emacs.


Now if from command line I do:

emacs [-Q] -batch foo.c -f ps-spool-buffer-with-faces --eval "(progn 
(switch-to-buffer \"*PostScript*\") (write-file \"foo.ps\"))"

(with or without the option -Q) it produces foo.ps in BW, *not* with 
syntax colors.


Does it mean that one, to have foo.ps with syntax colors, when produced 
from command lone as above, should setup .emacs as you suggested?

As profane, I would expect that *also* the above command line produces 
foo.ps with syntax colors... Why not? After all, that command line 
summarize in a single command all the steps I described above after 
launching "emacs -Q"... or not?


Ciao,
  Angelo.



             reply	other threads:[~2014-12-01 21:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-01 21:05 Angelo Graziosi [this message]
2014-12-02  3:32 ` Using Emacs as PS converter Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2014-12-01 15:05 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
2014-12-01 17:52 ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=547CD81C.1090900@alice.it \
    --to=angelo.graziosi@alice.it \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.