[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using Emacs as PS converter
From: |
Angelo Graziosi |
Subject: |
Re: Using Emacs as PS converter |
Date: |
Mon, 01 Dec 2014 22:05:32 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
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.