emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Dan Davison <davison@stats.ox.ac.uk>
Cc: emacs org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: How to change colour theme during export
Date: Tue, 13 Oct 2009 00:07:51 +0200	[thread overview]
Message-ID: <25DDBC1D-F6B4-4006-B991-30B2F168E288@gmail.com> (raw)
In-Reply-To: <87iqekiapq.fsf@stats.ox.ac.uk>

Hi Dan,

files which you publish interactively should get the colors you  
currently have active in Emacs.  Stuff published in Org and Worg uses  
color definitions in org.css and worg.css, respectively.  If you  
wanted to change these, you would have to make a different style file.

Check the command `org-export-htmlize-generate-css', that might help.

During export on orgmode.org, also the following setting is activated

    (setq org-export-htmlize-output-type 'css)

making sure that the colors will be taken from the css file.

Also, check out this FAQ:

http://orgmode.org/worg/org-faq.php#preserving-faces-during-batch-export

HTH

- Carsten

On Oct 12, 2009, at 11:06 PM, Dan Davison wrote:

> How do I set the color theme for fontification of exported source
> blocks? I thought maybe I could do it by adding the desired
> (color-theme-whatever) to my org-src-mode-hook. But it doesn't seem to
> have any effect (although the hook is called). So how should I do it  
> and
> why didn't my method work?
>
> Thanks,
>
> Dan
>
> p.s. The bit in org-exp.el (from l. 2334) that (I believe) does the
> htmlize-ing looks like this
>
> --8<---------------cut here---------------start------------->8---
>  (with-temp-buffer
>    (insert rtn)
>    (if (functionp mode)
>        (funcall mode)
>      (fundamental-mode))
>    (font-lock-fontify-buffer) ;; I tried switching this line with  
> the next,
>    (org-src-mode)             ;; but that wasn't it.
>    (set-buffer-modified-p nil)
>    (org-export-htmlize-region-for-paste
>     (point-min) (point-max))))
> --8<---------------cut here---------------end--------------->8---
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

      reply	other threads:[~2009-10-12 22:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-12 21:06 How to change colour theme during export Dan Davison
2009-10-12 22:07 ` Carsten Dominik [this message]

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=25DDBC1D-F6B4-4006-B991-30B2F168E288@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=davison@stats.ox.ac.uk \
    --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).