Questions tagged [htmlize]

13 questions
3
votes
0 answers

Theme background not exported for HTML source code block

I have some code snippets within an org file: #+BEGIN_SRC python print 42 #+END_SRC When exporting to HTML (org-export-dispatch), the syntax highlighting seems to follow my current theme, but the background of the code block remains pure white (and…
2
votes
0 answers

shr: render local images

I'd like to use the internal shr "package" of emacs to display local images. The thing is that I can display online images but not local ones, that's quite strange isn't it! Reproduce: Put in a random buffer this file:
tobiasBora
  • 405
  • 2
  • 12
1
vote
2 answers

How do I change Org's HTML code background?

Modifying Minted background is easy if my output from Org is…
Sam
  • 317
  • 1
  • 11
1
vote
1 answer

How do I get syntax highlighting in example blocks when exporting org-mode to HTML?

I have set org-src-fontify-natively to t, and have htmlize installed. But my example blocks still don't have syntax highlighting when exported to HTML. #+begin_example python print(8*8) #+end_example My current workaround is to use :eval never…
1
vote
0 answers

How to supress transforming link names by org-export to html?

The HTML export of an org file transforms the links to "to equivalent HTML links in the output" How can I suppress this? I want to keep the same link names. Example: If we have this org file. ** section 1 This is important. <> ** section…
rl1
  • 346
  • 1
  • 16
1
vote
1 answer

How to debug collision between elpy and htmlize during org-export

Description Below I include a minimal Emacs init file a minimal org file Attempting to export the org file to HTML (by using C-c C-e h h) results in the error Wrong type argument: processp, nil. A full debugger backtrace is included at the…
jacg
  • 335
  • 2
  • 12
1
vote
0 answers

How can I print a buffer exactly as it looks on the screen?

How can I print a buffer exactly as it looks on screen, including the use of variable-pitch fonts? (I'm also curious why htmlfontify-buffer ignores variable-pitch-mode.) I am using org-mode and use variable-pitch fonts. However, the latter are…
Harmeling
  • 111
  • 2
1
vote
0 answers

`htmlize` not taking CIDER font-locking into account

I'm using htmlize to give Org-mode code blocks syntax highlighting when exported as HTML, but the exported code only captures some of the font-locking. In particular, for Clojure, it does not capture the extra font-locking from CIDER. In my init.el,…
Tianxiang Xiong
  • 3,848
  • 16
  • 27
0
votes
1 answer

How do I get the org HTML exporter to indent headings?

HTML output from org-mode would be a lot easier to read if the headings were incrementally indented. Yet when I process the file #+HTML_HEAD_EXTRA: