The latest versions of emacs and ox-pandoc already provide a great output but I need to customize the HTML5 output by setting a CSS stylesheet that matches my company's templates.

How can I do that?

I tried adding:

#+PANDOC_OPTIONS: css: ./style.css

and even

#+PANDOC_OPTIONS: css: <style>h1, h2 {color: #00abff;}; </style>

but I get this:

org-babel-exp process bash at position 3277...
Wrong type argument: stringp, nil

This would make producing reports so much easier than using word documents and slides and such manually.

Thank you!


You could place the style in an HTML block:

h1, h2 {
  color: #00abff;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.