emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] org-faq.org: rename org-export-htmlize-* options to org-html-htm


From: dongdigua
Subject: [PATCH] org-faq.org: rename org-export-htmlize-* options to org-html-htmlize-*
Date: Wed, 07 Jun 2023 10:40:30 +0800

look at this commit:
https://git.sr.ht/~bzg/org-mode/commit/8134e80bdfb55bbce9aecf3f5958a2bd43cc0b63
the document didn't catch up with source code

I encountered this problem in: https://emacs-china.org/t/org-emacs-script-org-publish-all/20782
and documented it in: https://dongdigua.github.io/org_export_highlight


--- a/org-faq.org
+++ b/org-faq.org
@@ -3793,7 +3793,7 @@
options or via global variables. See [[https://orgmode.org/manual/Export-settings.html#Export-settings][this section]] of the manual for a
full list.

-** How can I preserve faces when I export an agenda from the command line? +** How can I preserve faces when I export an org file from the command line?
   :PROPERTIES:
   :CUSTOM_ID: preserving-faces-during-batch-export
   :END:
@@ -3821,18 +3821,18 @@
definitions. If you'd like to use more complex styles, you'll have to
make sure that the export process only assigns classes instead of
direct color values. This can be done by binding the variable
-=org-export-htmlize-output-style= to =css= for the duration of the
+=org-html-htmlize-output-style= to =css= for the duration of the
export, for example with

: emacs -batch -l ~/.emacs
-: -eval '(let ((org-export-htmlize-generate-css (quote css)))
+: -eval '(let ((org-html-htmlize-generate-css (quote css)))
: (org-batch-agenda "e"))'

Then you can use a style file to make these classes look any way you
like. To generate face definitions for a CSS file based on any faces
you are currently using in Emacs, you can use the following command:

-: M-x org-export-htmlize-generate-css RET
+: M-x org-html-htmlize-generate-css RET

This will generate a =<style>...</style>= section, the content of
which you can add to your style file.
---
https://dongdigua.github.io






reply via email to

[Prev in Thread] Current Thread [Next in Thread]