Re: [O] controlling how htmlize fontifies code

2015-08-04 Thread Nicolas Goaziou
Rasmus writes: > Nicolas Goaziou writes: > >> Rasmus writes: >> >>> Do we have a function that can generate a candidate css file for >>> org-org-htmlized-css-url or :html-htmlize-css-url? >> >> There is `org-html-htmlize-generate-css'. > > The next question is thus, shouldn't the output of this

Re: [O] controlling how htmlize fontifies code

2015-08-04 Thread Rasmus
Nicolas Goaziou writes: > Rasmus writes: > >> Do we have a function that can generate a candidate css file for >> org-org-htmlized-css-url or :html-htmlize-css-url? > > There is `org-html-htmlize-generate-css'. The next question is thus, shouldn't the output of this automatically be inserted wh

Re: [O] controlling how htmlize fontifies code

2015-08-04 Thread Nicolas Goaziou
Rasmus writes: > Do we have a function that can generate a candidate css file for > org-org-htmlized-css-url or :html-htmlize-css-url? There is `org-html-htmlize-generate-css'. Regards,

Re: [O] controlling how htmlize fontifies code

2015-08-04 Thread Eric S Fraga
On Tuesday, 4 Aug 2015 at 17:09, Nicolas Goaziou wrote: [...] > Not really, although I would write it like the following instead: > > (let ((output-type org-html-htmlize-output-type) > (font-prefix org-html-htmlize-font-prefix)) > (with-temp-buffer > ... > ;; Htmlize re

Re: [O] controlling how htmlize fontifies code

2015-08-04 Thread Rasmus
Hi, Nicolas Goaziou writes: > Not really, although I would write it like the following instead: > > (let ((output-type org-html-htmlize-output-type) > (font-prefix org-html-htmlize-font-prefix)) > (with-temp-buffer > ... > ;; Htmlize region. > (let ((org-html-html

Re: [O] controlling how htmlize fontifies code

2015-08-04 Thread Nicolas Goaziou
Hello, Rasmus writes: > Here's a simple fix, Thank you. > though I suspect Nicolas will have a more through solution up his > sleeve. Not really, although I would write it like the following instead: (let ((output-type org-html-htmlize-output-type) (font-prefix org-html-htmlize-fo

Re: [O] controlling how htmlize fontifies code

2015-08-04 Thread Rasmus
Hi Eric, Thanks for looking into this. Eric S Fraga writes: > Trying to fix this is definitely beyond my ability unfortunately. I may > need to see how onerous it is to set the output type to css globally. Here's a simple fix, though I suspect Nicolas will have a more through solution up his

Re: [O] controlling how htmlize fontifies code

2015-08-04 Thread Eric S Fraga
On Monday, 3 Aug 2015 at 17:08, Rick Frankel wrote: [...] > Both should work. Are you sure you have `org-export-allow-bind-keywords' set? > Why wouldn't you expect local variables to work? Okay, I have tracked the problem down. Took some effort and boy did this test my not very extensive emacs

Re: [O] controlling how htmlize fontifies code

2015-08-04 Thread Eric S Fraga
On Monday, 3 Aug 2015 at 17:08, Rick Frankel wrote: [...] >> 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. >> > > Both should work. Are you sure you have `org-ex

Re: [O] controlling how htmlize fontifies code

2015-08-03 Thread Rick Frankel
On Mon, Aug 03, 2015 at 02:50:27PM +0100, Eric S Fraga wrote: > 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-de

Re: [O] controlling how htmlize fontifies code

2015-08-03 Thread Eric S Fraga
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, Kau

Re: [O] controlling how htmlize fontifies code

2015-08-03 Thread Eric S Fraga
On Sunday, 2 Aug 2015 at 14:17, Rasmus wrote: [...] > Check the functions disable-theme and load-theme in Emacs; maybe map > custom-enabled-themes over disable-theme. Check the hooks Thanks. Using org-html-htmlize-output-type seems to work for what I want. -- : Eric S Fraga (0xFFFCF67D), Emac

Re: [O] controlling how htmlize fontifies code

2015-08-02 Thread Kaushal
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-htm

Re: [O] controlling how htmlize fontifies code

2015-08-02 Thread Rick Frankel
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

Re: [O] controlling how htmlize fontifies code

2015-08-02 Thread Rasmus
Eric S Fraga writes: > 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 backgroun

[O] controlling how htmlize fontifies code

2015-08-02 Thread Eric S Fraga
Hello all, I have to prepare a whole new set of lectures for a new course and I thought I would play around with =ox-reveal= as an HTML export target may actually be more appropriate for this course than my usual PDF target. And one of the best features of org is that most of the effort is the sa