emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rick Frankel <rick@rickster.com>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: colorize html output when batch exporting
Date: Tue, 14 Jan 2014 13:25:07 -0500	[thread overview]
Message-ID: <456aae79ec3109523d0d19759b73b0eb@mail.rickster.com> (raw)
In-Reply-To: <m2txd6pth5.fsf@polytechnique.org>

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

  reply	other threads:[~2014-01-14 18:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-14 13:45 colorize html output when batch exporting Alan Schmitt
2014-01-14 18:25 ` Rick Frankel [this message]
2014-01-15  8:04   ` Alan Schmitt
2014-01-15 14:39     ` Rick Frankel
2014-01-15 15:24       ` Alan Schmitt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=456aae79ec3109523d0d19759b73b0eb@mail.rickster.com \
    --to=rick@rickster.com \
    --cc=alan.schmitt@polytechnique.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).