From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Printing org file in color Date: Fri, 27 Jun 2014 11:07:39 -0400 Message-ID: <87oaxeqtl0.fsf@alphaville.bos.redhat.com> References: <87d2dxmm4v.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Xku-0006qj-1a for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 11:08:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0Xko-0008UR-0S for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 11:07:59 -0400 Received: from plane.gmane.org ([80.91.229.3]:45152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Xkn-0008UL-Qt for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 11:07:53 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X0Xkm-00071v-Qc for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 17:07:52 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jun 2014 17:07:52 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jun 2014 17:07:52 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Chris Henderson writes: > On Wed, Jun 25, 2014 at 6:25 PM, Bastien wrote: > > Hi Chris, > > Chris Henderson writes: > > > I'd like to print out my org file in expanded mode in color. How > > do I do that? > > I suggest M-x htmlize-buffer RET then printing from your web > browser. > > I can't findĀ  htmlize-buffer in my org 8.2.5g. Is this recently been > introduced? > C-h f htmlize-buffer RET gives ,---- | htmlize-buffer is an interactive Lisp function in `htmlize.el'. | | (htmlize-buffer &optional BUFFER) | | Convert BUFFER to HTML, preserving colors and decorations. | | The generated HTML is available in a new buffer, which is returned. | When invoked interactively, the new buffer is selected in the current | window. The title of the generated document will be set to the buffer's | file name or, if that's not available, to the buffer's name. | | Note that htmlize doesn't fontify your buffers, it only uses the | decorations that are already present. If you don't set up font-lock or | something else to fontify your buffers, the resulting HTML will be | plain. Likewise, if you don't like the choice of colors, fix the mode | that created them, or simply alter the faces it uses. `---- M-x locate-library htmlize.el RET gives (in my case) ,---- | Library is file ~/elisp/org-mode/contrib/lisp/htmlize.el `---- Maybe you need to add the org-mode/contrib/lisp directory to your load-path? Nick