[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] org-faq.org: rename org-export-htmlize-* options to org-html
From: |
Ihor Radchenko |
Subject: |
Re: [PATCH] org-faq.org: rename org-export-htmlize-* options to org-html-htmlize-* |
Date: |
Wed, 28 Jun 2023 17:06:49 +0000 |
dongdigua <dongdigua@outlook.com> writes:
> sorry, my email client wrapped the lines
Thanks!
I looked into this again, and I can see that the FAQ entry is dubious.
> -** 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?
Note that the FAQ entry is talking both about exporting Org files and
also exporting agenda - two different code branches.
> @@ -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
`org-html-htmlize-output-type', not "-style".
> 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"))'
And this example is talking specifically about agenda export, which is
relying on htmlize package. There, the css generation is controlled by
`htmlize-output-type', not by `org-html-htmlize-generate-css'.
So, we need a much more significant rewrite to make this FAQ entry up to
date.
[ org-faq is severely outdated, unfortunately. It would really be welcome
if some kind soul could review it and update things as needed. ]
> 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.
And in agenda, it will be org-agenda-export-html-style variable that has
to be set.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>