From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: controlling how htmlize fontifies code Date: Mon, 3 Aug 2015 14:50:27 +0100 Message-ID: <87a8u8jxb0.fsf@ucl.ac.uk> References: <874mkihwl2.fsf@ucl.ac.uk> <20150802131919.GA98482@eyeBook.home> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMG8W-0001Ka-GY for emacs-orgmode@gnu.org; Mon, 03 Aug 2015 09:50:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMG8T-0006S4-6q for emacs-orgmode@gnu.org; Mon, 03 Aug 2015 09:50:40 -0400 Received: from mail-am1on0145.outbound.protection.outlook.com ([157.56.112.145]:25600 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMG8S-0006Mv-V7 for emacs-orgmode@gnu.org; Mon, 03 Aug 2015 09:50:37 -0400 In-Reply-To: <20150802131919.GA98482@eyeBook.home> (Rick Frankel's message of "Sun, 2 Aug 2015 09:19:19 -0400") 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 On Sunday, 2 Aug 2015 at 09:19, Rick Frankel wrote: > 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. On Sunday, 2 Aug 2015 at 09:41, Kaushal wrote: > 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-") Thank you Rick and Kaushal. =org-html-htmlize-output-type= does what I want. However, I don't want to set this globally as I use htmlize every now and again to send HTML emacs (yes, I know, bad idea but some colleagues require me to email information in tables and the like every now and again and it's better than using Word... ;-). I have tried both setting a local variable and also using #+bind: but neither approach works for some reason. I did not expect the local variable setting to work, of course. Any suggestions on taking this forward? For now, setting this variable globally to nil is a stop-gap measure. Thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3beta-1303-g3f0398