* Printing in OSX
@ 2012-10-14 7:23 Neuwirth Erich
2012-10-14 8:49 ` Peter Dyballa
0 siblings, 1 reply; 4+ messages in thread
From: Neuwirth Erich @ 2012-10-14 7:23 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
Emacs 24.2, OSX 10.8.2
My printer has A4 as the default paper format.
But whenever I print for poscript print,
it asks for letter paper and I have to manual override this.
Googling I founr I should do
(setq ps-paper-type 'a4)
but this does not help either.
Is there a way way to get rid of this annoyance?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Printing in OSX
2012-10-14 7:23 Printing in OSX Neuwirth Erich
@ 2012-10-14 8:49 ` Peter Dyballa
2012-10-15 6:23 ` Neuwirth Erich
0 siblings, 1 reply; 4+ messages in thread
From: Peter Dyballa @ 2012-10-14 8:49 UTC (permalink / raw)
To: Neuwirth Erich; +Cc: help-gnu-emacs@gnu.org
Am 14.10.2012 um 09:23 schrieb Neuwirth Erich:
> Is there a way way to get rid of this annoyance?
Did you restart GNU Emacs after that change in your init file?
You can also position the text cursor inside the symbol (or text) "ps-paper-type" and type C-h v. A *Help* buffer will open explaining that the symbol is a variable for a special purpose and has a value, nil or something else. This buffer will also offer to customise the variable's value. This customisation interface also offers to set the new value for the current session or to save it for the future, i.e., record it in your init file.
Having done the latter, you can erase your own Emacs Lisp statement… Using the "official" customisation interface is much more reliable – and you have your customisations put together in a single block (or two).
Did you set the paper size correctly in System Preferences? Have you tried to "read" the PS output from GNU Emacs? While the print command from the File menu is for example ps-print-buffer-faces, which produces in the background the PS file and forwards it to your OS's printing system, the command ps-spool-buffer-faces ("print" substituted with "spool") will insert the PS text into a buffer called *PostScript*. Here you can easily check whether the correct values are used. (You can also save this buffer to a file and view that PS file in some PS viewer.)
--
Mit friedvollen Grüßen
Pete
These are my principles and if you don't like them... well, I have others.
- Groucho Marx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Printing in OSX
2012-10-14 8:49 ` Peter Dyballa
@ 2012-10-15 6:23 ` Neuwirth Erich
2012-10-16 9:06 ` Peter Dyballa
0 siblings, 1 reply; 4+ messages in thread
From: Neuwirth Erich @ 2012-10-15 6:23 UTC (permalink / raw)
To: Peter Dyballa; +Cc: help-gnu-emacs@gnu.org
This is what I get in the postscript buffer.
-=-=-=
[/h1 (~/)]
]def
/HeaderLinesRight[
[/h0 /pagenumberstring load]
[/h1 (10/15/12)]
]def
2 SetHeaderLines
0 BeginPage
/f0 F
false BG
0.000 0.000 0.000 FG
0 EF
(\344\366\337) S
PHL
EndPage
EndDSCPage
EndSheet
%%Trailer
%%Pages: 1
EndDoc
%%EOF
-=-=-=
When I save it as xxx.ps and then double click this file, it will be converted to Postscript I an print it.
It will be printed immediately, the printer will not ask for letter paper.
On Oct 14, 2012, at 10:49 AM, Peter Dyballa <Peter_Dyballa@Web.DE> wrote:
>
> Am 14.10.2012 um 09:23 schrieb Neuwirth Erich:
>
>> Is there a way way to get rid of this annoyance?
>
> Did you restart GNU Emacs after that change in your init file?
>
> You can also position the text cursor inside the symbol (or text) "ps-paper-type" and type C-h v. A *Help* buffer will open explaining that the symbol is a variable for a special purpose and has a value, nil or something else. This buffer will also offer to customise the variable's value. This customisation interface also offers to set the new value for the current session or to save it for the future, i.e., record it in your init file.
>
> Having done the latter, you can erase your own Emacs Lisp statement… Using the "official" customisation interface is much more reliable – and you have your customisations put together in a single block (or two).
>
> Did you set the paper size correctly in System Preferences? Have you tried to "read" the PS output from GNU Emacs? While the print command from the File menu is for example ps-print-buffer-faces, which produces in the background the PS file and forwards it to your OS's printing system, the command ps-spool-buffer-faces ("print" substituted with "spool") will insert the PS text into a buffer called *PostScript*. Here you can easily check whether the correct values are used. (You can also save this buffer to a file and view that PS file in some PS viewer.)
>
> --
> Mit friedvollen Grüßen
>
> Pete
>
> These are my principles and if you don't like them... well, I have others.
> - Groucho Marx
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Printing in OSX
2012-10-15 6:23 ` Neuwirth Erich
@ 2012-10-16 9:06 ` Peter Dyballa
0 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2012-10-16 9:06 UTC (permalink / raw)
To: Neuwirth Erich; +Cc: help-gnu-emacs@gnu.org
Am 15.10.2012 um 08:23 schrieb Neuwirth Erich:
> This is what I get in the postscript buffer.
This is not the complete PostScript code. It is just the end, with
> [/h1 (~/)]
making clear that you used your home directory for producing the PostScript output. In the beginning you should have something like this:
%!PS-Adobe-3.0
...
%%Orientation: Portrait
%%DocumentNeededResources: font Times-Roman Times-Italic
...
%%DocumentMedia: A4 595 842 0 () ()
%%PageOrder: Ascend
%%Pages: (atend)
%%Requirements:
%%EndComments
%%BeginDefaults
%%PageMedia: A4
%%EndDefaults
>
> When I save it as xxx.ps and then double click this file, it will be converted to Postscript I an print it.
Why do you convert PostScript to PostScript? Isn't it PDF that Mac OS X produces?
> It will be printed immediately, the printer will not ask for letter paper.
Which tools do you have to view PostScript or PDF files?
--
Mit friedvollen Grüßen
Pete
You can never know too little of what is not worth knowing at all.
– Anon.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-16 9:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-14 7:23 Printing in OSX Neuwirth Erich
2012-10-14 8:49 ` Peter Dyballa
2012-10-15 6:23 ` Neuwirth Erich
2012-10-16 9:06 ` Peter Dyballa
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).