[OS X Emacs] Aquamacs printing

Jochen Küpper jochen at fhi-berlin.mpg.de
Tue Jan 22 12:39:50 EST 2008

On 22.01.2008, at 18:04, Peter Dyballa wrote:

> Am 22.01.2008 um 16:26 schrieb Jochen Küpper:
>> On 21.01.2008, at 17:54, Paul Rathouz wrote:
>>> My guess is that would be something you set in your print dialogue  
>>> from preview.  Set paper size.  This is the same dialogue box used  
>>> for all OSX printing.
>> Thanks for your suggestion.
>> However, this is exactly the point.
> So why don't you follow it?

Because I have set it to A4 and it works if I do print by any other  
means then using Aquamacs. Only with Aquamacs it comes up in A4 again  
and again...

>> All other applications, including Preview on a PDF, open the Print  
>> dialog with a default papersize of A4. Only when I Preview and  
>> Print from Aquamacs does it open in US Letter. It's annoying to  
>> change it by hand all the time, and (at least) half the time I  
>> forget.
> For me this is something I won't believe without a good and firm  
> proof.

What tests do you propose?

> This would look like a bug. What I presume can happen is that the  
> print dialog learns from the document the size, which is for PS or  
> PDF quite easy. What do you see when you're going to print a screen- 
> shot, a small one?

What do you mean.
If I grab the Screen using Grab.app, say print, save to PDF, and open  
the created PDF in Preview it is A4. If I say print the preselected  
papersize is A4 as well...

>> For GNU Emacs, I set ps-paper-type to a4 and all is well. Aquamacs  
>> does not honor this setting, so I am wondering what setting one has  
>> to customize.
> I can't see the connection. The print dialog does not accept  
> arguments. AFAIK Aquamacs Emacs uses some work-around to print: the  
> contents to print is converted to HTML first (which also saves all  
> non-ASCII content) which is then converted to PDF and fed into the  
> printer queue.

I simply want to specify that I want Aquamacs to create a PDF with  
papersize set to A4...

How exactly is the html converted to PDF? Is this some part of Mac OS  
X or of Aquamacs? If the latter, how can I configure it to create PDF  
of size A4?

> Some Mac OS X basics! What is
> 	defaults find DefaultPaperID
> returning?

Found 1 keys in domain 'com.apple.print.PrintingPrefs': {
     DefaultPaperID = "iso-a4";

> BTW, isn't the default paper size is set during installation?

As I said, it's correct for any other app / way of using Preview or  
the Mac OS X printing stuff.
Only Aquamacs does it wrong for me...

Einigkeit und Recht und Freiheit                http://www.Jochen-Kuepper.de
     Liberté, Égalité, Fraternité                GnuPG key: CC1B0B4D
         Sex, drugs and rock-n-roll

More information about the MacOSX-Emacs mailing list