From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Subject: Re: controlling how htmlize fontifies code Date: Sun, 2 Aug 2015 09:41:50 -0400 Message-ID: References: <874mkihwl2.fsf@ucl.ac.uk> <20150802131919.GA98482@eyeBook.home> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e015382b61d9a27051c543708 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLtWT-0000kJ-IP for emacs-orgmode@gnu.org; Sun, 02 Aug 2015 09:41:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLtWS-00020R-4Z for emacs-orgmode@gnu.org; Sun, 02 Aug 2015 09:41:53 -0400 Received: from mail-ob0-x229.google.com ([2607:f8b0:4003:c01::229]:34842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLtWR-00020D-Vr for emacs-orgmode@gnu.org; Sun, 02 Aug 2015 09:41:52 -0400 Received: by obbop1 with SMTP id op1so82946507obb.2 for ; Sun, 02 Aug 2015 06:41:51 -0700 (PDT) In-Reply-To: <20150802131919.GA98482@eyeBook.home> 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-org list --089e015382b61d9a27051c543708 Content-Type: text/plain; charset=UTF-8 I export with my custom Leuven theme (a light theme) css and it works fine. I also have my emacs theme as a dark theme by default. ;; (setq org-html-htmlize-output-type 'inline-css) ; default (setq org-html-htmlize-output-type 'css) ;; (setq org-html-htmlize-font-prefix "") ; default (setq org-html-htmlize-font-prefix "org-") Check out this link for the full solution including Leuven theme css: http://emacs.stackexchange.com/a/7633/115 -- Kaushal Modi On Aug 2, 2015 9:19 AM, "Rick Frankel" wrote: > On Sun, Aug 02, 2015 at 10:24:25AM +0100, Eric S Fraga wrote: > > Now, I can simply start up emacs with a light background, export my > > slides and everything is fine. However, it would be nice to not have to > > start up a new emacs just for this. Is there an easy way to pretend, > > for export to HTML, that emacs is using a light background? Maybe a way > > to advise the exporter? > > > PS - ideally, code export to HTML would make use of CSS instead of > > hard-coding in the colours but that's a discussion for another > > day... > > Check the documentation for the variable `org-html-htmlize-output-type'. > Since > ox-reveal is derived from ox-html, it should work as specified. I > personally > use ox-deck (also derived from html), so YMMV. > > rick > > --089e015382b61d9a27051c543708 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I export with my custom Leuven theme (a light theme) css and= it works fine. I also have my emacs theme as a dark theme by default.

;; (setq org-html-htmlize-output-type 'inline-css) ; def= ault
(setq org-html-htmlize-output-type 'css)
;; (setq org-html-htmlize-font-prefix "") ; default
(setq org-html-htmlize-font-prefix "org-")

Check out this link for the full solution including Leuven t= heme css: http://emac= s.stackexchange.com/a/7633/115

--
Kaushal Modi

On Aug 2, 2015 9:19 AM, "Rick Frankel"= <rick@rickster.com> wrote:<= br type=3D"attribution">
On Sun, Aug 02, 2015= at 10:24:25AM +0100, Eric S Fraga wrote:
> Now, I can simply start up emacs with a light background, export my > slides and everything is fine.=C2=A0 However, it would be nice to not = have to
> start up a new emacs just for this.=C2=A0 Is there an easy way to pret= end,
> for export to HTML, that emacs is using a light background?=C2=A0 Mayb= e a way
> to advise the exporter?

> PS - ideally, code export to HTML would make use of CSS instead of
>=C2=A0 =C2=A0 =C2=A0 hard-coding in the colours but that's a discus= sion for another
>=C2=A0 =C2=A0 =C2=A0 day...

Check the documentation for the variable `org-html-htmlize-output-type'= . Since
ox-reveal is derived from ox-html, it should work as specified. I personall= y
use ox-deck (also derived from html), so YMMV.

rick

--089e015382b61d9a27051c543708--