all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: [PATCH] org-faq.org: rename org-export-htmlize-* options to org-html-htmlize-*
@ 2023-06-28 15:29 dongdigua
  2023-06-28 17:06 ` Ihor Radchenko
  0 siblings, 1 reply; 8+ messages in thread
From: dongdigua @ 2023-06-28 15:29 UTC (permalink / raw)
  To: yantar92; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 44 bytes --]

sorry, my email client wrapped the lines




[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-org-faq.org-rename-org-export-htmlize-to-org-html-ht.patch --]
[-- Type: text/x-patch, Size: 2295 bytes --]

From 0de831fb611c89c1a2be4825a8e28999fcf8e526 Mon Sep 17 00:00:00 2001
From: dongdigua <dongdigua@outlook.com>
Date: Wed, 28 Jun 2023 23:16:27 +0800
Subject: [PATCH] org-faq.org: rename org-export-htmlize-* to
 org-html-htmlize-*

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
---
 org-faq.org | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/org-faq.org b/org-faq.org
index ab66139..3efebd1 100644
--- a/org-faq.org
+++ b/org-faq.org
@@ -3793,7 +3793,7 @@ There is a whole host of export options you can set with an in-buffer
 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 @@ does not have a display and therefore only rudimentary face
 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


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH] org-faq.org: rename org-export-htmlize-* options to org-html-htmlize-*
@ 2023-06-07  2:40 dongdigua
  2023-06-14 12:22 ` Ihor Radchenko
  0 siblings, 1 reply; 8+ messages in thread
From: dongdigua @ 2023-06-07  2:40 UTC (permalink / raw)
  To: emacs-orgmode

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





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-04-12 18:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-28 15:29 [PATCH] org-faq.org: rename org-export-htmlize-* options to org-html-htmlize-* dongdigua
2023-06-28 17:06 ` Ihor Radchenko
2024-04-04 11:27   ` Ihor Radchenko
2024-04-04 19:55     ` Rudolf Adamkovič
2024-04-05 13:58       ` Ihor Radchenko
2024-04-12 18:00         ` Ihor Radchenko
  -- strict thread matches above, loose matches on Subject: below --
2023-06-07  2:40 dongdigua
2023-06-14 12:22 ` Ihor Radchenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.