From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: colorize html output when batch exporting Date: Tue, 14 Jan 2014 13:25:07 -0500 Message-ID: <456aae79ec3109523d0d19759b73b0eb@mail.rickster.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W38fu-0006bV-5W for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 13:25:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W38fo-0001TL-6U for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 13:25:18 -0500 Received: from mail.rickster.com ([204.62.15.78]:60270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W38fo-0001MA-3v for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 13:25:12 -0500 In-Reply-To: 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: Alan Schmitt Cc: emacs-orgmode On 2014-01-14 08:45, Alan Schmitt wrote: > Hello, > > I'm trying to batch export a file, and I don't seem to have > colorization > working. Reading the documentation a bit, I found this information: > > Following these instructions, I set up this variable in the init.el > called upon batch exporting, among other things: > Unfortunately I could not complete the next step (to get a start on the > css file), as `org-html-htmlize-generate-css` results in an error > "face-attribute: Invalid face: font-lock-comment". I tried to toggle > debug on error, but it does nothing. > > Are there suggestions on how to generate this css file for a nice > coloring of my code? Which version of emacs are you using? FWIW, I just had this problem yesterday (although it choked on a different face) in emacs trunk (24.4.x). But on my machine @work on (24.3.8) it is working fine. It seems that htmlize is choking on invalid face definitions. Somewhere you have a reference to a face "font-lock-comment" which does not exist (the correct definition in this case is "font-lock-comment-face"), so if you can find the customization that refers to "font-lock-comment" and fix it you should be able to generate the CSS. rick