[OS X Emacs] how to control colors when printing

David Reitter david.reitter at gmail.com
Tue Feb 10 19:55:10 EST 2015


You know that you can just do C-x C-e with the cursor behind an s-expression (like the seta-expression) and try out its effects?  Faster than starting up Aquamacs.

I tried it now, and it doesn’t work for me, either.  I’ll look into it.


--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!



> On Feb 10, 2015, at 7:08 PM, Pete Siemsen <siemsen at ucar.edu> wrote:
> 
> I tried various permutations of this in my startup file:
> 
> (require 'htmlize)
> (setq htmlize-font-size-scaling-factor 0.02)
> 
> Nothing I tried affected the size of the font in the printed output. Whether I setq the variable or not, or set its value to different numbers, or did the require or not, the result was the same. I've attached a sample that I scanned. As you wrote, it allows about 60 characters across the page. I think the font is a bit too large. I'm likely to print some source code, which wall rarely fit at that size.
> 
> I tried making the font smaller with Apple -, and that worked. To get a good size for me, I had to do Apple - twice. That makes the displayed font temporarily so small as to be unreadable (see attached screenshot).
> 
> I noticed that if I select text before doing Command-p, the text was printed in black, which is what I want. With no text selected, the buffer was printed with the colors that the text has in the buffer. I'm not sure if that's useful, but it's nice that I can make it come out black.
> 
> So to print, I'll usually do:
> 
> Apple - (twice)
> C-x h
> Apple-p
> Apple + (twice)
> 
> The problem will be if I forget to shrink what's on the screen before I print.  When I do, not only will I waste the first printout, my vi-loving colleagues who share the printer will certainly give me a hard time :-)
> 
> -- Pete
> 
> 
> On Tue, Feb 10, 2015 at 4:05 PM, David Reitter <david.reitter at gmail.com> wrote:
> Yes.  That’s actually the case for many Emacs customization variables.  You can set this with setq in your startup file, but if you want to find them with C-h v, you need to (require ‘htmlize).  Or you just try to print or convert to PDF.  That will load it.
> 
> If you’re saying that’s bad design in terms of discoverability, I would agree…
> 
> --
> http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
> http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!
> 
> 
> > On Feb 10, 2015, at 3:02 PM, Pete Siemsen <siemsen at ucar.edu> wrote:
> >
> > I don't know how to change htmlize-font-size-scaling-factor. I can't find it with C-h v, or browsing Options -> Customize Aquamacs. I Google'd a bit, which suggests that I need to require htmlize.el in my startup file?
> >
> > -- Pete
> >
> >
> > On Mon, Feb 9, 2015 at 6:52 PM, David Reitter <david.reitter at gmail.com> wrote:
> > Try changing htmlize-font-size-scaling-factor.
> > You can also try making the font smaller in the buffer, with Apple –.
> >
> > Under what circumstances is the font when printed “rather large”?
> >
> > I set it up so that half a 15” laptop screen or about 60 characters would fit a letter-size page at 100%.  Maybe that font is a bit too big.
> >
> >
> > --
> > http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
> > http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!
> >
> >
> > >> On Feb 9, 2015, at 7:21 PM, Pete Siemsen <siemsen at ucar.edu> wrote:
> > >>
> > >> That fixed it! Thanks!
> > >>
> > >> Is there a way to control the font size? It comes out rather large.
> > >>
> > >>
> > >> -- Pete
> > >>
> > >>
> > >> On Mon, Feb 9, 2015 at 4:50 PM, David Reitter <david.reitter at gmail.com> wrote:
> > >> On Feb 9, 2015, at 3:21 PM, Pete Siemsen <siemsen at ucar.edu> wrote:
> > >> >
> > >> > My Aquamacs windows have a dark background and light text. When I do print-region, the printed page has light grey text on a white background, which isn't very readable.
> > >>
> > >> I actually just worked on this two weeks ago.
> > >>
> > >> Could you try downloading a build from http://aquamacs.org/nightlies.shtml and let me know if that improves the situation?  The text should be printed in black now in such a situation.
> > >>
> > >> - David
> >
> >
> > _____________________________________________________________
> > MacOSX-Emacs mailing list
> > MacOSX-Emacs at email.esm.psu.edu
> > https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> > List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
> 
> 
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
> 
> <sample.pdf><Screen Shot 2015-02-10 at 4.49.31 PM.png>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx



More information about the MacOSX-Emacs mailing list